marc2solr 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +11 -0
  2. data/VERSION +1 -0
  3. data/lib/marc2solr/marc2solr_custom.rb +1 -1
  4. metadata +148 -167
data/CHANGES ADDED
@@ -0,0 +1,11 @@
1
+ 0.1.3
2
+ ...and fixed signature for getISBNs
3
+
4
+ 0.1.2
5
+ Added custom function getISBNS
6
+
7
+ 0.1.1
8
+ Minor fixes to documentation of options
9
+
10
+ 0.1.0
11
+ Initial public release
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.3
@@ -85,7 +85,7 @@ module MARC2Solr
85
85
  # Extract an ISBN from the given subfields of the 020 and provide
86
86
  # both 10-character and 13-digit versions for each
87
87
 
88
- def self.getISBNS codes=['a', 'z']
88
+ def self.getISBNS doc, r, codes=['a', 'z']
89
89
  rv = []
90
90
  r.find_by_tag('020').each do |f|
91
91
  f.sub_values(codes).each do |v|
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marc2solr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease: false
6
5
  segments:
7
- - 0
8
- - 1
9
- - 2
10
- version: 0.1.2
6
+ - 0
7
+ - 1
8
+ - 3
9
+ version: 0.1.3
11
10
  platform: ruby
12
11
  authors:
13
- - BillDueber
12
+ - BillDueber
14
13
  autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
@@ -18,189 +17,171 @@ cert_chain: []
18
17
  date: 2010-10-13 00:00:00 -04:00
19
18
  default_executable:
20
19
  dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: marc4j4r
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 31
30
- segments:
31
- - 1
32
- - 2
33
- - 0
34
- version: 1.2.0
35
- type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: jruby_streaming_update_solr_server
39
- prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 0
48
- - 5
49
- - 2
50
- version: 0.5.2
51
- type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: marcspec
55
- prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 9
62
- segments:
63
- - 1
64
- - 6
65
- - 3
66
- version: 1.6.3
67
- type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: threach
71
- prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 23
78
- segments:
79
- - 0
80
- - 2
81
- - 0
82
- version: 0.2.0
83
- type: :runtime
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: logback-simple
87
- prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- hash: 3
94
- segments:
95
- - 0
96
- version: "0"
97
- type: :runtime
98
- version_requirements: *id005
99
- - !ruby/object:Gem::Dependency
100
- name: library_stdnums
101
- prerelease: false
102
- requirement: &id006 !ruby/object:Gem::Requirement
103
- none: false
104
- requirements:
105
- - - ">="
106
- - !ruby/object:Gem::Version
107
- hash: 23
108
- segments:
109
- - 0
110
- - 2
111
- - 0
112
- version: 0.2.0
113
- type: :runtime
114
- version_requirements: *id006
115
- - !ruby/object:Gem::Dependency
116
- name: rspec
117
- prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
119
- none: false
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- hash: 13
124
- segments:
125
- - 1
126
- - 2
127
- - 9
128
- version: 1.2.9
129
- type: :development
130
- version_requirements: *id007
131
- - !ruby/object:Gem::Dependency
132
- name: yard
133
- prerelease: false
134
- requirement: &id008 !ruby/object:Gem::Requirement
135
- none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
143
- type: :development
144
- version_requirements: *id008
20
+ - !ruby/object:Gem::Dependency
21
+ name: marc4j4r
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 0
31
+ version: 1.2.0
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: jruby_streaming_update_solr_server
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ - 5
44
+ - 2
45
+ version: 0.5.2
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: marcspec
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 6
58
+ - 3
59
+ version: 1.6.3
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: threach
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 2
72
+ - 0
73
+ version: 0.2.0
74
+ type: :runtime
75
+ version_requirements: *id004
76
+ - !ruby/object:Gem::Dependency
77
+ name: logback-simple
78
+ prerelease: false
79
+ requirement: &id005 !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
85
+ version: "0"
86
+ type: :runtime
87
+ version_requirements: *id005
88
+ - !ruby/object:Gem::Dependency
89
+ name: library_stdnums
90
+ prerelease: false
91
+ requirement: &id006 !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ segments:
96
+ - 0
97
+ - 2
98
+ - 0
99
+ version: 0.2.0
100
+ type: :runtime
101
+ version_requirements: *id006
102
+ - !ruby/object:Gem::Dependency
103
+ name: rspec
104
+ prerelease: false
105
+ requirement: &id007 !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ segments:
110
+ - 1
111
+ - 2
112
+ - 9
113
+ version: 1.2.9
114
+ type: :development
115
+ version_requirements: *id007
116
+ - !ruby/object:Gem::Dependency
117
+ name: yard
118
+ prerelease: false
119
+ requirement: &id008 !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ segments:
124
+ - 0
125
+ version: "0"
126
+ type: :development
127
+ version_requirements: *id008
145
128
  description: Given a file of MARC records, send them to Sorl for indexing based on a set of MARCSpecs
