From b9fea482af172420b839c4049f742e502554a471 Mon Sep 17 00:00:00 2001 From: James Williams Date: Thu, 5 Jun 2014 09:47:25 -0600 Subject: [PATCH] bump moodle2cc to 0.2.9 test plan: * import the package referenced in the ticket * should not fail fixes #CNVS-13417 Change-Id: I1359c789edefa50e78daf2981b15c7823643e3d8 Reviewed-on: https://gerrit.instructure.com/35968 Reviewed-by: Bracken Mosbacker QA-Review: Clare Strong Product-Review: Bracken Mosbacker Tested-by: Jenkins --- vendor/plugins/moodle2cc/Gemfile | 2 +- vendor/plugins/moodle2cc/lib/moodle/converter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/plugins/moodle2cc/Gemfile b/vendor/plugins/moodle2cc/Gemfile index 30eece15491..a5541769d52 100644 --- a/vendor/plugins/moodle2cc/Gemfile +++ b/vendor/plugins/moodle2cc/Gemfile @@ -1,3 +1,3 @@ -gem 'moodle2cc', '0.2.8' +gem 'moodle2cc', '0.2.9' gem 'happymapper', '0.4.1' gem 'thor', '0.18.1' diff --git a/vendor/plugins/moodle2cc/lib/moodle/converter.rb b/vendor/plugins/moodle2cc/lib/moodle/converter.rb index 08673f49a4a..fb6b6331010 100644 --- a/vendor/plugins/moodle2cc/lib/moodle/converter.rb +++ b/vendor/plugins/moodle2cc/lib/moodle/converter.rb @@ -21,7 +21,7 @@ module Moodle File.open(@course[:full_export_file_path], 'w') { |file| file << @course.to_json} @course ensure - FileUtils.rm migrator.imscc_path if migrator && File.exists?(migrator.imscc_path) + FileUtils.rm migrator.imscc_path if migrator && migrator.imscc_path && File.exists?(migrator.imscc_path) end def add_question_warnings