marcspec 1.6.5 → 1.6.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/marcspec/map.rb +1 -1
- data/lib/marcspec/specset.rb +6 -6
- metadata +5 -5
data/CHANGES
CHANGED
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
gem.add_development_dependency "rspec"
|
16
16
|
gem.add_development_dependency "yard", ">= 0"
|
17
17
|
gem.add_development_dependency 'ci_reporter'
|
18
|
-
gem.add_dependency 'marc4j4r', '>=1.
|
18
|
+
gem.add_dependency 'marc4j4r', '>=1.2.0'
|
19
19
|
gem.add_dependency 'jlogger', '>=0.0.3'
|
20
20
|
gem.add_dependency 'jruby_streaming_update_solr_server', '>=0.5.3'
|
21
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.6.
|
1
|
+
1.6.6
|
data/lib/marcspec/map.rb
CHANGED
@@ -61,7 +61,7 @@ module MARCSpec
|
|
61
61
|
when :multi
|
62
62
|
return MultiValueMap.new(rawmap[:mapname], rawmap[:map])
|
63
63
|
else
|
64
|
-
log.
|
64
|
+
log.error "Map file #{filename} doesn't seem to be either a KV map or a MuliValueMap according to :maptype (#{rawmap[:maptype]})"
|
65
65
|
raise ArgumentError, "File #{filename} doesn't evaluate to a valid map"
|
66
66
|
end
|
67
67
|
|
data/lib/marcspec/specset.rb
CHANGED
@@ -85,8 +85,8 @@ module MARCSpec
|
|
85
85
|
f = File.open(f) if f.is_a? String
|
86
86
|
|
87
87
|
unless f
|
88
|
-
log.
|
89
|
-
Process.
|
88
|
+
log.error("Can't open file #{file}; unable to configure")
|
89
|
+
Process.abort("Can't open file #{file}; unable to configure")
|
90
90
|
end
|
91
91
|
self.instance_eval(f.read)
|
92
92
|
self.check_and_fill_maps
|
@@ -100,8 +100,8 @@ module MARCSpec
|
|
100
100
|
log.debug " Found map #{map.mapname} for solr field #{sfs.solrField}"
|
101
101
|
sfs.map = map
|
102
102
|
else
|
103
|
-
log.
|
104
|
-
Process.
|
103
|
+
log.error " Cannot find map #{sfs._mapname} for solr field #{sfs.solrField}"
|
104
|
+
Process.abort("Cannot find map #{sfs._mapname} for solr field #{sfs.solrField}")
|
105
105
|
end
|
106
106
|
end
|
107
107
|
end
|
@@ -123,8 +123,8 @@ module MARCSpec
|
|
123
123
|
if spechash[:mapname]
|
124
124
|
map = self.map(spechash[:mapname])
|
125
125
|
unless map
|
126
|
-
log.
|
127
|
-
Process.
|
126
|
+
log.error "Cannot find map #{spechash[:mapname]} for field #{spechash[:solrField]}"
|
127
|
+
Process.abort("Cannot find map #{spechash[:mapname]} for field #{spechash[:solrField]}")
|
128
128
|
else
|
129
129
|
log.debug " Found map #{spechash[:mapname]} for field #{spechash[:solrField]}"
|
130
130
|
solrspec.map = map
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 1.6.
|
8
|
+
- 6
|
9
|
+
version: 1.6.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- BillDueber
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-10-
|
17
|
+
date: 2010-10-18 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -62,9 +62,9 @@ dependencies:
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
segments:
|
64
64
|
- 1
|
65
|
-
-
|
65
|
+
- 2
|
66
66
|
- 0
|
67
|
-
version: 1.
|
67
|
+
version: 1.2.0
|
68
68
|
type: :runtime
|
69
69
|
version_requirements: *id004
|
70
70
|
- !ruby/object:Gem::Dependency
|