traject 2.1.0-java → 2.2.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +8 -20
- data/CHANGES.md +14 -0
- data/README.md +35 -56
- data/doc/extending.md +20 -27
- data/doc/indexing_rules.md +46 -57
- data/doc/settings.md +17 -48
- data/lib/traject/debug_writer.rb +31 -5
- data/lib/traject/indexer.rb +6 -4
- data/lib/traject/marc_extractor.rb +37 -157
- data/lib/traject/marc_extractor_spec.rb +229 -0
- data/lib/traject/version.rb +1 -1
- data/test/debug_writer_test.rb +41 -0
- data/test/marc_extractor_test.rb +24 -24
- data/test/test_support/demo_config.rb +1 -1
- data/traject.gemspec +5 -5
- metadata +74 -73
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Jonathan Rochkind
|
@@ -9,182 +9,182 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-01-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: concurrent-ruby
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - '>='
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 0.8.0
|
21
15
|
requirement: !ruby/object:Gem::Requirement
|
22
16
|
requirements:
|
23
|
-
- -
|
17
|
+
- - ">="
|
24
18
|
- !ruby/object:Gem::Version
|
25
19
|
version: 0.8.0
|
20
|
+
name: concurrent-ruby
|
26
21
|
prerelease: false
|
27
22
|
type: :runtime
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: marc
|
30
23
|
version_requirements: !ruby/object:Gem::Requirement
|
31
24
|
requirements:
|
32
|
-
- -
|
25
|
+
- - ">="
|
33
26
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
27
|
+
version: 0.8.0
|
28
|
+
- !ruby/object:Gem::Dependency
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
36
30
|
requirements:
|
37
|
-
- - ~>
|
31
|
+
- - "~>"
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: '1.0'
|
34
|
+
name: marc
|
40
35
|
prerelease: false
|
41
36
|
type: :runtime
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: hashie
|
44
37
|
version_requirements: !ruby/object:Gem::Requirement
|
45
38
|
requirements:
|
46
|
-
- - ~>
|
39
|
+
- - "~>"
|
47
40
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
41
|
+
version: '1.0'
|
42
|
+
- !ruby/object:Gem::Dependency
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '3.1'
|
48
|
+
name: hashie
|
54
49
|
prerelease: false
|
55
50
|
type: :runtime
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: slop
|
58
51
|
version_requirements: !ruby/object:Gem::Requirement
|
59
52
|
requirements:
|
60
|
-
- -
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 3.4.5
|
63
|
-
- - <
|
53
|
+
- - "~>"
|
64
54
|
- !ruby/object:Gem::Version
|
65
|
-
version: '
|
55
|
+
version: '3.1'
|
56
|
+
- !ruby/object:Gem::Dependency
|
66
57
|
requirement: !ruby/object:Gem::Requirement
|
67
58
|
requirements:
|
68
|
-
- -
|
59
|
+
- - ">="
|
69
60
|
- !ruby/object:Gem::Version
|
70
61
|
version: 3.4.5
|
71
|
-
- - <
|
62
|
+
- - "<"
|
72
63
|
- !ruby/object:Gem::Version
|
73
64
|
version: '4.0'
|
65
|
+
name: slop
|
74
66
|
prerelease: false
|
75
67
|
type: :runtime
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: yell
|
78
68
|
version_requirements: !ruby/object:Gem::Requirement
|
79
69
|
requirements:
|
80
|
-
- -
|
70
|
+
- - ">="
|
81
71
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
72
|
+
version: 3.4.5
|
73
|
+
- - "<"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.0'
|
76
|
+
- !ruby/object:Gem::Dependency
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
84
78
|
requirements:
|
85
|
-
- -
|
79
|
+
- - ">="
|
86
80
|
- !ruby/object:Gem::Version
|
87
81
|
version: '0'
|
82
|
+
name: yell
|
88
83
|
prerelease: false
|
89
84
|
type: :runtime
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: dot-properties
|
92
85
|
version_requirements: !ruby/object:Gem::Requirement
|
93
86
|
requirements:
|
94
|
-
- -
|
87
|
+
- - ">="
|
95
88
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
89
|
+
version: '0'
|
90
|
+
- !ruby/object:Gem::Dependency
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
|
-
- -
|
93
|
+
- - ">="
|
100
94
|
- !ruby/object:Gem::Version
|
101
95
|
version: 0.1.1
|
96
|
+
name: dot-properties
|
102
97
|
prerelease: false
|
103
98
|
type: :runtime
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: httpclient
|
106
99
|
version_requirements: !ruby/object:Gem::Requirement
|
107
100
|
requirements:
|
108
|
-
- -
|
101
|
+
- - ">="
|
109
102
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
103
|
+
version: 0.1.1
|
104
|
+
- !ruby/object:Gem::Dependency
|
111
105
|
requirement: !ruby/object:Gem::Requirement
|
112
106
|
requirements:
|
113
|
-
- - ~>
|
107
|
+
- - "~>"
|
114
108
|
- !ruby/object:Gem::Version
|
115
109
|
version: '2.5'
|
110
|
+
name: httpclient
|
116
111
|
prerelease: false
|
117
112
|
type: :runtime
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: marc-fastxmlwriter
|
120
113
|
version_requirements: !ruby/object:Gem::Requirement
|
121
114
|
requirements:
|
122
|
-
- - ~>
|
115
|
+
- - "~>"
|
123
116
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
117
|
+
version: '2.5'
|
118
|
+
- !ruby/object:Gem::Dependency
|
125
119
|
requirement: !ruby/object:Gem::Requirement
|
126
120
|
requirements:
|
127
|
-
- - ~>
|
121
|
+
- - "~>"
|
128
122
|
- !ruby/object:Gem::Version
|
129
123
|
version: '1.0'
|
124
|
+
name: marc-fastxmlwriter
|
130
125
|
prerelease: false
|
131
126
|
type: :runtime
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: traject-marc4j_reader
|
134
127
|
version_requirements: !ruby/object:Gem::Requirement
|
135
128
|
requirements:
|
136
|
-
- - ~>
|
129
|
+
- - "~>"
|
137
130
|
- !ruby/object:Gem::Version
|
138
131
|
version: '1.0'
|
132
|
+
- !ruby/object:Gem::Dependency
|
139
133
|
requirement: !ruby/object:Gem::Requirement
|
140
134
|
requirements:
|
141
|
-
- - ~>
|
135
|
+
- - "~>"
|
142
136
|
- !ruby/object:Gem::Version
|
143
137
|
version: '1.0'
|
138
|
+
name: traject-marc4j_reader
|
144
139
|
prerelease: false
|
145
140
|
type: :runtime
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: bundler
|
148
141
|
version_requirements: !ruby/object:Gem::Requirement
|
149
142
|
requirements:
|
150
|
-
- - ~>
|
143
|
+
- - "~>"
|
151
144
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
145
|
+
version: '1.0'
|
146
|
+
- !ruby/object:Gem::Dependency
|
153
147
|
requirement: !ruby/object:Gem::Requirement
|
154
148
|
requirements:
|
155
|
-
- - ~>
|
149
|
+
- - "~>"
|
156
150
|
- !ruby/object:Gem::Version
|
157
|
-
version: '1.
|
151
|
+
version: '1.7'
|
152
|
+
name: bundler
|
158
153
|
prerelease: false
|
159
154
|
type: :development
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: rake
|
162
155
|
version_requirements: !ruby/object:Gem::Requirement
|
163
156
|
requirements:
|
164
|
-
- -
|
157
|
+
- - "~>"
|
165
158
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
159
|
+
version: '1.7'
|
160
|
+
- !ruby/object:Gem::Dependency
|
167
161
|
requirement: !ruby/object:Gem::Requirement
|
168
162
|
requirements:
|
169
|
-
- -
|
163
|
+
- - ">="
|
170
164
|
- !ruby/object:Gem::Version
|
171
165
|
version: '0'
|
166
|
+
name: rake
|
172
167
|
prerelease: false
|
173
168
|
type: :development
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: minitest
|
176
169
|
version_requirements: !ruby/object:Gem::Requirement
|
177
170
|
requirements:
|
178
|
-
- -
|
171
|
+
- - ">="
|
179
172
|
- !ruby/object:Gem::Version
|
180
173
|
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
181
175
|
requirement: !ruby/object:Gem::Requirement
|
182
176
|
requirements:
|
183
|
-
- -
|
177
|
+
- - ">="
|
184
178
|
- !ruby/object:Gem::Version
|
185
179
|
version: '0'
|
180
|
+
name: minitest
|
186
181
|
prerelease: false
|
187
182
|
type: :development
|
183
|
+
version_requirements: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
188
|
description:
|
189
189
|
email:
|
190
190
|
- none@nowhere.org
|
@@ -198,9 +198,9 @@ extra_rdoc_files:
|
|
198
198
|
- doc/other_commands.md
|
199
199
|
- doc/settings.md
|
200
200
|
files:
|
201
|
-
- .gitignore
|
202
|
-
- .travis.yml
|
203
|
-
- .yardopts
|
201
|
+
- ".gitignore"
|
202
|
+
- ".travis.yml"
|
203
|
+
- ".yardopts"
|
204
204
|
- CHANGES.md
|
205
205
|
- Gemfile
|
206
206
|
- LICENSE.txt
|
@@ -228,6 +228,7 @@ files:
|
|
228
228
|
- lib/traject/macros/marc21_semantics.rb
|
229
229
|
- lib/traject/macros/marc_format_classifier.rb
|
230
230
|
- lib/traject/marc_extractor.rb
|
231
|
+
- lib/traject/marc_extractor_spec.rb
|
231
232
|
- lib/traject/marc_reader.rb
|
232
233
|
- lib/traject/mock_reader.rb
|
233
234
|
- lib/traject/ndj_reader.rb
|
@@ -314,17 +315,17 @@ require_paths:
|
|
314
315
|
- lib
|
315
316
|
required_ruby_version: !ruby/object:Gem::Requirement
|
316
317
|
requirements:
|
317
|
-
- -
|
318
|
+
- - ">="
|
318
319
|
- !ruby/object:Gem::Version
|
319
320
|
version: '0'
|
320
321
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
321
322
|
requirements:
|
322
|
-
- -
|
323
|
+
- - ">="
|
323
324
|
- !ruby/object:Gem::Version
|
324
325
|
version: '0'
|
325
326
|
requirements: []
|
326
327
|
rubyforge_project:
|
327
|
-
rubygems_version: 2.4.
|
328
|
+
rubygems_version: 2.4.8
|
328
329
|
signing_key:
|
329
330
|
specification_version: 4
|
330
331
|
summary: Index MARC to Solr; or generally process source records to hash-like structures
|