moodle2cc 0.2.25 → 0.2.26
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 +8 -8
- data/Changelog +3 -0
- data/lib/moodle2cc/moodle2converter/converter_helper.rb +14 -1
- data/lib/moodle2cc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YjBmYzFhMDg1ODIyM2ExMWFkN2NhZjg5MDYxNzY2OTY0MWQ0MmM3Ng==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NmZlYzczODI0NjE5OWNjNmFkZjExNDhiYTEyOTlmMGFlMWMwOGQ3Mw==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YWUxNGFmMmQ0NjNhZGQ5ZjE4NzZmMGZmNzJkZTM2ZGMzMDllMTFmZWQxZGUz
|
|
10
|
+
NTYzNDgzOTk2MGU5MTBkY2E0NGYyODQyZTYyYzkxMWMwMTZjNGE4MmI3MWU1
|
|
11
|
+
OWExMWE5NzFhYzFkMjEzNjdiOTEzMGFmYTgyMWE5NWMwYmJiOWY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MzY5OGU4MjM4NzI4OTFjYTMwNjNlNTM1NTg5MTVlY2FjZTNjNzViZTA0ZTAz
|
|
14
|
+
ODk2MjljMTQ1ZDMxZDBkNDRhNTkwYTI2MDZhNjlkZmQwNjIzYmI0ZmEwOWEz
|
|
15
|
+
ZDI5NTQwZjRmZDMyNjAyMGE0NjgwZWU0NDhjNTMzZTEyMTA4ZWQ=
|
data/Changelog
CHANGED
|
@@ -57,7 +57,20 @@ module Moodle2CC
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
def generate_unique_identifier_for(id, suffix = nil)
|
|
60
|
-
"m2#{Digest::MD5.hexdigest(id.to_s)}#{suffix}"
|
|
60
|
+
unique_id = "m2#{Digest::MD5.hexdigest(id.to_s)}#{suffix}"
|
|
61
|
+
@@ids ||= Set.new
|
|
62
|
+
if @@ids.include?(unique_id)
|
|
63
|
+
# i was under the impression that moodle ids would be unique themselves
|
|
64
|
+
# but i have been apparently misinformed
|
|
65
|
+
original_id = unique_id
|
|
66
|
+
index = 0
|
|
67
|
+
while @@ids.include?(unique_id)
|
|
68
|
+
index += 1
|
|
69
|
+
unique_id = "#{original_id}#{index}"
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
@@ids << unique_id
|
|
73
|
+
unique_id
|
|
61
74
|
end
|
|
62
75
|
|
|
63
76
|
def activity_content_type(activity)
|
data/lib/moodle2cc/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.2.26
|
|
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-
|
|
13
|
+
date: 2015-09-23 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rubyzip
|