marcspec 1.5.0 → 1.6.1
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.
- data/CHANGES +32 -0
- data/Rakefile +21 -11
- data/VERSION +1 -1
- data/lib/marcspec.rb +9 -7
- data/lib/marcspec/constantspec.rb +16 -1
- data/lib/marcspec/controlfieldspec.rb +22 -1
- data/lib/marcspec/customspec.rb +37 -1
- data/lib/marcspec/dsl.rb +20 -5
- data/lib/marcspec/map.rb +8 -7
- data/lib/marcspec/multivaluemap.rb +1 -1
- data/lib/marcspec/solrfieldspec.rb +66 -2
- data/lib/marcspec/specset.rb +79 -11
- data/lib/marcspec/variablefieldspec.rb +52 -4
- data/spec/cachespot_spec.rb +1 -1
- data/spec/controlfieldspec_spec.rb +4 -4
- data/spec/dsl_spec.rb +52 -30
- data/spec/leaderspec_spec.rb +2 -2
- data/spec/maps_spec.rb +42 -42
- data/spec/marcfieldspecs_spec.rb +22 -22
- data/spec/solrfieldspec_spec.rb +24 -24
- data/spec/spec.opts +7 -0
- data/spec/spec_helper.rb +3 -6
- data/spec/specset_spec.rb +20 -19
- data/spec/variablefieldspec_spec.rb +9 -9
- metadata +156 -144
data/spec/solrfieldspec_spec.rb
CHANGED
@@ -26,7 +26,7 @@ describe "SolrFieldSpec" do
|
|
26
26
|
it "works with a single fieldspec" do
|
27
27
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
28
28
|
sfs << @titleAC
|
29
|
-
sfs.marc_values(@one).should
|
29
|
+
sfs.marc_values(@one).should == [@titleACValue]
|
30
30
|
end
|
31
31
|
|
32
32
|
|
@@ -34,14 +34,14 @@ describe "SolrFieldSpec" do
|
|
34
34
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
35
35
|
sfs << @titleAC
|
36
36
|
sfs << @twosixtyC
|
37
|
-
sfs.marc_values(@one).should
|
37
|
+
sfs.marc_values(@one).should == [@titleACValue, @twosixtyCValue]
|
38
38
|
end
|
39
39
|
|
40
40
|
it "preserves order" do
|
41
41
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
42
42
|
sfs << @twosixtyC
|
43
43
|
sfs << @titleAC
|
44
|
-
sfs.marc_values(@one).should
|
44
|
+
sfs.marc_values(@one).should == [@twosixtyCValue, @titleACValue]
|
45
45
|
end
|
46
46
|
|
47
47
|
|
@@ -50,20 +50,20 @@ describe "SolrFieldSpec" do
|
|
50
50
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
51
51
|
sfs << @titleAC
|
52
52
|
sfs << @twosixtyC
|
53
|
-
sfs.marc_values(@one).should
|
53
|
+
sfs.marc_values(@one).should == [@titleACValue]
|
54
54
|
end
|
55
55
|
|
56
56
|
it "returns nothing where there are no matches" do
|
57
57
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
58
58
|
sfs << @nonmatchingSpec
|
59
|
-
sfs.marc_values(@one).should
|
59
|
+
sfs.marc_values(@one).should == []
|
60
60
|
end
|
61
61
|
|
62
62
|
it "works with a default" do
|
63
63
|
@opts[:default] = @default
|
64
64
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
65
65
|
sfs << @nonmatchingSpec
|
66
|
-
sfs.marc_values(@one).should
|
66
|
+
sfs.marc_values(@one).should == [@default]
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
@@ -96,7 +96,7 @@ describe "Solr Field Specs and maps" do
|
|
96
96
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
97
97
|
sfs << @titleAC
|
98
98
|
sfs << @twosixtyC
|
99
|
-
sfs.marc_values(@one).should
|
99
|
+
sfs.marc_values(@one).should == [@mapValue]
|
100
100
|
end
|
101
101
|
|
102
102
|
it "works with a KV Map and just a map default" do
|
@@ -105,7 +105,7 @@ describe "Solr Field Specs and maps" do
|
|
105
105
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
106
106
|
sfs << @titleAC # not in map, get noMapKeyDefault
|
107
107
|
sfs << @twosixtyC # in map, get mapValue
|
108
|
-
sfs.marc_values(@one).should
|
108
|
+
sfs.marc_values(@one).should == [@noMapKeyDefault, @mapValue]
|
109
109
|
end
|
110
110
|
|
111
111
|
it "works with a KV Map and returns default value correctly" do
|
@@ -114,7 +114,7 @@ describe "Solr Field Specs and maps" do
|
|
114
114
|
@opts[:noMapKeyDefault] = @noMapKeyDefault
|
115
115
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
116
116
|
sfs << @nonmatchingSpec
|
117
|
-
sfs.marc_values(@one).should
|
117
|
+
sfs.marc_values(@one).should == [@default]
|
118
118
|
end
|
119
119
|
|
120
120
|
it "returns multiple values from a kv map when appropriate" do
|
@@ -122,7 +122,7 @@ describe "Solr Field Specs and maps" do
|
|
122
122
|
@opts[:map] = @map
|
123
123
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
124
124
|
sfs << @twosixtyC
|
125
|
-
sfs.marc_values(@one).sort.should
|
125
|
+
sfs.marc_values(@one).sort.should == ['one', 'two']
|
126
126
|
end
|
127
127
|
|
128
128
|
it "flattens things out when getting multiple values from a kv map" do
|
@@ -132,7 +132,7 @@ describe "Solr Field Specs and maps" do
|
|
132
132
|
sfs = MARCSpec::SolrFieldSpec.new(@opts)
|
133
133
|
sfs << @twosixtyC
|
134
134
|
sfs << @titleAC
|
135
|
-
sfs.marc_values(@one).sort.should
|
135
|
+
sfs.marc_values(@one).sort.should == ['one', 'two', 'three', 'four'].sort
|
136
136
|
end
|
137
137
|
|
138
138
|
|
@@ -145,7 +145,7 @@ describe "Solr Field Specs and maps" do
|
|
145
145
|
|
146
146
|
newsfs = MARCSpec::SolrFieldSpec.fromPPString(sfs.asPPString)
|
147
147
|
newsfs.map = @map
|
148
|
-
sfs.should
|
148
|
+
sfs.should == newsfs
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -192,38 +192,38 @@ describe "CustomSolrSpec" do
|
|
192
192
|
|
193
193
|
it "works with no args or map" do
|
194
194
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>'solrField', :module=>A::B, :functionSymbol=>:titleUp)
|
195
|
-
css.marc_values(@one).should
|
195
|
+
css.marc_values(@one).should == [@one['245'].value.upcase]
|
196
196
|
end
|
197
197
|
|
198
198
|
it "accepts nil for no args" do
|
199
199
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>'solrField', :module=>A::B, :functionSymbol=>:titleUp, :functionArgs=>nil)
|
200
|
-
css.marc_values(@one).should
|
200
|
+
css.marc_values(@one).should == [@one['245'].value.upcase]
|
201
201
|
end
|
202
202
|
|
203
203
|
|
204
204
|
it "uses a custom method with args but no map" do
|
205
205
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>'solrField', :module=>A::B, :functionSymbol=>:titleUp, :functionArgs=>[['a', 'c']])
|
206
|
-
css.marc_values(@one).should
|
206
|
+
css.marc_values(@one).should == [@titleACValue.upcase]
|
207
207
|
end
|
208
208
|
|
209
209
|
it "works with a map" do
|
210
210
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>'solrField', :map=>@map, :module=>A::B, :functionSymbol=>:titleUp, :functionArgs=>[['a', 'c']])
|
211
|
-
css.marc_values(@one).should
|
211
|
+
css.marc_values(@one).should == [@mapValue]
|
212
212
|
end
|
213
213
|
|
214
214
|
it "works with a map that has multiple return values" do
|
215
215
|
@map[@titleACValue.upcase] = ['two', 'one']
|
216
216
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>'solrField', :map=>@map, :module=>A::B, :functionSymbol=>:titleUp, :functionArgs=>[['a', 'c']])
|
217
|
-
css.marc_values(@one).should
|
217
|
+
css.marc_values(@one).should == ['two', 'one']
|
218
218
|
end
|
219
219
|
|
220
220
|
it "disallows multispecs with maps or default values" do
|
221
221
|
lambda{
|
222
222
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>['s1', 's2'], :module=>A::B, :functionSymbol=>:titleUp, :map=>@map)
|
223
|
-
}.should
|
223
|
+
}.should raise_error(ArgumentError)
|
224
224
|
lambda{
|
225
225
|
css = MARCSpec::CustomSolrSpec.new(:solrField=>['s1', 's2'], :module=>A::B, :functionSymbol=>:titleUp, :default=>"bill")
|
226
|
-
}.should
|
226
|
+
}.should raise_error(ArgumentError)
|
227
227
|
end
|
228
228
|
|
229
229
|
end
|
@@ -231,14 +231,14 @@ end
|
|
231
231
|
describe "ConstantSolrSpec" do
|
232
232
|
it "sets correct fields" do
|
233
233
|
c = MARCSpec::ConstantSolrSpec.new(:solrField=>"test", :constantValue=>"value")
|
234
|
-
c.solrField.should
|
235
|
-
c.constantValue.should
|
234
|
+
c.solrField.should == 'test'
|
235
|
+
c.constantValue.should == 'value'
|
236
236
|
end
|
237
237
|
|
238
238
|
it "allows array of values" do
|
239
239
|
value = ['a', 'b', 'c']
|
240
240
|
c = MARCSpec::ConstantSolrSpec.new(:solrField=>"test", :constantValue=>value)
|
241
|
-
c.constantValue.should
|
241
|
+
c.constantValue.should == value
|
242
242
|
end
|
243
243
|
|
244
244
|
bad = {
|
@@ -255,7 +255,7 @@ describe "ConstantSolrSpec" do
|
|
255
255
|
opts = {:solrField=>'test'}
|
256
256
|
opts[k] = v
|
257
257
|
it "raises ArgumentError if given invalid option #{k}" do
|
258
|
-
lambda{c = MARCSpec::ConstantSolrSpec.new(opts)}.should
|
258
|
+
lambda{c = MARCSpec::ConstantSolrSpec.new(opts)}.should raise_error(ArgumentError)
|
259
259
|
end
|
260
260
|
end
|
261
261
|
|
@@ -264,6 +264,6 @@ describe "ConstantSolrSpec" do
|
|
264
264
|
s = StringIO.new
|
265
265
|
s.puts(c.asPPString)
|
266
266
|
d = MARCSpec::ConstantSolrSpec.fromPPString(s.string)
|
267
|
-
c.should
|
267
|
+
c.should == d
|
268
268
|
end
|
269
269
|
end
|
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
|
-
require 'bacon'
|
3
2
|
require 'marc4j4r'
|
4
3
|
require 'tempfile'
|
5
|
-
|
6
|
-
require 'greeneggs'
|
7
|
-
rescue LoadError
|
8
|
-
end
|
4
|
+
require 'logger'
|
9
5
|
|
10
6
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
11
7
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
@@ -13,4 +9,5 @@ require 'marcspec'
|
|
13
9
|
|
14
10
|
DIR = File.dirname(__FILE__)
|
15
11
|
|
16
|
-
|
12
|
+
Logback::Simple.loglevel = :warn
|
13
|
+
Logback::Simple.startConsoleLogger
|
data/spec/specset_spec.rb
CHANGED
@@ -69,22 +69,23 @@ describe "SpecSet Basics" do
|
|
69
69
|
end
|
70
70
|
|
71
71
|
it "should get all the specs" do
|
72
|
-
@ss.solrfieldspecs.size.should
|
72
|
+
@ss.solrfieldspecs.size.should == 4
|
73
73
|
end
|
74
74
|
|
75
75
|
it "gets the places field" do
|
76
|
-
@h['places'].sort.should
|
76
|
+
@h['places'].sort.should == @places.sort
|
77
77
|
end
|
78
78
|
|
79
|
-
|
80
|
-
'title'
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
79
|
+
it "gets title" do
|
80
|
+
@h['title'].should == @title
|
81
|
+
end
|
82
|
+
|
83
|
+
it "gets title_a" do
|
84
|
+
@h['titleA'].should == @titleA
|
85
|
+
end
|
86
|
+
|
87
|
+
it "gets constant" do
|
88
|
+
@h['constantField'].should == ['A', 'B']
|
88
89
|
end
|
89
90
|
|
90
91
|
it "allows customs that reference previous work" do
|
@@ -92,8 +93,8 @@ describe "SpecSet Basics" do
|
|
92
93
|
ss = MARCSpec::SpecSet.new
|
93
94
|
ss.buildSpecsFromList(@speclist)
|
94
95
|
h = ss.hash_from_marc @one
|
95
|
-
h['title'].should
|
96
|
-
h['titleSort'].should
|
96
|
+
h['title'].should == @title
|
97
|
+
h['titleSort'].should == @title.map{|a| a.gsub(/\p{Punct}/, ' ').gsub(/\s+/, ' ').strip.downcase}
|
97
98
|
end
|
98
99
|
|
99
100
|
it "should allow repeated solrFields" do
|
@@ -103,7 +104,7 @@ describe "SpecSet Basics" do
|
|
103
104
|
ss = MARCSpec::SpecSet.new
|
104
105
|
ss.buildSpecsFromList(@speclist)
|
105
106
|
h = ss.hash_from_marc @one
|
106
|
-
h['titleA'].sort.should
|
107
|
+
h['titleA'].sort.should == expected.sort
|
107
108
|
end
|
108
109
|
|
109
110
|
it "should allow multi-headed custom fields" do
|
@@ -114,14 +115,14 @@ describe "SpecSet Basics" do
|
|
114
115
|
ss = MARCSpec::SpecSet.new
|
115
116
|
ss.buildSpecsFromList(@speclist)
|
116
117
|
h = ss.hash_from_marc @one
|
117
|
-
h['one'].should
|
118
|
-
h['two'].should
|
119
|
-
h['letters'].should
|
118
|
+
h['one'].should == [1]
|
119
|
+
h['two'].should == [2]
|
120
|
+
h['letters'].should == ['a', 'b']
|
120
121
|
end
|
121
122
|
|
122
123
|
it "bails if it can't find a map" do
|
123
124
|
@speclist << {:solrField => 'tst', :mapname=>'nosuch', :specs => [['245']]}
|
124
|
-
lambda{@ss.buildSpecsFromList(@speclist)}.should
|
125
|
+
lambda{@ss.buildSpecsFromList(@speclist)}.should raise_error(SystemExit )
|
125
126
|
end
|
126
127
|
|
127
128
|
end
|
@@ -159,7 +160,7 @@ describe "Specset Benchmarking" do
|
|
159
160
|
h = @ss.hash_from_marc(r, true)
|
160
161
|
end
|
161
162
|
@ss.solrfieldspecs.each do |sfs|
|
162
|
-
@ss.benchmarks[sfs.solrField].real.should
|
163
|
+
@ss.benchmarks[sfs.solrField].real.should be > 0.0
|
163
164
|
end
|
164
165
|
|
165
166
|
# @ss.benchmarks.each do |k,v|
|
@@ -26,39 +26,39 @@ describe "VariableFieldSpec" do
|
|
26
26
|
|
27
27
|
it "Should get a whole field separated by spaces" do
|
28
28
|
dfs = MARCSpec::VariableFieldSpec.new('260')
|
29
|
-
dfs.marc_values(@one).should
|
29
|
+
dfs.marc_values(@one).should == ["Medina, Texas, 1939."]
|
30
30
|
end
|
31
31
|
|
32
32
|
it "Should get just the $a" do
|
33
33
|
dfs = MARCSpec::VariableFieldSpec.new('260', 'a')
|
34
|
-
dfs.marc_values(@one).should
|
34
|
+
dfs.marc_values(@one).should == ["Medina, Texas,"]
|
35
35
|
end
|
36
36
|
|
37
37
|
it "should return separate values for repeated subfields if only one code is specified" do
|
38
38
|
dfs = MARCSpec::VariableFieldSpec.new('651', 'z')
|
39
|
-
dfs.marc_values(@one).sort.should
|
39
|
+
dfs.marc_values(@one).sort.should == ['Texas', 'United States of America.']
|
40
40
|
end
|
41
41
|
|
42
|
-
it "Should get all fields via several
|
42
|
+
it "Should get all fields via several == routes" do
|
43
43
|
a = MARCSpec::VariableFieldSpec.new('260').marc_values(@one)
|
44
44
|
ac = MARCSpec::VariableFieldSpec.new('260', ['a', 'c']).marc_values(@one)
|
45
45
|
ca = MARCSpec::VariableFieldSpec.new('260', ['c', 'a']).marc_values(@one)
|
46
46
|
ca2 = MARCSpec::VariableFieldSpec.new('260', 'ca').marc_values(@one)
|
47
47
|
allrange = MARCSpec::VariableFieldSpec.new('260', 'a'..'z').marc_values(@one)
|
48
|
-
a.should
|
49
|
-
ac.should
|
50
|
-
ca.should
|
48
|
+
a.should == ac
|
49
|
+
ac.should == ca
|
50
|
+
ca.should == allrange
|
51
51
|
end
|
52
52
|
|
53
53
|
it "should get all three 700a's" do
|
54
54
|
a = MARCSpec::VariableFieldSpec.new('700', 'a').marc_values(@one)
|
55
|
-
a.should
|
55
|
+
a.should == ["Lomax, John Avery, 1867-1948", "Lomax, Ruby T. (Ruby Terrill)", "Taylor, Beale D."]
|
56
56
|
end
|
57
57
|
|
58
58
|
it "should round trip" do
|
59
59
|
ac = MARCSpec::VariableFieldSpec.new('260', ['a', 'c'])
|
60
60
|
ac2 = MARCSpec::VariableFieldSpec.fromPPString(ac.asPPString)
|
61
|
-
ac.should
|
61
|
+
ac.should == ac2
|
62
62
|
end
|
63
63
|
|
64
64
|
end
|
metadata
CHANGED
@@ -1,83 +1,98 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marcspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 3
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
version: 1.
|
6
|
+
- 1
|
7
|
+
- 6
|
8
|
+
- 1
|
9
|
+
version: 1.6.1
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
|
-
- BillDueber
|
12
|
+
- BillDueber
|
14
13
|
autorequire:
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-10-05 00:00:00 -04:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
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
|
-
|
75
|
-
|
76
|
-
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
version: "0"
|
30
|
+
type: :development
|
31
|
+
version_requirements: *id001
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: yard
|
34
|
+
prerelease: false
|
35
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
segments:
|
40
|
+
- 0
|
41
|
+
version: "0"
|
42
|
+
type: :development
|
43
|
+
version_requirements: *id002
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: ci_reporter
|
46
|
+
prerelease: false
|
47
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
segments:
|
52
|
+
- 0
|
53
|
+
version: "0"
|
54
|
+
type: :development
|
55
|
+
version_requirements: *id003
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: marc4j4r
|
58
|
+
prerelease: false
|
59
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 1
|
65
|
+
- 1
|
66
|
+
- 0
|
67
|
+
version: 1.1.0
|
68
|
+
type: :runtime
|
69
|
+
version_requirements: *id004
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: logback-simple
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
80
|
+
type: :runtime
|
81
|
+
version_requirements: *id005
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: jruby_streaming_update_solr_server
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
segments:
|
90
|
+
- 0
|
91
|
+
- 5
|
92
|
+
- 0
|
93
|
+
version: 0.5.0
|
94
|
+
type: :runtime
|
95
|
+
version_requirements: *id006
|
81
96
|
description: Relies on marc4j4r, based on work in solrmarc
|
82
97
|
email: bill@dueber.com
|
83
98
|
executables: []
|
@@ -85,99 +100,96 @@ executables: []
|
|
85
100
|
extensions: []
|
86
101
|
|
87
102
|
extra_rdoc_files:
|
88
|
-
- LICENSE
|
89
|
-
- README.rdoc
|
103
|
+
- LICENSE
|
104
|
+
- README.rdoc
|
90
105
|
files:
|
91
|
-
- .document
|
92
|
-
- .gitignore
|
93
|
-
- CHANGES
|
94
|
-
- LICENSE
|
95
|
-
- README.rdoc
|
96
|
-
- Rakefile
|
97
|
-
- VERSION
|
98
|
-
- lib/marcspec.rb
|
99
|
-
- lib/marcspec/constantspec.rb
|
100
|
-
- lib/marcspec/controlfieldspec.rb
|
101
|
-
- lib/marcspec/customspec.rb
|
102
|
-
- lib/marcspec/dsl.rb
|
103
|
-
- lib/marcspec/kvmap.rb
|
104
|
-
- lib/marcspec/leaderspec.rb
|
105
|
-
- lib/marcspec/map.rb
|
106
|
-
- lib/marcspec/marcfieldspec.rb
|
107
|
-
- lib/marcspec/multivaluemap.rb
|
108
|
-
- lib/marcspec/solrfieldspec.rb
|
109
|
-
- lib/marcspec/specset.rb
|
110
|
-
- lib/marcspec/variablefieldspec.rb
|
111
|
-
- spec/cachespot_spec.rb
|
112
|
-
- spec/controlfieldspec_spec.rb
|
113
|
-
- spec/data/batch.dat
|
114
|
-
- spec/data/one.dat
|
115
|
-
- spec/data/simplemap.rb
|
116
|
-
- spec/data/umich/translation_maps/area_map.properties
|
117
|
-
- spec/data/umich/translation_maps/availability_map_ht.properties
|
118
|
-
- spec/data/umich/translation_maps/availability_map_umich.properties
|
119
|
-
- spec/data/umich/translation_maps/callnumber_map.properties
|
120
|
-
- spec/data/umich/translation_maps/callnumber_subject_map.properties
|
121
|
-
- spec/data/umich/translation_maps/country_map.properties
|
122
|
-
- spec/data/umich/translation_maps/format_map.properties
|
123
|
-
- spec/data/umich/translation_maps/format_map_umich.properties
|
124
|
-
- spec/data/umich/translation_maps/ht_namespace_map.properties
|
125
|
-
- spec/data/umich/translation_maps/institution_map.properties
|
126
|
-
- spec/data/umich/translation_maps/language_map.properties
|
127
|
-
- spec/data/umich/translation_maps/library_map.properties
|
128
|
-
- spec/data/umich/translation_maps/location_map.properties
|
129
|
-
- spec/data/umich/umich_index.properties
|
130
|
-
- spec/dsl_spec.rb
|
131
|
-
- spec/leaderspec_spec.rb
|
132
|
-
- spec/maps_spec.rb
|
133
|
-
- spec/marcfieldspecs_spec.rb
|
134
|
-
- spec/solrfieldspec_spec.rb
|
135
|
-
- spec/
|
136
|
-
- spec/
|
137
|
-
- spec/
|
106
|
+
- .document
|
107
|
+
- .gitignore
|
108
|
+
- CHANGES
|
109
|
+
- LICENSE
|
110
|
+
- README.rdoc
|
111
|
+
- Rakefile
|
112
|
+
- VERSION
|
113
|
+
- lib/marcspec.rb
|
114
|
+
- lib/marcspec/constantspec.rb
|
115
|
+
- lib/marcspec/controlfieldspec.rb
|
116
|
+
- lib/marcspec/customspec.rb
|
117
|
+
- lib/marcspec/dsl.rb
|
118
|
+
- lib/marcspec/kvmap.rb
|
119
|
+
- lib/marcspec/leaderspec.rb
|
120
|
+
- lib/marcspec/map.rb
|
121
|
+
- lib/marcspec/marcfieldspec.rb
|
122
|
+
- lib/marcspec/multivaluemap.rb
|
123
|
+
- lib/marcspec/solrfieldspec.rb
|
124
|
+
- lib/marcspec/specset.rb
|
125
|
+
- lib/marcspec/variablefieldspec.rb
|
126
|
+
- spec/cachespot_spec.rb
|
127
|
+
- spec/controlfieldspec_spec.rb
|
128
|
+
- spec/data/batch.dat
|
129
|
+
- spec/data/one.dat
|
130
|
+
- spec/data/simplemap.rb
|
131
|
+
- spec/data/umich/translation_maps/area_map.properties
|
132
|
+
- spec/data/umich/translation_maps/availability_map_ht.properties
|
133
|
+
- spec/data/umich/translation_maps/availability_map_umich.properties
|
134
|
+
- spec/data/umich/translation_maps/callnumber_map.properties
|
135
|
+
- spec/data/umich/translation_maps/callnumber_subject_map.properties
|
136
|
+
- spec/data/umich/translation_maps/country_map.properties
|
137
|
+
- spec/data/umich/translation_maps/format_map.properties
|
138
|
+
- spec/data/umich/translation_maps/format_map_umich.properties
|
139
|
+
- spec/data/umich/translation_maps/ht_namespace_map.properties
|
140
|
+
- spec/data/umich/translation_maps/institution_map.properties
|
141
|
+
- spec/data/umich/translation_maps/language_map.properties
|
142
|
+
- spec/data/umich/translation_maps/library_map.properties
|
143
|
+
- spec/data/umich/translation_maps/location_map.properties
|
144
|
+
- spec/data/umich/umich_index.properties
|
145
|
+
- spec/dsl_spec.rb
|
146
|
+
- spec/leaderspec_spec.rb
|
147
|
+
- spec/maps_spec.rb
|
148
|
+
- spec/marcfieldspecs_spec.rb
|
149
|
+
- spec/solrfieldspec_spec.rb
|
150
|
+
- spec/spec.opts
|
151
|
+
- spec/spec_helper.rb
|
152
|
+
- spec/specset_spec.rb
|
153
|
+
- spec/variablefieldspec_spec.rb
|
138
154
|
has_rdoc: true
|
139
155
|
homepage: http://github.com/billdueber/marcspec
|
140
156
|
licenses: []
|
141
157
|
|
142
158
|
post_install_message:
|
143
159
|
rdoc_options:
|
144
|
-
- --charset=UTF-8
|
160
|
+
- --charset=UTF-8
|
145
161
|
require_paths:
|
146
|
-
- lib
|
162
|
+
- lib
|
147
163
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
-
none: false
|
149
164
|
requirements:
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
version: "0"
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
segments:
|
168
|
+
- 0
|
169
|
+
version: "0"
|
156
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
171
|
requirements:
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
version: "0"
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
segments:
|
175
|
+
- 0
|
176
|
+
version: "0"
|
165
177
|
requirements: []
|
166
178
|
|
167
179
|
rubyforge_project:
|
168
|
-
rubygems_version: 1.3.
|
180
|
+
rubygems_version: 1.3.6
|
169
181
|
signing_key:
|
170
182
|
specification_version: 3
|
171
183
|
summary: Extract data from MARC records and send to Solr
|
172
184
|
test_files:
|
173
|
-
- spec/cachespot_spec.rb
|
174
|
-
- spec/controlfieldspec_spec.rb
|
175
|
-
- spec/
|
176
|
-
- spec/
|
177
|
-
- spec/
|
178
|
-
- spec/
|
179
|
-
- spec/
|
180
|
-
- spec/
|
181
|
-
- spec/
|
182
|
-
- spec/
|
183
|
-
- spec/
|
185
|
+
- spec/cachespot_spec.rb
|
186
|
+
- spec/controlfieldspec_spec.rb
|
187
|
+
- spec/dsl_spec.rb
|
188
|
+
- spec/leaderspec_spec.rb
|
189
|
+
- spec/maps_spec.rb
|
190
|
+
- spec/marcfieldspecs_spec.rb
|
191
|
+
- spec/solrfieldspec_spec.rb
|
192
|
+
- spec/spec_helper.rb
|
193
|
+
- spec/specset_spec.rb
|
194
|
+
- spec/variablefieldspec_spec.rb
|
195
|
+
- spec/data/simplemap.rb
|