scorm2004-manifest 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +36 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +94 -0
- data/Rakefile +39 -0
- data/VERSION +1 -0
- data/lib/scorm2004/manifest/adlseq_map_info.rb +17 -0
- data/lib/scorm2004/manifest/adlseq_objective.rb +14 -0
- data/lib/scorm2004/manifest/adlseq_objectives.rb +11 -0
- data/lib/scorm2004/manifest/attributes.rb +147 -0
- data/lib/scorm2004/manifest/children.rb +83 -0
- data/lib/scorm2004/manifest/completion_threshold.rb +13 -0
- data/lib/scorm2004/manifest/condition_rule.rb +12 -0
- data/lib/scorm2004/manifest/constrained_choice_considerations.rb +12 -0
- data/lib/scorm2004/manifest/control_mode.rb +16 -0
- data/lib/scorm2004/manifest/custom_error.rb +15 -0
- data/lib/scorm2004/manifest/data.rb +11 -0
- data/lib/scorm2004/manifest/data_from_lms.rb +21 -0
- data/lib/scorm2004/manifest/delivery_controls.rb +13 -0
- data/lib/scorm2004/manifest/dependency.rb +21 -0
- data/lib/scorm2004/manifest/error.rb +5 -0
- data/lib/scorm2004/manifest/file.rb +16 -0
- data/lib/scorm2004/manifest/hide_lmsui.rb +21 -0
- data/lib/scorm2004/manifest/href.rb +24 -0
- data/lib/scorm2004/manifest/item.rb +36 -0
- data/lib/scorm2004/manifest/limit_conditions.rb +12 -0
- data/lib/scorm2004/manifest/manifest.rb +26 -0
- data/lib/scorm2004/manifest/map.rb +13 -0
- data/lib/scorm2004/manifest/map_info.rb +15 -0
- data/lib/scorm2004/manifest/min_normalized_measure.rb +18 -0
- data/lib/scorm2004/manifest/navigation_interface.rb +10 -0
- data/lib/scorm2004/manifest/objective.rb +16 -0
- data/lib/scorm2004/manifest/objectives.rb +12 -0
- data/lib/scorm2004/manifest/organization.rb +20 -0
- data/lib/scorm2004/manifest/organizations.rb +24 -0
- data/lib/scorm2004/manifest/presentation.rb +10 -0
- data/lib/scorm2004/manifest/primary_objective.rb +24 -0
- data/lib/scorm2004/manifest/randomization_controls.rb +16 -0
- data/lib/scorm2004/manifest/resource.rb +18 -0
- data/lib/scorm2004/manifest/resources.rb +12 -0
- data/lib/scorm2004/manifest/rollup_action.rb +13 -0
- data/lib/scorm2004/manifest/rollup_condition.rb +24 -0
- data/lib/scorm2004/manifest/rollup_conditions.rb +14 -0
- data/lib/scorm2004/manifest/rollup_considerations.rb +17 -0
- data/lib/scorm2004/manifest/rollup_rule.rb +19 -0
- data/lib/scorm2004/manifest/rollup_rules.rb +16 -0
- data/lib/scorm2004/manifest/rule_action.rb +31 -0
- data/lib/scorm2004/manifest/rule_condition.rb +41 -0
- data/lib/scorm2004/manifest/rule_conditions.rb +14 -0
- data/lib/scorm2004/manifest/schema.rb +18 -0
- data/lib/scorm2004/manifest/schemaversion.rb +18 -0
- data/lib/scorm2004/manifest/sequencing.rb +24 -0
- data/lib/scorm2004/manifest/sequencing_collection.rb +11 -0
- data/lib/scorm2004/manifest/sequencing_rules.rb +13 -0
- data/lib/scorm2004/manifest/text_node.rb +11 -0
- data/lib/scorm2004/manifest/time_limit_action.rb +24 -0
- data/lib/scorm2004/manifest/title.rb +16 -0
- data/lib/scorm2004/manifest/visitor_pattern.rb +31 -0
- data/lib/scorm2004/manifest/xml_base.rb +38 -0
- data/lib/scorm2004/manifest.rb +76 -0
- data/lib/scorm2004-manifest.rb +1 -0
- data/test/functional_test.rb +45 -0
- data/test/helper.rb +18 -0
- data/test/mbce_test.rb +66 -0
- data/test/msce_test.rb +55 -0
- data/test/scorm2004/manifest/adlseq_map_info_test.rb +47 -0
- data/test/scorm2004/manifest/adlseq_objective_test.rb +44 -0
- data/test/scorm2004/manifest/adlseq_objectives_test.rb +29 -0
- data/test/scorm2004/manifest/any_uri_token_test.rb +40 -0
- data/test/scorm2004/manifest/attributes_test.rb +224 -0
- data/test/scorm2004/manifest/children_test.rb +330 -0
- data/test/scorm2004/manifest/completion_threshold_test.rb +80 -0
- data/test/scorm2004/manifest/condition_rule_test.rb +40 -0
- data/test/scorm2004/manifest/constrained_choice_considerations_test.rb +25 -0
- data/test/scorm2004/manifest/control_mode_test.rb +41 -0
- data/test/scorm2004/manifest/custom_error_test.rb +43 -0
- data/test/scorm2004/manifest/data_from_lms_test.rb +47 -0
- data/test/scorm2004/manifest/data_test.rb +31 -0
- data/test/scorm2004/manifest/delivery_controls_test.rb +27 -0
- data/test/scorm2004/manifest/dependency_test.rb +53 -0
- data/test/scorm2004/manifest/duration_attribute_test.rb +59 -0
- data/test/scorm2004/manifest/file_test.rb +40 -0
- data/test/scorm2004/manifest/hide_lmsui_test.rb +40 -0
- data/test/scorm2004/manifest/href_test.rb +43 -0
- data/test/scorm2004/manifest/item_test.rb +86 -0
- data/test/scorm2004/manifest/limit_conditions_test.rb +34 -0
- data/test/scorm2004/manifest/manifest_test.rb +152 -0
- data/test/scorm2004/manifest/map_info_test.rb +41 -0
- data/test/scorm2004/manifest/map_test.rb +32 -0
- data/test/scorm2004/manifest/min_normalized_measure_test.rb +28 -0
- data/test/scorm2004/manifest/navigation_interface_test.rb +29 -0
- data/test/scorm2004/manifest/non_negative_integer_attribute_test.rb +64 -0
- data/test/scorm2004/manifest/objective_test.rb +45 -0
- data/test/scorm2004/manifest/objectives_test.rb +37 -0
- data/test/scorm2004/manifest/organization_test.rb +115 -0
- data/test/scorm2004/manifest/organizations_test.rb +68 -0
- data/test/scorm2004/manifest/partial_manifest.rb +23 -0
- data/test/scorm2004/manifest/partial_manifest_test.rb +44 -0
- data/test/scorm2004/manifest/presentation_test.rb +26 -0
- data/test/scorm2004/manifest/primary_objective_test.rb +65 -0
- data/test/scorm2004/manifest/randomization_controls_test.rb +71 -0
- data/test/scorm2004/manifest/resource_test.rb +96 -0
- data/test/scorm2004/manifest/resources_test.rb +41 -0
- data/test/scorm2004/manifest/rollup_action_test.rb +33 -0
- data/test/scorm2004/manifest/rollup_condition_test.rb +42 -0
- data/test/scorm2004/manifest/rollup_conditions_test.rb +53 -0
- data/test/scorm2004/manifest/rollup_considerations_test.rb +42 -0
- data/test/scorm2004/manifest/rollup_rule_test.rb +87 -0
- data/test/scorm2004/manifest/rollup_rules_test.rb +60 -0
- data/test/scorm2004/manifest/rule_action_test.rb +79 -0
- data/test/scorm2004/manifest/rule_condition_test.rb +70 -0
- data/test/scorm2004/manifest/rule_conditions_test.rb +37 -0
- data/test/scorm2004/manifest/schema_test.rb +29 -0
- data/test/scorm2004/manifest/schemaversion_test.rb +29 -0
- data/test/scorm2004/manifest/sequencing_collection_test.rb +31 -0
- data/test/scorm2004/manifest/sequencing_rules_test.rb +36 -0
- data/test/scorm2004/manifest/sequencing_test.rb +42 -0
- data/test/scorm2004/manifest/string_attribute_test.rb +68 -0
- data/test/scorm2004/manifest/text_node_test.rb +37 -0
- data/test/scorm2004/manifest/time_limit_action_test.rb +51 -0
- data/test/scorm2004/manifest/title_test.rb +59 -0
- data/test/scorm2004/manifest/token_attribute_test.rb +53 -0
- data/test/scorm2004/manifest/visitor_pattern_test.rb +85 -0
- data/test/scorm2004/manifest/xml_base_test.rb +125 -0
- data/test/scorm2004/manifest_test.rb +33 -0
- data/test/scorm2004_test.rb +9 -0
- data/test/sece_test.rb +53 -0
- metadata +260 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
require_relative '../../helper'
|
2
|
+
|
3
|
+
module Scorm2004
|
4
|
+
module Manifest
|
5
|
+
class VisitorPatternTest < ActiveSupport::TestCase
|
6
|
+
class DumbVisitor
|
7
|
+
include VisitorPattern
|
8
|
+
end
|
9
|
+
|
10
|
+
include PartialManifest
|
11
|
+
|
12
|
+
context 'Visitor visiting a element' do
|
13
|
+
setup do
|
14
|
+
@v = DumbVisitor.new
|
15
|
+
el('<dummy />').accept(@v)
|
16
|
+
end
|
17
|
+
|
18
|
+
should 'set a Nokogiri node as an attribute named el' do
|
19
|
+
assert_kind_of Nokogiri::XML::Node, @v.el
|
20
|
+
end
|
21
|
+
|
22
|
+
should 'return self when visiting a element' do
|
23
|
+
assert_equal @v, el('<dummy />').accept(@v)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'Visitor with do_visit method' do
|
28
|
+
class PrivateDoVisit
|
29
|
+
include VisitorPattern
|
30
|
+
|
31
|
+
private
|
32
|
+
|
33
|
+
def do_visit
|
34
|
+
do_visit_probe
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
setup do
|
39
|
+
@v = PrivateDoVisit.new
|
40
|
+
@v.expects(:do_visit_probe)
|
41
|
+
end
|
42
|
+
|
43
|
+
should 'call do_visit method' do
|
44
|
+
el('<dummy />').accept(@v)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context 'Visitor with the attributes class method' do
|
49
|
+
setup do
|
50
|
+
@v = DumbVisitor.new
|
51
|
+
@v.class.stubs(:attributes)
|
52
|
+
end
|
53
|
+
|
54
|
+
should 'call the check_attributes method when visiting an element' do
|
55
|
+
@v.expects(:check_attributes)
|
56
|
+
el('<dummy />').accept(@v)
|
57
|
+
end
|
58
|
+
|
59
|
+
should 'call check_foo if attributes include foo when visiting an element' do
|
60
|
+
@v.class.stubs(:attributes).returns([:foo])
|
61
|
+
@v.expects(:check_foo)
|
62
|
+
el('<dummy />').accept(@v)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
context 'Visitor with the children class method' do
|
67
|
+
setup do
|
68
|
+
@v = DumbVisitor.new
|
69
|
+
@v.class.stubs(:children)
|
70
|
+
end
|
71
|
+
|
72
|
+
should 'call the visit_children method when visiting an element' do
|
73
|
+
@v.expects(:visit_children)
|
74
|
+
el('<dummy />').accept(@v)
|
75
|
+
end
|
76
|
+
|
77
|
+
should 'call visit_foo if children include foo when visiting an element' do
|
78
|
+
@v.class.stubs(:children).returns([:foo])
|
79
|
+
@v.expects(:visit_foo)
|
80
|
+
el('<dummy />').accept(@v)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
require_relative '../../helper'
|
2
|
+
|
3
|
+
module Scorm2004
|
4
|
+
module Manifest
|
5
|
+
class XmlBaseTest < ActiveSupport::TestCase
|
6
|
+
include PartialManifest
|
7
|
+
|
8
|
+
class Visitor
|
9
|
+
include VisitorPattern
|
10
|
+
include CustomError
|
11
|
+
include XmlBase
|
12
|
+
end
|
13
|
+
|
14
|
+
context 'visitor with its parent base nil' do
|
15
|
+
setup do
|
16
|
+
@v = Visitor.new(base: nil)
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'visiting a node with xml:base beginning leading a slash' do
|
20
|
+
should 'raise exception' do
|
21
|
+
el('<dummy xml:base="/path/to/dir/" />').accept(@v)
|
22
|
+
assert_raise Visitor::Error do
|
23
|
+
@v.base
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
context 'visiting a node without xml:base trailing a slash' do
|
29
|
+
should 'raise exception' do
|
30
|
+
el('<dummy xml:base="http://exampe.com/a" />').accept(@v)
|
31
|
+
assert_raise Visitor::Error do
|
32
|
+
@v.base
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
context 'visiting a node without xml:base' do
|
38
|
+
should 'set nil as its base' do
|
39
|
+
el('<dummy />').accept(@v)
|
40
|
+
assert_nil @v.base
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
context 'visiting a node with a URI xml:base' do
|
45
|
+
should 'set the uri as its base' do
|
46
|
+
el('<dummy xml:base="http://example.com/path/to/file/" />').accept(@v)
|
47
|
+
assert_equal URI('http://example.com/path/to/file/'), @v.base
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
context 'visiting a node with a pathname xml:base' do
|
52
|
+
should 'set the pathname as its base' do
|
53
|
+
el('<dummy xml:base="path/to/dir/" />').accept(@v)
|
54
|
+
assert_equal Pathname('path/to/dir'), @v.base
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
context 'visiting a node with a relative-path xml:base' do
|
59
|
+
should 'set normalized pathname as its base' do
|
60
|
+
el('<dummy xml:base="../../path/to/dir/" />').accept(@v)
|
61
|
+
assert_equal Pathname('path/to/dir'), @v.base
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
context 'visitor with its parent base an absolute URL' do
|
67
|
+
setup do
|
68
|
+
@parent_base = URI('http://example.com/a/')
|
69
|
+
@v = Visitor.new(base: @parent_base)
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'visiting a node without xml:base' do
|
73
|
+
should 'set the parent base as its base' do
|
74
|
+
el('<dummy />').accept(@v)
|
75
|
+
assert_equal @parent_base, @v.base
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
context 'visiting a node with a relateve URL' do
|
80
|
+
should 'set a resolved URI as its base' do
|
81
|
+
el('<dummy xml:base="../../x/" />').accept(@v)
|
82
|
+
assert_equal URI('http://example.com/x/'), @v.base
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
context 'visiting a node with a absolute URL' do
|
87
|
+
should 'set its XML Base value as its base' do
|
88
|
+
absolute_url = 'http://example.net/b/'
|
89
|
+
el("<dummy xml:base='#{absolute_url}' />").accept(@v)
|
90
|
+
assert_equal URI(absolute_url), @v.base
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
context 'visitor with its parent base a relative URL' do
|
96
|
+
setup do
|
97
|
+
@parent_path = Pathname('a/b/c')
|
98
|
+
@v = Visitor.new(base: Pathname(@parent_path))
|
99
|
+
end
|
100
|
+
|
101
|
+
context 'visiting a node without xml:base' do
|
102
|
+
should 'set the parent base as its base' do
|
103
|
+
el('<dummy />').accept(@v)
|
104
|
+
assert_equal @parent_path, @v.base
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
context 'visiting a node with an absolute URL' do
|
109
|
+
should 'set its XML Base value as its base' do
|
110
|
+
absolute_url = URI('http://example.org/x/y/z/')
|
111
|
+
el("<dummy xml:base='#{absolute_url}' />").accept(@v)
|
112
|
+
assert_equal absolute_url, @v.base
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
context 'visiting a node with a relative URL' do
|
117
|
+
should 'set a resolved URL as its base' do
|
118
|
+
el('<dummy xml:base="x/y/z/" />').accept(@v)
|
119
|
+
assert_equal Pathname('a/b/c/x/y/z'), @v.base
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
end
|
125
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require_relative '../helper'
|
2
|
+
|
3
|
+
module Scorm2004
|
4
|
+
class ManifestTest < ActiveSupport::TestCase
|
5
|
+
context 'Manifest' do
|
6
|
+
should 'be a module' do
|
7
|
+
assert_kind_of Module, Manifest
|
8
|
+
end
|
9
|
+
|
10
|
+
should 'have its own exception class' do
|
11
|
+
assert_kind_of StandardError, Manifest::Error.new
|
12
|
+
end
|
13
|
+
|
14
|
+
should 'have its own namespace as a Hash' do
|
15
|
+
assert_kind_of Hash, Manifest::NS
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'Manifest()' do
|
20
|
+
should 'call Manifest.parse' do
|
21
|
+
Scorm2004::Manifest.expects(:parse)
|
22
|
+
Scorm2004::Manifest :dummy
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'Manifest.parse()' do
|
27
|
+
should 'let a manifest visitor visit a root element' do
|
28
|
+
Scorm2004::Manifest::Manifest.expects(:new).returns(mock(:visit))
|
29
|
+
Scorm2004::Manifest.parse('<dummy />')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
data/test/sece_test.rb
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require_relative 'helper'
|
2
|
+
require_relative 'functional_test'
|
3
|
+
|
4
|
+
class SeceTest < ActiveSupport::TestCase
|
5
|
+
include FunctionalTest
|
6
|
+
|
7
|
+
gist 2020335, 'sece'
|
8
|
+
|
9
|
+
test 'parsing imsmanifest.xml of ADL SCORM 2004 4th Edition SECE' do
|
10
|
+
manifest = Scorm2004::Manifest(xml)
|
11
|
+
|
12
|
+
# <manifest>
|
13
|
+
assert_equal 'LMSTestPackage_T-01b', manifest.identifier
|
14
|
+
assert_equal '1.0', manifest.version
|
15
|
+
|
16
|
+
# <organizations>
|
17
|
+
organizations = manifest.organizations
|
18
|
+
assert_equal 'ORG-AAE040C6-5D31-FF80-7A74-C93346D3DE42', organizations.default
|
19
|
+
|
20
|
+
# <organization>
|
21
|
+
organization = organizations.organizations.first
|
22
|
+
assert_equal 'ORG-AAE040C6-5D31-FF80-7A74-C93346D3DE42', organization.identifier
|
23
|
+
assert_equal 'SCORM 2004 4th Edition Sequencing Essentials Content Example 1.0', organization.title.to_s
|
24
|
+
|
25
|
+
# <controlMode>
|
26
|
+
Scorm2004::Manifest::ControlMode.attributes.each do |attr|
|
27
|
+
assert_equal (attr != :forward_only), organization.sequencing.control_mode.send(attr), attr.to_s
|
28
|
+
end
|
29
|
+
|
30
|
+
item_0 = organization.items[0]
|
31
|
+
Scorm2004::Manifest::ControlMode.attributes.each do |attr|
|
32
|
+
assert_equal (attr != :forward_only), item_0.sequencing.control_mode.send(attr), attr.to_s
|
33
|
+
end
|
34
|
+
|
35
|
+
last = organization.items.last
|
36
|
+
Scorm2004::Manifest::ControlMode.attributes.each do |attr|
|
37
|
+
assert_equal ![:flow, :forward_only].include?(attr), last.sequencing.control_mode.send(attr), attr.to_s
|
38
|
+
end
|
39
|
+
|
40
|
+
# <postConditionRule>
|
41
|
+
rule = last.sequencing.sequencing_rules.post_condition_rules.first
|
42
|
+
rule_conditions = rule.rule_conditions
|
43
|
+
assert_equal 'all', rule_conditions.condition_combination
|
44
|
+
rule_condition = rule_conditions.rule_conditions.first
|
45
|
+
assert_equal 'noOp', rule_condition.operator
|
46
|
+
assert_equal 'attempted', rule_condition.condition
|
47
|
+
rule_action = rule.rule_action
|
48
|
+
assert_equal 'exitAll', rule_action.action
|
49
|
+
|
50
|
+
# <rollupRules>
|
51
|
+
assert_equal 1.0, last.sequencing.rollup_rules.objective_measure_weight
|
52
|
+
end
|
53
|
+
end
|
metadata
ADDED
@@ -0,0 +1,260 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scorm2004-manifest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Takahiro Noda
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: nokogiri
|
16
|
+
requirement: &2153645740 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153645740
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
requirement: &2153645260 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2153645260
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: shoulda-context
|
38
|
+
requirement: &2153644780 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '1.0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2153644780
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: mocha
|
49
|
+
requirement: &2153644300 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.10.4
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153644300
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: yard
|
60
|
+
requirement: &2153643800 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0.7'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2153643800
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: bundler
|
71
|
+
requirement: &2153643260 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ~>
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.1.0
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2153643260
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: jeweler
|
82
|
+
requirement: &2153642640 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ~>
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 1.8.3
|
88
|
+
type: :development
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2153642640
|
91
|
+
description: ! 'scorm2004-manifest is a Ruby gem that provides a manifest file parser
|
92
|
+
for SCORM 2004 4th edition. It parses and validates the manifest file according
|
93
|
+
to SCORM 2004 4th Edition Content Aggregation Model (CAM) Version 1.1. After parsing
|
94
|
+
and validating, it builds an object tree that captures XML''s hierarchical structure.
|
95
|
+
|
96
|
+
'
|
97
|
+
email: takahiro.noda+rubygems@gmail.com
|
98
|
+
executables: []
|
99
|
+
extensions: []
|
100
|
+
extra_rdoc_files:
|
101
|
+
- LICENSE.txt
|
102
|
+
- README.rdoc
|
103
|
+
files:
|
104
|
+
- .document
|
105
|
+
- Gemfile
|
106
|
+
- Gemfile.lock
|
107
|
+
- LICENSE.txt
|
108
|
+
- README.rdoc
|
109
|
+
- Rakefile
|
110
|
+
- VERSION
|
111
|
+
- lib/scorm2004-manifest.rb
|
112
|
+
- lib/scorm2004/manifest.rb
|
113
|
+
- lib/scorm2004/manifest/adlseq_map_info.rb
|
114
|
+
- lib/scorm2004/manifest/adlseq_objective.rb
|
115
|
+
- lib/scorm2004/manifest/adlseq_objectives.rb
|
116
|
+
- lib/scorm2004/manifest/attributes.rb
|
117
|
+
- lib/scorm2004/manifest/children.rb
|
118
|
+
- lib/scorm2004/manifest/completion_threshold.rb
|
119
|
+
- lib/scorm2004/manifest/condition_rule.rb
|
120
|
+
- lib/scorm2004/manifest/constrained_choice_considerations.rb
|
121
|
+
- lib/scorm2004/manifest/control_mode.rb
|
122
|
+
- lib/scorm2004/manifest/custom_error.rb
|
123
|
+
- lib/scorm2004/manifest/data.rb
|
124
|
+
- lib/scorm2004/manifest/data_from_lms.rb
|
125
|
+
- lib/scorm2004/manifest/delivery_controls.rb
|
126
|
+
- lib/scorm2004/manifest/dependency.rb
|
127
|
+
- lib/scorm2004/manifest/error.rb
|
128
|
+
- lib/scorm2004/manifest/file.rb
|
129
|
+
- lib/scorm2004/manifest/hide_lmsui.rb
|
130
|
+
- lib/scorm2004/manifest/href.rb
|
131
|
+
- lib/scorm2004/manifest/item.rb
|
132
|
+
- lib/scorm2004/manifest/limit_conditions.rb
|
133
|
+
- lib/scorm2004/manifest/manifest.rb
|
134
|
+
- lib/scorm2004/manifest/map.rb
|
135
|
+
- lib/scorm2004/manifest/map_info.rb
|
136
|
+
- lib/scorm2004/manifest/min_normalized_measure.rb
|
137
|
+
- lib/scorm2004/manifest/navigation_interface.rb
|
138
|
+
- lib/scorm2004/manifest/objective.rb
|
139
|
+
- lib/scorm2004/manifest/objectives.rb
|
140
|
+
- lib/scorm2004/manifest/organization.rb
|
141
|
+
- lib/scorm2004/manifest/organizations.rb
|
142
|
+
- lib/scorm2004/manifest/presentation.rb
|
143
|
+
- lib/scorm2004/manifest/primary_objective.rb
|
144
|
+
- lib/scorm2004/manifest/randomization_controls.rb
|
145
|
+
- lib/scorm2004/manifest/resource.rb
|
146
|
+
- lib/scorm2004/manifest/resources.rb
|
147
|
+
- lib/scorm2004/manifest/rollup_action.rb
|
148
|
+
- lib/scorm2004/manifest/rollup_condition.rb
|
149
|
+
- lib/scorm2004/manifest/rollup_conditions.rb
|
150
|
+
- lib/scorm2004/manifest/rollup_considerations.rb
|
151
|
+
- lib/scorm2004/manifest/rollup_rule.rb
|
152
|
+
- lib/scorm2004/manifest/rollup_rules.rb
|
153
|
+
- lib/scorm2004/manifest/rule_action.rb
|
154
|
+
- lib/scorm2004/manifest/rule_condition.rb
|
155
|
+
- lib/scorm2004/manifest/rule_conditions.rb
|
156
|
+
- lib/scorm2004/manifest/schema.rb
|
157
|
+
- lib/scorm2004/manifest/schemaversion.rb
|
158
|
+
- lib/scorm2004/manifest/sequencing.rb
|
159
|
+
- lib/scorm2004/manifest/sequencing_collection.rb
|
160
|
+
- lib/scorm2004/manifest/sequencing_rules.rb
|
161
|
+
- lib/scorm2004/manifest/text_node.rb
|
162
|
+
- lib/scorm2004/manifest/time_limit_action.rb
|
163
|
+
- lib/scorm2004/manifest/title.rb
|
164
|
+
- lib/scorm2004/manifest/visitor_pattern.rb
|
165
|
+
- lib/scorm2004/manifest/xml_base.rb
|
166
|
+
- test/functional_test.rb
|
167
|
+
- test/helper.rb
|
168
|
+
- test/mbce_test.rb
|
169
|
+
- test/msce_test.rb
|
170
|
+
- test/scorm2004/manifest/adlseq_map_info_test.rb
|
171
|
+
- test/scorm2004/manifest/adlseq_objective_test.rb
|
172
|
+
- test/scorm2004/manifest/adlseq_objectives_test.rb
|
173
|
+
- test/scorm2004/manifest/any_uri_token_test.rb
|
174
|
+
- test/scorm2004/manifest/attributes_test.rb
|
175
|
+
- test/scorm2004/manifest/children_test.rb
|
176
|
+
- test/scorm2004/manifest/completion_threshold_test.rb
|
177
|
+
- test/scorm2004/manifest/condition_rule_test.rb
|
178
|
+
- test/scorm2004/manifest/constrained_choice_considerations_test.rb
|
179
|
+
- test/scorm2004/manifest/control_mode_test.rb
|
180
|
+
- test/scorm2004/manifest/custom_error_test.rb
|
181
|
+
- test/scorm2004/manifest/data_from_lms_test.rb
|
182
|
+
- test/scorm2004/manifest/data_test.rb
|
183
|
+
- test/scorm2004/manifest/delivery_controls_test.rb
|
184
|
+
- test/scorm2004/manifest/dependency_test.rb
|
185
|
+
- test/scorm2004/manifest/duration_attribute_test.rb
|
186
|
+
- test/scorm2004/manifest/file_test.rb
|
187
|
+
- test/scorm2004/manifest/hide_lmsui_test.rb
|
188
|
+
- test/scorm2004/manifest/href_test.rb
|
189
|
+
- test/scorm2004/manifest/item_test.rb
|
190
|
+
- test/scorm2004/manifest/limit_conditions_test.rb
|
191
|
+
- test/scorm2004/manifest/manifest_test.rb
|
192
|
+
- test/scorm2004/manifest/map_info_test.rb
|
193
|
+
- test/scorm2004/manifest/map_test.rb
|
194
|
+
- test/scorm2004/manifest/min_normalized_measure_test.rb
|
195
|
+
- test/scorm2004/manifest/navigation_interface_test.rb
|
196
|
+
- test/scorm2004/manifest/non_negative_integer_attribute_test.rb
|
197
|
+
- test/scorm2004/manifest/objective_test.rb
|
198
|
+
- test/scorm2004/manifest/objectives_test.rb
|
199
|
+
- test/scorm2004/manifest/organization_test.rb
|
200
|
+
- test/scorm2004/manifest/organizations_test.rb
|
201
|
+
- test/scorm2004/manifest/partial_manifest.rb
|
202
|
+
- test/scorm2004/manifest/partial_manifest_test.rb
|
203
|
+
- test/scorm2004/manifest/presentation_test.rb
|
204
|
+
- test/scorm2004/manifest/primary_objective_test.rb
|
205
|
+
- test/scorm2004/manifest/randomization_controls_test.rb
|
206
|
+
- test/scorm2004/manifest/resource_test.rb
|
207
|
+
- test/scorm2004/manifest/resources_test.rb
|
208
|
+
- test/scorm2004/manifest/rollup_action_test.rb
|
209
|
+
- test/scorm2004/manifest/rollup_condition_test.rb
|
210
|
+
- test/scorm2004/manifest/rollup_conditions_test.rb
|
211
|
+
- test/scorm2004/manifest/rollup_considerations_test.rb
|
212
|
+
- test/scorm2004/manifest/rollup_rule_test.rb
|
213
|
+
- test/scorm2004/manifest/rollup_rules_test.rb
|
214
|
+
- test/scorm2004/manifest/rule_action_test.rb
|
215
|
+
- test/scorm2004/manifest/rule_condition_test.rb
|
216
|
+
- test/scorm2004/manifest/rule_conditions_test.rb
|
217
|
+
- test/scorm2004/manifest/schema_test.rb
|
218
|
+
- test/scorm2004/manifest/schemaversion_test.rb
|
219
|
+
- test/scorm2004/manifest/sequencing_collection_test.rb
|
220
|
+
- test/scorm2004/manifest/sequencing_rules_test.rb
|
221
|
+
- test/scorm2004/manifest/sequencing_test.rb
|
222
|
+
- test/scorm2004/manifest/string_attribute_test.rb
|
223
|
+
- test/scorm2004/manifest/text_node_test.rb
|
224
|
+
- test/scorm2004/manifest/time_limit_action_test.rb
|
225
|
+
- test/scorm2004/manifest/title_test.rb
|
226
|
+
- test/scorm2004/manifest/token_attribute_test.rb
|
227
|
+
- test/scorm2004/manifest/visitor_pattern_test.rb
|
228
|
+
- test/scorm2004/manifest/xml_base_test.rb
|
229
|
+
- test/scorm2004/manifest_test.rb
|
230
|
+
- test/scorm2004_test.rb
|
231
|
+
- test/sece_test.rb
|
232
|
+
homepage: https://github.com/tnoda/scorm2004-manifest
|
233
|
+
licenses:
|
234
|
+
- MIT
|
235
|
+
post_install_message:
|
236
|
+
rdoc_options: []
|
237
|
+
require_paths:
|
238
|
+
- lib
|
239
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
240
|
+
none: false
|
241
|
+
requirements:
|
242
|
+
- - ! '>='
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
245
|
+
segments:
|
246
|
+
- 0
|
247
|
+
hash: 688621200751165052
|
248
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
254
|
+
requirements: []
|
255
|
+
rubyforge_project:
|
256
|
+
rubygems_version: 1.8.17
|
257
|
+
signing_key:
|
258
|
+
specification_version: 3
|
259
|
+
summary: A manifest file parser/validator for SCORM 2004 4th Edition
|
260
|
+
test_files: []
|