moodle2cc 0.2.17 → 0.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MmUyNmJjNWUxYzEwOGRiYTBlNDljMTc3ZjNlMWQyY2Y0ZjA1MTAxNQ==
4
+ YmVmYjY3MmZlNDVmNmVmMjU4NmEzNDAzYTE0MjY0YmRmN2U2ZGRmMA==
5
5
  data.tar.gz: !binary |-
6
- NjE0OWI3Y2JlNGI3ZjJhNmJlOThkOGU0YWJlNTI5NzZjMzE2MGUwYQ==
6
+ NjVkZGJlZjcwNTFjNDJmZTkyY2Q2YmUzN2ViMjlkOTUzOTg3MTRmYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjU4NmEzZTA5ZDJlNzRiOTJmZjlkMzVkMThiNmViNTVhNzZlNzcwNzhmNDhm
10
- OWFjOTRlNjI4Y2I0N2UwYzViMWJkZmJlNWI2YzJmOGViNTFhOTVjMjk0Y2Ni
11
- OTkwMWZiOTNjMTcwNzZjOTczMTdjM2M0NDAxZDM5Y2ZlYjMxZmI=
9
+ ODNkNDQ4NGM3MzJjOGEwMjhlNGUzZmFmZTMyNTkxN2EyY2JhMWZkZGJmMDc4
10
+ ZTM4NDQ2YzI2NjlhNzgxOTBiMDg0MGMwMTgxNTE1MDdmOGU1Mjg5ZjgwZTg2
11
+ OTU3NTZkZjVmYWFiMGZlYWE0MDk3ODRlNDliN2YxMGIwOWU2Mzg=
12
12
  data.tar.gz: !binary |-
13
- NzBiNTk5OWMxYmExYmM2NTdmNGQwOGUwZWUxNGE5YzI2YzFkZDA3OWQxZDA2
14
- NTdiZDFlMTkxMmZkNjRiZWM1MjFiMmEzNzA5OTE4N2QwMDE0NzZkYjY2ZmFl
15
- MGI0NWNjYzRjZDhhYjcxOWFiZTRjYjFlOWFhNTNhZjZhZGE3NWE=
13
+ YjFjOGFhOGZkYzUxMGJlYzZlNTBlZWVhZjUyMGZlYzIzM2M0NmQ4MDE1MWQ3
14
+ YWY5ZTMwZmIzYzgzNTZjMmNiNmQ2N2E5ZGZkOTBkNDAxMDJjNDBkOWYxNzNl
15
+ NTI3NzA3ZDY0NDMxOTQ5MzViMjkwNWI5YzRkZTgwMTkyN2JjNzQ=
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ 2015-04-13 Version 0.2.18
2
+ * Improve invalid URL handling
3
+
1
4
  2015-03-04 Version 0.2.17
2
5
  * Add grading information to discussion topics
3
6
 
@@ -61,6 +61,9 @@ module Moodle2CC::Moodle2Converter
61
61
  else
62
62
  link
63
63
  end
64
+ rescue => e
65
+ puts "invalid url #{link} - #{e.message}"
66
+ link
64
67
  end
65
68
 
66
69
  def lookup_cc_file(link)
@@ -73,6 +76,8 @@ module Moodle2CC::Moodle2Converter
73
76
  if cc_file = @file_index[CGI::unescape(moodle_path).downcase]
74
77
  "#{WEB_CONTENT_TOKEN}#{cc_file.file_path}"
75
78
  end
79
+ rescue => e
80
+ puts "invalid url #{moodle_path} - #{e.message}"
76
81
  end
77
82
 
78
83
  def lookup_cc_link(activity, id, anchor)
@@ -1,3 +1,3 @@
1
1
  module Moodle2CC
2
- VERSION = "0.2.17"
2
+ VERSION = "0.2.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moodle2cc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Durtschi
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-03-04 00:00:00.000000000 Z
13
+ date: 2015-04-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubyzip