moodle2cc 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
Yjc0NjgzNjkxN2FjNjQ2OGRhMjEwMjk2YTY2MmZjMzQ3MGVmZWFhOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDc0ZDYyZWIzMzQ1YjJhZTA0NzRhOTI1MjU3YzkzZjZlYzM2OGUzZg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NTgwNWQxMGQwY2NlNTE1YjBiMDM1YTM0MGE5ZjQ1YjMyOTU2Nzg1NTAxNmZl
|
10
|
+
MGFkNWZjYWVkYWUzYjJkN2Y3MjI3NTJjMWE3NzQxY2IyYWUyMDQyMmVmMDRm
|
11
|
+
OTdmMzczYTg5M2U4NWIxNTI0NjRlMjM5YjM5NWE2ZTIyM2NjNjk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZmIxOTkxMDAyNWNhMTk3YmU1MDk1Y2UzNzQ1OTg0MWQ4NzVjOWYwMjJhYzI0
|
14
|
+
NWM1ZWYzZDgyNjM2ODIwZjNjYmM5ZmU5ODg5Njc4MTdiM2M2ZDg5MWVkYzM1
|
15
|
+
NjI0NmUyOTJhYTEwNzMyNTgwZmM3OTM2NjM5MDYzMjk2YzU4YTU=
|
data/Changelog
CHANGED
@@ -26,7 +26,7 @@ module Moodle2CC::Moodle
|
|
26
26
|
@files.each do |file|
|
27
27
|
destination_file = File.join(dir, file)
|
28
28
|
FileUtils.mkdir_p(File.dirname(destination_file))
|
29
|
-
File.open(destination_file, '
|
29
|
+
File.open(destination_file, 'wb') do |f|
|
30
30
|
f.write zipfile.read("course_files/#{file}")
|
31
31
|
end
|
32
32
|
end
|
data/lib/moodle2cc/version.rb
CHANGED
data/moodle2cc.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
gem.add_development_dependency "rake"
|
20
20
|
gem.add_development_dependency "minitest"
|
21
|
-
gem.add_development_dependency "rspec"
|
21
|
+
gem.add_development_dependency "rspec", "~> 2"
|
22
22
|
gem.add_development_dependency "guard"
|
23
23
|
gem.add_development_dependency "guard-bundler"
|
24
24
|
gem.add_development_dependency "guard-minitest"
|
@@ -17,7 +17,7 @@ module Moodle2CC::Moodle2Converter::QuestionConverters
|
|
17
17
|
expect(converted_question.original_identifier).to eq moodle_question.id
|
18
18
|
|
19
19
|
expected_text = "This is a bunch of html"
|
20
|
-
expect(converted_question.matches.first[:question_text]).to
|
20
|
+
expect(converted_question.matches.first[:question_text]).to include(expected_text)
|
21
21
|
expect(converted_question.matches.first[:answer_text]).to eq moodle_question.matches.first[:answer_text]
|
22
22
|
end
|
23
23
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moodle2cc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
5
|
-
prerelease:
|
4
|
+
version: 0.2.12
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Christopher Durtschi
|
@@ -11,12 +10,11 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2014-07-
|
13
|
+
date: 2014-07-15 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rubyzip
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
19
|
- - ! '>='
|
22
20
|
- !ruby/object:Gem::Version
|
@@ -24,7 +22,6 @@ dependencies:
|
|
24
22
|
type: :runtime
|
25
23
|
prerelease: false
|
26
24
|
version_requirements: !ruby/object:Gem::Requirement
|
27
|
-
none: false
|
28
25
|
requirements:
|
29
26
|
- - ! '>='
|
30
27
|
- !ruby/object:Gem::Version
|
@@ -32,7 +29,6 @@ dependencies:
|
|
32
29
|
- !ruby/object:Gem::Dependency
|
33
30
|
name: happymapper
|
34
31
|
requirement: !ruby/object:Gem::Requirement
|
35
|
-
none: false
|
36
32
|
requirements:
|
37
33
|
- - ! '>='
|
38
34
|
- !ruby/object:Gem::Version
|
@@ -40,7 +36,6 @@ dependencies:
|
|
40
36
|
type: :runtime
|
41
37
|
prerelease: false
|
42
38
|
version_requirements: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
39
|
requirements:
|
45
40
|
- - ! '>='
|
46
41
|
- !ruby/object:Gem::Version
|
@@ -48,7 +43,6 @@ dependencies:
|
|
48
43
|
- !ruby/object:Gem::Dependency
|
49
44
|
name: builder
|
50
45
|
requirement: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
46
|
requirements:
|
53
47
|
- - ! '>='
|
54
48
|
- !ruby/object:Gem::Version
|
@@ -56,7 +50,6 @@ dependencies:
|
|
56
50
|
type: :runtime
|
57
51
|
prerelease: false
|
58
52
|
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
53
|
requirements:
|
61
54
|
- - ! '>='
|
62
55
|
- !ruby/object:Gem::Version
|
@@ -64,7 +57,6 @@ dependencies:
|
|
64
57
|
- !ruby/object:Gem::Dependency
|
65
58
|
name: thor
|
66
59
|
requirement: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
60
|
requirements:
|
69
61
|
- - ! '>='
|
70
62
|
- !ruby/object:Gem::Version
|
@@ -72,7 +64,6 @@ dependencies:
|
|
72
64
|
type: :runtime
|
73
65
|
prerelease: false
|
74
66
|
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
67
|
requirements:
|
77
68
|
- - ! '>='
|
78
69
|
- !ruby/object:Gem::Version
|
@@ -80,7 +71,6 @@ dependencies:
|
|
80
71
|
- !ruby/object:Gem::Dependency
|
81
72
|
name: nokogiri
|
82
73
|
requirement: !ruby/object:Gem::Requirement
|
83
|
-
none: false
|
84
74
|
requirements:
|
85
75
|
- - ! '>='
|
86
76
|
- !ruby/object:Gem::Version
|
@@ -88,7 +78,6 @@ dependencies:
|
|
88
78
|
type: :runtime
|
89
79
|
prerelease: false
|
90
80
|
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
81
|
requirements:
|
93
82
|
- - ! '>='
|
94
83
|
- !ruby/object:Gem::Version
|
@@ -96,7 +85,6 @@ dependencies:
|
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: rdiscount
|
98
87
|
requirement: !ruby/object:Gem::Requirement
|
99
|
-
none: false
|
100
88
|
requirements:
|
101
89
|
- - ! '>='
|
102
90
|
- !ruby/object:Gem::Version
|
@@ -104,7 +92,6 @@ dependencies:
|
|
104
92
|
type: :runtime
|
105
93
|
prerelease: false
|
106
94
|
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
95
|
requirements:
|
109
96
|
- - ! '>='
|
110
97
|
- !ruby/object:Gem::Version
|
@@ -112,7 +99,6 @@ dependencies:
|
|
112
99
|
- !ruby/object:Gem::Dependency
|
113
100
|
name: rake
|
114
101
|
requirement: !ruby/object:Gem::Requirement
|
115
|
-
none: false
|
116
102
|
requirements:
|
117
103
|
- - ! '>='
|
118
104
|
- !ruby/object:Gem::Version
|
@@ -120,7 +106,6 @@ dependencies:
|
|
120
106
|
type: :development
|
121
107
|
prerelease: false
|
122
108
|
version_requirements: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
109
|
requirements:
|
125
110
|
- - ! '>='
|
126
111
|
- !ruby/object:Gem::Version
|
@@ -128,7 +113,6 @@ dependencies:
|
|
128
113
|
- !ruby/object:Gem::Dependency
|
129
114
|
name: minitest
|
130
115
|
requirement: !ruby/object:Gem::Requirement
|
131
|
-
none: false
|
132
116
|
requirements:
|
133
117
|
- - ! '>='
|
134
118
|
- !ruby/object:Gem::Version
|
@@ -136,7 +120,6 @@ dependencies:
|
|
136
120
|
type: :development
|
137
121
|
prerelease: false
|
138
122
|
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
none: false
|
140
123
|
requirements:
|
141
124
|
- - ! '>='
|
142
125
|
- !ruby/object:Gem::Version
|
@@ -144,23 +127,20 @@ dependencies:
|
|
144
127
|
- !ruby/object:Gem::Dependency
|
145
128
|
name: rspec
|
146
129
|
requirement: !ruby/object:Gem::Requirement
|
147
|
-
none: false
|
148
130
|
requirements:
|
149
|
-
- -
|
131
|
+
- - ~>
|
150
132
|
- !ruby/object:Gem::Version
|
151
|
-
version: '
|
133
|
+
version: '2'
|
152
134
|
type: :development
|
153
135
|
prerelease: false
|
154
136
|
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
none: false
|
156
137
|
requirements:
|
157
|
-
- -
|
138
|
+
- - ~>
|
158
139
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
140
|
+
version: '2'
|
160
141
|
- !ruby/object:Gem::Dependency
|
161
142
|
name: guard
|
162
143
|
requirement: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
144
|
requirements:
|
165
145
|
- - ! '>='
|
166
146
|
- !ruby/object:Gem::Version
|
@@ -168,7 +148,6 @@ dependencies:
|
|
168
148
|
type: :development
|
169
149
|
prerelease: false
|
170
150
|
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
none: false
|
172
151
|
requirements:
|
173
152
|
- - ! '>='
|
174
153
|
- !ruby/object:Gem::Version
|
@@ -176,7 +155,6 @@ dependencies:
|
|
176
155
|
- !ruby/object:Gem::Dependency
|
177
156
|
name: guard-bundler
|
178
157
|
requirement: !ruby/object:Gem::Requirement
|
179
|
-
none: false
|
180
158
|
requirements:
|
181
159
|
- - ! '>='
|
182
160
|
- !ruby/object:Gem::Version
|
@@ -184,7 +162,6 @@ dependencies:
|
|
184
162
|
type: :development
|
185
163
|
prerelease: false
|
186
164
|
version_requirements: !ruby/object:Gem::Requirement
|
187
|
-
none: false
|
188
165
|
requirements:
|
189
166
|
- - ! '>='
|
190
167
|
- !ruby/object:Gem::Version
|
@@ -192,7 +169,6 @@ dependencies:
|
|
192
169
|
- !ruby/object:Gem::Dependency
|
193
170
|
name: guard-minitest
|
194
171
|
requirement: !ruby/object:Gem::Requirement
|
195
|
-
none: false
|
196
172
|
requirements:
|
197
173
|
- - ! '>='
|
198
174
|
- !ruby/object:Gem::Version
|
@@ -200,7 +176,6 @@ dependencies:
|
|
200
176
|
type: :development
|
201
177
|
prerelease: false
|
202
178
|
version_requirements: !ruby/object:Gem::Requirement
|
203
|
-
none: false
|
204
179
|
requirements:
|
205
180
|
- - ! '>='
|
206
181
|
- !ruby/object:Gem::Version
|
@@ -208,7 +183,6 @@ dependencies:
|
|
208
183
|
- !ruby/object:Gem::Dependency
|
209
184
|
name: guard-rspec
|
210
185
|
requirement: !ruby/object:Gem::Requirement
|
211
|
-
none: false
|
212
186
|
requirements:
|
213
187
|
- - ! '>='
|
214
188
|
- !ruby/object:Gem::Version
|
@@ -216,7 +190,6 @@ dependencies:
|
|
216
190
|
type: :development
|
217
191
|
prerelease: false
|
218
192
|
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
none: false
|
220
193
|
requirements:
|
221
194
|
- - ! '>='
|
222
195
|
- !ruby/object:Gem::Version
|
@@ -224,7 +197,6 @@ dependencies:
|
|
224
197
|
- !ruby/object:Gem::Dependency
|
225
198
|
name: debugger
|
226
199
|
requirement: !ruby/object:Gem::Requirement
|
227
|
-
none: false
|
228
200
|
requirements:
|
229
201
|
- - ! '>='
|
230
202
|
- !ruby/object:Gem::Version
|
@@ -232,7 +204,6 @@ dependencies:
|
|
232
204
|
type: :development
|
233
205
|
prerelease: false
|
234
206
|
version_requirements: !ruby/object:Gem::Requirement
|
235
|
-
none: false
|
236
207
|
requirements:
|
237
208
|
- - ! '>='
|
238
209
|
- !ruby/object:Gem::Version
|
@@ -834,27 +805,26 @@ files:
|
|
834
805
|
homepage: https://github.com/instructure/moodle2cc
|
835
806
|
licenses:
|
836
807
|
- AGPLv3
|
808
|
+
metadata: {}
|
837
809
|
post_install_message:
|
838
810
|
rdoc_options: []
|
839
811
|
require_paths:
|
840
812
|
- lib
|
841
813
|
required_ruby_version: !ruby/object:Gem::Requirement
|
842
|
-
none: false
|
843
814
|
requirements:
|
844
815
|
- - ! '>='
|
845
816
|
- !ruby/object:Gem::Version
|
846
817
|
version: '0'
|
847
818
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
848
|
-
none: false
|
849
819
|
requirements:
|
850
820
|
- - ! '>='
|
851
821
|
- !ruby/object:Gem::Version
|
852
822
|
version: '0'
|
853
823
|
requirements: []
|
854
824
|
rubyforge_project:
|
855
|
-
rubygems_version:
|
825
|
+
rubygems_version: 2.3.0
|
856
826
|
signing_key:
|
857
|
-
specification_version:
|
827
|
+
specification_version: 4
|
858
828
|
summary: Migrates Moodle backup ZIP to IMS Common Cartridge package
|
859
829
|
test_files:
|
860
830
|
- spec/moodle2cc/canvas_cc/assessment_writer_spec.rb
|