om 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +11 -0
- data/Gemfile.lock +32 -0
- data/History.textile +8 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/om/xml/named_term_proxy.rb +21 -3
- data/lib/om/xml/term.rb +5 -4
- data/lib/om/xml/term_xpath_generator.rb +1 -1
- data/lib/om/xml/terminology.rb +2 -1
- data/om.gemspec +95 -77
- data/spec/unit/terminology_builder_spec.rb +16 -0
- metadata +115 -26
- data/.gitignore +0 -21
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
columnize (0.3.2)
|
5
|
+
facets (2.9.0)
|
6
|
+
git (1.2.5)
|
7
|
+
jeweler (1.5.1)
|
8
|
+
bundler (~> 1.0.0)
|
9
|
+
git (>= 1.2.5)
|
10
|
+
rake
|
11
|
+
linecache (0.43)
|
12
|
+
mocha (0.9.10)
|
13
|
+
rake
|
14
|
+
nokogiri (1.4.4)
|
15
|
+
rake (0.8.7)
|
16
|
+
rspec (1.3.1)
|
17
|
+
ruby-debug (0.10.4)
|
18
|
+
columnize (>= 0.1)
|
19
|
+
ruby-debug-base (~> 0.10.4.0)
|
20
|
+
ruby-debug-base (0.10.4)
|
21
|
+
linecache (>= 0.3)
|
22
|
+
|
23
|
+
PLATFORMS
|
24
|
+
ruby
|
25
|
+
|
26
|
+
DEPENDENCIES
|
27
|
+
facets
|
28
|
+
jeweler
|
29
|
+
mocha (>= 0.9.8)
|
30
|
+
nokogiri
|
31
|
+
rspec (< 2.0.0)
|
32
|
+
ruby-debug
|
data/History.textile
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -1,20 +1,32 @@
|
|
1
1
|
class OM::XML::NamedTermProxy
|
2
2
|
|
3
|
-
attr_accessor :proxy_pointer, :name
|
3
|
+
attr_accessor :proxy_pointer, :name, :terminology
|
4
4
|
|
5
5
|
include OM::TreeNode
|
6
6
|
|
7
|
-
|
7
|
+
# Creates a Named Proxy that points to another term in the Terminology.
|
8
|
+
# Unlike regular terms, NamedTermProxy requires you to provide a reference to the containing Terminology.
|
9
|
+
# This is to ensure that it will always be able to look up the term that it's referencing.
|
10
|
+
# @param [Symbol] name of the proxy term
|
11
|
+
# @param [Array] proxy_pointer that points to the Term we're proxying
|
12
|
+
# @param [OM::XML::Terminology] terminology that this Term is being built for
|
13
|
+
# @param [Hash] opts additional Term options
|
14
|
+
def initialize(name, proxy_pointer, terminology, opts={})
|
8
15
|
opts = {:namespace_prefix=>"oxns", :ancestors=>[], :children=>{}}.merge(opts)
|
9
16
|
[:children, :ancestors].each do |accessor_name|
|
10
17
|
instance_variable_set("@#{accessor_name}", opts.fetch(accessor_name, nil) )
|
11
18
|
end
|
19
|
+
@terminology = terminology
|
12
20
|
@name = name
|
13
21
|
@proxy_pointer = proxy_pointer
|
14
22
|
end
|
15
23
|
|
16
24
|
def proxied_term
|
17
|
-
self.parent.
|
25
|
+
if self.parent.nil?
|
26
|
+
self.terminology.retrieve_term(*self.proxy_pointer)
|
27
|
+
else
|
28
|
+
self.parent.retrieve_term(*self.proxy_pointer)
|
29
|
+
end
|
18
30
|
end
|
19
31
|
|
20
32
|
# do nothing -- this is to prevent errors when the parent term calls generate_xpath_queries! on its children
|
@@ -22,6 +34,12 @@ class OM::XML::NamedTermProxy
|
|
22
34
|
# do nothing
|
23
35
|
end
|
24
36
|
|
37
|
+
# A proxy term can never serve as the root term of a Terminology.
|
38
|
+
# Explicitly setting is_root_term? to return false to support proxies that are _at_ the root of the Terminology but aren't _the_ root term.
|
39
|
+
def is_root_term?
|
40
|
+
return false
|
41
|
+
end
|
42
|
+
|
25
43
|
def method_missing
|
26
44
|
end
|
27
45
|
|
data/lib/om/xml/term.rb
CHANGED
@@ -35,7 +35,7 @@ class OM::XML::Term
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Fail on circular references and return an intelligible error message
|
38
|
-
if nodes_visited.
|
38
|
+
if nodes_visited.include?(target)
|
39
39
|
nodes_visited << self
|
40
40
|
nodes_visited << target
|
41
41
|
trail = ""
|
@@ -87,10 +87,11 @@ class OM::XML::Term
|
|
87
87
|
# Builds a new OM::XML::Term based on the Builder object's current settings
|
88
88
|
# If no path has been provided, uses the Builder object's name as the term's path
|
89
89
|
# Recursively builds any children, appending the results as children of the Term that's being built.
|
90
|
-
|
90
|
+
# @param [OM::XML::Terminology] terminology that this Term is being built for
|
91
|
+
def build(terminology=nil)
|
91
92
|
self.resolve_refs!
|
92
93
|
if term.self.settings.has_key?(:proxy)
|
93
|
-
term = OM::XML::NamedTermProxy.new(self.name, self.settings[:proxy])
|
94
|
+
term = OM::XML::NamedTermProxy.new(self.name, self.settings[:proxy], terminology, self.settings)
|
94
95
|
else
|
95
96
|
term = OM::XML::Term.new(self.name)
|
96
97
|
|
@@ -100,7 +101,7 @@ class OM::XML::Term
|
|
100
101
|
end
|
101
102
|
end
|
102
103
|
@children.each_value do |child|
|
103
|
-
term.add_child child.build
|
104
|
+
term.add_child child.build(terminology)
|
104
105
|
end
|
105
106
|
term.generate_xpath_queries!
|
106
107
|
end
|
@@ -136,7 +136,7 @@ module OM::XML::TermXpathGenerator
|
|
136
136
|
# If we've encountered a NamedTermProxy, insert path sections corresponding to
|
137
137
|
# terms corresponding to each entry in its proxy_pointer rather than just the final term that it points to.
|
138
138
|
if term.kind_of? OM::XML::NamedTermProxy
|
139
|
-
current_location = term.parent
|
139
|
+
current_location = term.parent.nil? ? term.terminology : term.parent
|
140
140
|
relative_path = ""
|
141
141
|
term.proxy_pointer.each_with_index do |proxy_pointer, proxy_pointer_index|
|
142
142
|
proxy_term = current_location.retrieve_term(proxy_pointer)
|
data/lib/om/xml/terminology.rb
CHANGED
@@ -90,7 +90,7 @@ class OM::XML::Terminology
|
|
90
90
|
root_term_builder.children.delete(root_term_builder.name)
|
91
91
|
end
|
92
92
|
@term_builders.each_value do |root_builder|
|
93
|
-
terminology.add_term root_builder.build
|
93
|
+
terminology.add_term root_builder.build(terminology)
|
94
94
|
end
|
95
95
|
terminology
|
96
96
|
end
|
@@ -140,6 +140,7 @@ class OM::XML::Terminology
|
|
140
140
|
|
141
141
|
# Return the appropriate xpath query for retrieving nodes corresponding to the term identified by +pointers+.
|
142
142
|
# If the last argument is a String or a Hash, it will be used to add +constraints+ to the resulting xpath query.
|
143
|
+
# If you provide an xpath query as the argument, it will be returne untouched.
|
143
144
|
def xpath_for(*pointers)
|
144
145
|
if pointers.length == 1 && pointers.first.instance_of?(String)
|
145
146
|
xpath_query = pointers.first
|
data/om.gemspec
CHANGED
@@ -1,103 +1,103 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{om}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matt Zumwalt"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-12-06}
|
13
13
|
s.description = %q{OM (Opinionated Metadata): A library to help you tame sprawling XML schemas like MODS. Wraps Nokogiri documents in objects with miscellaneous helper methods for doing things like retrieve generated xpath queries or look up properties based on a simplified DSL}
|
14
14
|
s.email = %q{matt.zumwalt@yourmediashelf.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
18
|
-
|
17
|
+
"README.rdoc",
|
18
|
+
"README.textile"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
".document",
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"History.textile",
|
25
|
+
"LICENSE",
|
26
|
+
"README.rdoc",
|
27
|
+
"README.textile",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"container_spec.rb",
|
31
|
+
"lib/om.rb",
|
32
|
+
"lib/om/samples.rb",
|
33
|
+
"lib/om/samples/mods_article.rb",
|
34
|
+
"lib/om/tree_node.rb",
|
35
|
+
"lib/om/xml.rb",
|
36
|
+
"lib/om/xml/accessors.rb",
|
37
|
+
"lib/om/xml/container.rb",
|
38
|
+
"lib/om/xml/document.rb",
|
39
|
+
"lib/om/xml/generator.rb",
|
40
|
+
"lib/om/xml/named_term_proxy.rb",
|
41
|
+
"lib/om/xml/node_generator.rb",
|
42
|
+
"lib/om/xml/properties.rb",
|
43
|
+
"lib/om/xml/property_value_operators.rb",
|
44
|
+
"lib/om/xml/term.rb",
|
45
|
+
"lib/om/xml/term_value_operators.rb",
|
46
|
+
"lib/om/xml/term_xpath_generator.rb",
|
47
|
+
"lib/om/xml/terminology.rb",
|
48
|
+
"lib/om/xml/validation.rb",
|
49
|
+
"lib/om/xml/vocabulary.rb",
|
50
|
+
"om.gemspec",
|
51
|
+
"spec/fixtures/CBF_MODS/ARS0025_016.xml",
|
52
|
+
"spec/fixtures/RUBRIC_mods_article_template.xml",
|
53
|
+
"spec/fixtures/mods-3-2.xsd",
|
54
|
+
"spec/fixtures/mods_articles/hydrangea_article1.xml",
|
55
|
+
"spec/fixtures/test_dummy_mods.xml",
|
56
|
+
"spec/integration/rights_metadata_integration_example_spec.rb",
|
57
|
+
"spec/spec.opts",
|
58
|
+
"spec/spec_helper.rb",
|
59
|
+
"spec/unit/accessors_spec.rb",
|
60
|
+
"spec/unit/container_spec.rb",
|
61
|
+
"spec/unit/document_spec.rb",
|
62
|
+
"spec/unit/generator_spec.rb",
|
63
|
+
"spec/unit/named_term_proxy_spec.rb",
|
64
|
+
"spec/unit/node_generator_spec.rb",
|
65
|
+
"spec/unit/om_spec.rb",
|
66
|
+
"spec/unit/properties_spec.rb",
|
67
|
+
"spec/unit/property_value_operators_spec.rb",
|
68
|
+
"spec/unit/term_builder_spec.rb",
|
69
|
+
"spec/unit/term_spec.rb",
|
70
|
+
"spec/unit/term_value_operators_spec.rb",
|
71
|
+
"spec/unit/term_xpath_generator_spec.rb",
|
72
|
+
"spec/unit/terminology_builder_spec.rb",
|
73
|
+
"spec/unit/terminology_spec.rb",
|
74
|
+
"spec/unit/validation_spec.rb",
|
75
|
+
"spec/unit/xml_spec.rb"
|
75
76
|
]
|
76
77
|
s.homepage = %q{http://github.com/mediashelf/om}
|
77
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
78
78
|
s.require_paths = ["lib"]
|
79
79
|
s.rubygems_version = %q{1.3.7}
|
80
80
|
s.summary = %q{OM (Opinionated Metadata): A library to help you tame sprawling XML schemas like MODS.}
|
81
81
|
s.test_files = [
|
82
82
|
"spec/integration/rights_metadata_integration_example_spec.rb",
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
83
|
+
"spec/spec_helper.rb",
|
84
|
+
"spec/unit/accessors_spec.rb",
|
85
|
+
"spec/unit/container_spec.rb",
|
86
|
+
"spec/unit/document_spec.rb",
|
87
|
+
"spec/unit/generator_spec.rb",
|
88
|
+
"spec/unit/named_term_proxy_spec.rb",
|
89
|
+
"spec/unit/node_generator_spec.rb",
|
90
|
+
"spec/unit/om_spec.rb",
|
91
|
+
"spec/unit/properties_spec.rb",
|
92
|
+
"spec/unit/property_value_operators_spec.rb",
|
93
|
+
"spec/unit/term_builder_spec.rb",
|
94
|
+
"spec/unit/term_spec.rb",
|
95
|
+
"spec/unit/term_value_operators_spec.rb",
|
96
|
+
"spec/unit/term_xpath_generator_spec.rb",
|
97
|
+
"spec/unit/terminology_builder_spec.rb",
|
98
|
+
"spec/unit/terminology_spec.rb",
|
99
|
+
"spec/unit/validation_spec.rb",
|
100
|
+
"spec/unit/xml_spec.rb"
|
101
101
|
]
|
102
102
|
|
103
103
|
if s.respond_to? :specification_version then
|
@@ -105,12 +105,24 @@ Gem::Specification.new do |s|
|
|
105
105
|
s.specification_version = 3
|
106
106
|
|
107
107
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
108
|
+
s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
|
109
|
+
s.add_runtime_dependency(%q<facets>, [">= 0"])
|
110
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
111
|
+
s.add_development_dependency(%q<rspec>, ["< 2.0.0"])
|
112
|
+
s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
|
113
|
+
s.add_development_dependency(%q<ruby-debug>, [">= 0"])
|
108
114
|
s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.2"])
|
109
115
|
s.add_runtime_dependency(%q<facets>, [">= 0"])
|
110
116
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
111
117
|
s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
|
112
118
|
s.add_development_dependency(%q<ruby-debug>, [">= 0"])
|
113
119
|
else
|
120
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
121
|
+
s.add_dependency(%q<facets>, [">= 0"])
|
122
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
123
|
+
s.add_dependency(%q<rspec>, ["< 2.0.0"])
|
124
|
+
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
125
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
114
126
|
s.add_dependency(%q<nokogiri>, [">= 1.4.2"])
|
115
127
|
s.add_dependency(%q<facets>, [">= 0"])
|
116
128
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
@@ -118,6 +130,12 @@ Gem::Specification.new do |s|
|
|
118
130
|
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
119
131
|
end
|
120
132
|
else
|
133
|
+
s.add_dependency(%q<nokogiri>, [">= 0"])
|
134
|
+
s.add_dependency(%q<facets>, [">= 0"])
|
135
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
136
|
+
s.add_dependency(%q<rspec>, ["< 2.0.0"])
|
137
|
+
s.add_dependency(%q<mocha>, [">= 0.9.8"])
|
138
|
+
s.add_dependency(%q<ruby-debug>, [">= 0"])
|
121
139
|
s.add_dependency(%q<nokogiri>, [">= 1.4.2"])
|
122
140
|
s.add_dependency(%q<facets>, [">= 0"])
|
123
141
|
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
@@ -65,6 +65,22 @@ describe "OM::XML::Terminology::Builder" do
|
|
65
65
|
|
66
66
|
end
|
67
67
|
|
68
|
+
it "supports proxy terms at the root of the Terminology" do
|
69
|
+
t_builder = OM::XML::Terminology::Builder.new do |t|
|
70
|
+
t.root(:path=>"mods", :xmlns=>"http://www.loc.gov/mods/v3", :schema=>"http://www.loc.gov/standards/mods/v3/mods-3-2.xsd")
|
71
|
+
t.title_info(:path=>"titleInfo") {
|
72
|
+
t.main_title(:path=>"title", :label=>"title")
|
73
|
+
t.language(:path=>{:attribute=>"lang"})
|
74
|
+
}
|
75
|
+
t.title(:proxy=>[:title_info, :main_title])
|
76
|
+
end
|
77
|
+
|
78
|
+
terminology = t_builder.build
|
79
|
+
terminology.retrieve_term(:title).should be_kind_of OM::XML::NamedTermProxy
|
80
|
+
terminology.xpath_for(:title).should == '//oxns:titleInfo/oxns:title'
|
81
|
+
terminology.xpath_with_indexes({:title=>0}).should == "//oxns:titleInfo/oxns:title"
|
82
|
+
end
|
83
|
+
|
68
84
|
describe '#new' do
|
69
85
|
it "should return an instance of OM::XML::Terminology::Builder" do
|
70
86
|
OM::XML::Terminology::Builder.new.should be_instance_of OM::XML::Terminology::Builder
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: om
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matt Zumwalt
|
@@ -15,13 +15,102 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-06 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
22
24
|
name: nokogiri
|
25
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 3
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
version: "0"
|
34
|
+
requirement: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
type: :runtime
|
23
37
|
prerelease: false
|
24
|
-
|
38
|
+
name: facets
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
version: "0"
|
48
|
+
requirement: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
name: jeweler
|
53
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
hash: 3
|
59
|
+
segments:
|
60
|
+
- 0
|
61
|
+
version: "0"
|
62
|
+
requirement: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
type: :development
|
65
|
+
prerelease: false
|
66
|
+
name: rspec
|
67
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - <
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
hash: 15
|
73
|
+
segments:
|
74
|
+
- 2
|
75
|
+
- 0
|
76
|
+
- 0
|
77
|
+
version: 2.0.0
|
78
|
+
requirement: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
name: mocha
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
hash: 43
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
- 9
|
92
|
+
- 8
|
93
|
+
version: 0.9.8
|
94
|
+
requirement: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
name: ruby-debug
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
hash: 3
|
105
|
+
segments:
|
106
|
+
- 0
|
107
|
+
version: "0"
|
108
|
+
requirement: *id006
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
name: nokogiri
|
113
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
25
114
|
none: false
|
26
115
|
requirements:
|
27
116
|
- - ">="
|
@@ -32,12 +121,12 @@ dependencies:
|
|
32
121
|
- 4
|
33
122
|
- 2
|
34
123
|
version: 1.4.2
|
35
|
-
|
36
|
-
version_requirements: *id001
|
124
|
+
requirement: *id007
|
37
125
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
126
|
+
type: :runtime
|
39
127
|
prerelease: false
|
40
|
-
|
128
|
+
name: facets
|
129
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
41
130
|
none: false
|
42
131
|
requirements:
|
43
132
|
- - ">="
|
@@ -46,12 +135,12 @@ dependencies:
|
|
46
135
|
segments:
|
47
136
|
- 0
|
48
137
|
version: "0"
|
49
|
-
|
50
|
-
version_requirements: *id002
|
138
|
+
requirement: *id008
|
51
139
|
- !ruby/object:Gem::Dependency
|
52
|
-
|
140
|
+
type: :development
|
53
141
|
prerelease: false
|
54
|
-
|
142
|
+
name: rspec
|
143
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
55
144
|
none: false
|
56
145
|
requirements:
|
57
146
|
- - ">="
|
@@ -62,12 +151,12 @@ dependencies:
|
|
62
151
|
- 2
|
63
152
|
- 9
|
64
153
|
version: 1.2.9
|
65
|
-
|
66
|
-
version_requirements: *id003
|
154
|
+
requirement: *id009
|
67
155
|
- !ruby/object:Gem::Dependency
|
68
|
-
|
156
|
+
type: :development
|
69
157
|
prerelease: false
|
70
|
-
|
158
|
+
name: mocha
|
159
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
71
160
|
none: false
|
72
161
|
requirements:
|
73
162
|
- - ">="
|
@@ -78,12 +167,12 @@ dependencies:
|
|
78
167
|
- 9
|
79
168
|
- 8
|
80
169
|
version: 0.9.8
|
81
|
-
|
82
|
-
version_requirements: *id004
|
170
|
+
requirement: *id010
|
83
171
|
- !ruby/object:Gem::Dependency
|
84
|
-
|
172
|
+
type: :development
|
85
173
|
prerelease: false
|
86
|
-
|
174
|
+
name: ruby-debug
|
175
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
87
176
|
none: false
|
88
177
|
requirements:
|
89
178
|
- - ">="
|
@@ -92,8 +181,7 @@ dependencies:
|
|
92
181
|
segments:
|
93
182
|
- 0
|
94
183
|
version: "0"
|
95
|
-
|
96
|
-
version_requirements: *id005
|
184
|
+
requirement: *id011
|
97
185
|
description: "OM (Opinionated Metadata): A library to help you tame sprawling XML schemas like MODS. Wraps Nokogiri documents in objects with miscellaneous helper methods for doing things like retrieve generated xpath queries or look up properties based on a simplified DSL"
|
98
186
|
email: matt.zumwalt@yourmediashelf.com
|
99
187
|
executables: []
|
@@ -106,7 +194,8 @@ extra_rdoc_files:
|
|
106
194
|
- README.textile
|
107
195
|
files:
|
108
196
|
- .document
|
109
|
-
-
|
197
|
+
- Gemfile
|
198
|
+
- Gemfile.lock
|
110
199
|
- History.textile
|
111
200
|
- LICENSE
|
112
201
|
- README.rdoc
|
@@ -164,8 +253,8 @@ homepage: http://github.com/mediashelf/om
|
|
164
253
|
licenses: []
|
165
254
|
|
166
255
|
post_install_message:
|
167
|
-
rdoc_options:
|
168
|
-
|
256
|
+
rdoc_options: []
|
257
|
+
|
169
258
|
require_paths:
|
170
259
|
- lib
|
171
260
|
required_ruby_version: !ruby/object:Gem::Requirement
|