146
129
  email: bill@dueber.com
147
130
  executables:
148
- - marc2solr
149
- - solrmarc_to_marc2solr
150
- - solrmarc_to_marc2solr
151
- - marc2solr
131
+ - marc2solr
132
+ - solrmarc_to_marc2solr
133
+ - solrmarc_to_marc2solr
134
+ - marc2solr
152
135
  extensions: []
153
136
 
154
137
  extra_rdoc_files:
155
- - LICENSE
156
- - README.md
138
+ - LICENSE
139
+ - README.md
157
140
  files:
158
- - .document
159
- - .gitignore
160
- - LICENSE
161
- - README.md
162
- - Rakefile
163
- - bin/marc2solr
164
- - bin/solrmarc_to_marc2solr
165
- - lib/marc2solr.rb
166
- - lib/marc2solr/marc2solr_custom.rb
167
- - spec/marc2solr_spec.rb
168
- - spec/spec.opts
169
- - spec/spec_helper.rb
141
+ - .document
142
+ - .gitignore
143
+ - CHANGES
144
+ - LICENSE
145
+ - README.md
146
+ - Rakefile
147
+ - VERSION
148
+ - bin/marc2solr
149
+ - bin/solrmarc_to_marc2solr
150
+ - lib/marc2solr.rb
151
+ - lib/marc2solr/marc2solr_custom.rb
152
+ - spec/marc2solr_spec.rb
153
+ - spec/spec.opts
154
+ - spec/spec_helper.rb
170
155
  has_rdoc: true
171
156
  homepage: http://github.com/billdueber/marc2solr
172
157
  licenses: []
173
158
 
174
159
  post_install_message:
175
160
  rdoc_options:
176
- - --charset=UTF-8
161
+ - --charset=UTF-8
177
162
  require_paths:
178
- - lib
163
+ - lib
179
164
  required_ruby_version: !ruby/object:Gem::Requirement
180
- none: false
181
165
  requirements:
182
- - - ">="
183
- - !ruby/object:Gem::Version
184
- hash: 3
185
- segments:
186
- - 0
187
- version: "0"
166
+ - - ">="
167
+ - !ruby/object:Gem::Version
168
+ segments:
169
+ - 0
170
+ version: "0"
188
171
  required_rubygems_version: !ruby/object:Gem::Requirement
189
- none: false
190
172
  requirements:
191
- - - ">="
192
- - !ruby/object:Gem::Version
193
- hash: 3
194
- segments:
195
- - 0
196
- version: "0"
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ segments:
176
+ - 0
177
+ version: "0"
197
178
  requirements: []
198
179
 
199
180
  rubyforge_project:
200
- rubygems_version: 1.3.7
181
+ rubygems_version: 1.3.6
201
182
  signing_key:
202
183
  specification_version: 3
203
184
  summary: "MARC2Solr: Get MARC into Solr via JRuby"
204
185
  test_files:
205
- - spec/marc2solr_spec.rb
206
- - spec/spec_helper.rb
186
+ - spec/marc2solr_spec.rb
187
+ - spec/spec_helper.rb