solrmarc_wrapper 0.0.6 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -6
- data/README.rdoc +1 -1
- data/lib/solrmarc_wrapper.rb +8 -8
- data/lib/solrmarc_wrapper/version.rb +1 -1
- data/solrmarc_wrapper.gemspec +0 -1
- data/spec/spec_helper.rb +0 -4
- metadata +47 -60
- data/.coveralls.yml +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3516fc2c9f811d28e2fd9c524c45f41e2b5a48bc
|
4
|
+
data.tar.gz: 35c8713807955c0ee892bd2d31e8ea9522c61223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 927b3f9b7b2335e30707d47bb335c7508eef0be85348939537259e75af66f7177227dc49865a201c26a83f3121f662a30a52e8527ff4b202759d9bda6cddf9c8
|
7
|
+
data.tar.gz: f601c4489f3956b39ea16da7c95d3878918c325d1218358a3f1c5514c1d0a5535ae81e0b5f5452c6746e4685eddc693d5b5ca9e30b02c4bb539afdbbf1609ba8
|
data/.travis.yml
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- jruby-19mode # JRuby in 1.9 mode
|
4
|
-
- jruby
|
5
|
-
script:
|
4
|
+
- jruby
|
5
|
+
script:
|
6
6
|
rake rspec_wrapped SETTINGS='ci'
|
7
|
+
before_script:
|
8
|
+
- rmdir solrmarc-sw >/dev/null 2>&1; true # possibly created by the cache directive below
|
9
|
+
- rake clone_solrmarc
|
7
10
|
cache:
|
8
11
|
directories:
|
9
12
|
- solrmarc-sw
|
10
|
-
notifications:
|
11
|
-
email:
|
12
|
-
- ndushay@stanford.edu
|
13
|
-
- laneymcg@stanford.edu
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= SolrmarcWrapper
|
2
2
|
|
3
|
-
{<img src="https://travis-ci.org/sul-dlss/solrmarc_wrapper.svg" alt="Build Status" />}[https://travis-ci.org/sul-dlss/solrmarc_wrapper] {<img src="https://
|
3
|
+
{<img src="https://travis-ci.org/sul-dlss/solrmarc_wrapper.svg" alt="Build Status" />}[https://travis-ci.org/sul-dlss/solrmarc_wrapper] {<img src="https://badge.fury.io/rb/solrmarc_wrapper.svg" alt="Gem Version" />}[http://badge.fury.io/rb/solrmarc_wrapper]
|
4
4
|
|
5
5
|
Ruby wrapper for accessing SolrMarc and Solr objects, such as using org.solrmarc.marc.SolrReIndexer to get a SolrInputDocument from a marc record stored in the Solr index.
|
6
6
|
|
data/lib/solrmarc_wrapper.rb
CHANGED
@@ -3,15 +3,15 @@ include Java
|
|
3
3
|
require "solrmarc_wrapper/version"
|
4
4
|
require 'logger'
|
5
5
|
|
6
|
-
# a way to use SolrMarc objects,
|
6
|
+
# a way to use SolrMarc objects,
|
7
7
|
# such as using SolrReIndexer to get a SolrInputDocument from a marc record stored in the Solr index.
|
8
8
|
class SolrmarcWrapper
|
9
|
-
|
9
|
+
|
10
10
|
attr_accessor :logger
|
11
11
|
|
12
|
-
# @param solrmarc_dist_dir distribution directory of SolrMarc build
|
12
|
+
# @param solrmarc_dist_dir distribution directory of SolrMarc build
|
13
13
|
# @param solrmarc_conf_props_fname the name of the xx_config.properties file for SolrMarc, relative to solrmarc_dist_dir
|
14
|
-
# @param solr_url the base url of a running Solr server
|
14
|
+
# @param solr_url the base url of a running Solr server
|
15
15
|
# @param log_level level of Logger messages to output; defaults to Logger::INFO
|
16
16
|
# @param log_file file to receive Logger output; defaults to STDERR
|
17
17
|
# solr_url base url of the solr instance
|
@@ -26,7 +26,7 @@ class SolrmarcWrapper
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# retrieves the full marc rec
|
29
|
-
# ord stored in the Solr index, runs it through SolrMarc indexing to get a SolrInputDocument
|
29
|
+
# ord stored in the Solr index, runs it through SolrMarc indexing to get a SolrInputDocument
|
30
30
|
# note that it identifies Solr documents by the "id" field, and expects the marc to be stored in a Solr field "marcxml"
|
31
31
|
# if there is no single document matching the id, an error is logged and nil is returned
|
32
32
|
# @param doc_id the value of the "id" Solr field for the record to be retrieved
|
@@ -46,7 +46,7 @@ protected
|
|
46
46
|
|
47
47
|
# require all the necessary jars to use SolrMarc classes
|
48
48
|
def load_solrmarc(solr_marc_dir)
|
49
|
-
Dir["#{solr_marc_dir}/**/*.jar"].each {|jar_file| require jar_file }
|
49
|
+
Dir["#{solr_marc_dir}/**/*.jar"].each {|jar_file| require File.expand_path(jar_file) }
|
50
50
|
end
|
51
51
|
|
52
52
|
# initialize the @solrmarc_reindexer object
|
@@ -57,5 +57,5 @@ protected
|
|
57
57
|
@solrmarc_reindexer = org.solrmarc.marc.SolrReIndexer.new(solr_core_loader)
|
58
58
|
@solrmarc_reindexer.init([config_props_fname])
|
59
59
|
end
|
60
|
-
|
61
|
-
end # module SolrmarcWrapper
|
60
|
+
|
61
|
+
end # module SolrmarcWrapper
|
data/solrmarc_wrapper.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,125 +1,112 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrmarc_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
|
-
version_requirements: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '>='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
15
|
requirement: !ruby/object:Gem::Requirement
|
21
16
|
requirements:
|
22
|
-
- -
|
17
|
+
- - ">="
|
23
18
|
- !ruby/object:Gem::Version
|
24
19
|
version: '0'
|
25
|
-
prerelease: false
|
26
20
|
type: :development
|
27
|
-
|
28
|
-
name: rdoc
|
21
|
+
prerelease: false
|
29
22
|
version_requirements: !ruby/object:Gem::Requirement
|
30
23
|
requirements:
|
31
|
-
- -
|
24
|
+
- - ">="
|
32
25
|
- !ruby/object:Gem::Version
|
33
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rdoc
|
34
29
|
requirement: !ruby/object:Gem::Requirement
|
35
30
|
requirements:
|
36
|
-
- -
|
31
|
+
- - ">="
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: '0'
|
39
|
-
prerelease: false
|
40
34
|
type: :development
|
41
|
-
|
42
|
-
name: yard
|
35
|
+
prerelease: false
|
43
36
|
version_requirements: !ruby/object:Gem::Requirement
|
44
37
|
requirements:
|
45
|
-
- -
|
38
|
+
- - ">="
|
46
39
|
- !ruby/object:Gem::Version
|
47
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: yard
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
44
|
requirements:
|
50
|
-
- -
|
45
|
+
- - ">="
|
51
46
|
- !ruby/object:Gem::Version
|
52
47
|
version: '0'
|
53
|
-
prerelease: false
|
54
48
|
type: :development
|
55
|
-
|
56
|
-
name: rspec
|
49
|
+
prerelease: false
|
57
50
|
version_requirements: !ruby/object:Gem::Requirement
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - ">="
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
62
57
|
requirement: !ruby/object:Gem::Requirement
|
63
58
|
requirements:
|
64
|
-
- -
|
59
|
+
- - ">="
|
65
60
|
- !ruby/object:Gem::Version
|
66
61
|
version: '0'
|
67
|
-
prerelease: false
|
68
62
|
type: :development
|
69
|
-
|
70
|
-
name: simplecov
|
63
|
+
prerelease: false
|
71
64
|
version_requirements: !ruby/object:Gem::Requirement
|
72
65
|
requirements:
|
73
|
-
- -
|
66
|
+
- - ">="
|
74
67
|
- !ruby/object:Gem::Version
|
75
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: simplecov
|
76
71
|
requirement: !ruby/object:Gem::Requirement
|
77
72
|
requirements:
|
78
|
-
- -
|
73
|
+
- - ">="
|
79
74
|
- !ruby/object:Gem::Version
|
80
75
|
version: '0'
|
81
|
-
prerelease: false
|
82
76
|
type: :development
|
83
|
-
|
84
|
-
name: jettywrapper
|
77
|
+
prerelease: false
|
85
78
|
version_requirements: !ruby/object:Gem::Requirement
|
86
79
|
requirements:
|
87
|
-
- -
|
80
|
+
- - ">="
|
88
81
|
- !ruby/object:Gem::Version
|
89
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jettywrapper
|
90
85
|
requirement: !ruby/object:Gem::Requirement
|
91
86
|
requirements:
|
92
|
-
- -
|
87
|
+
- - ">="
|
93
88
|
- !ruby/object:Gem::Version
|
94
89
|
version: '0'
|
95
|
-
prerelease: false
|
96
90
|
type: :development
|
97
|
-
|
98
|
-
name: coveralls
|
91
|
+
prerelease: false
|
99
92
|
version_requirements: !ruby/object:Gem::Requirement
|
100
93
|
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
requirement: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - '>='
|
94
|
+
- - ">="
|
107
95
|
- !ruby/object:Gem::Version
|
108
96
|
version: '0'
|
109
|
-
|
110
|
-
|
111
|
-
|
97
|
+
description: Ruby wrapper for accessing SolrMarc objects and Solr objects, such as
|
98
|
+
using org.solrmarc.marc.SolrReIndexer to get a SolrInputDocument from a marc record
|
99
|
+
stored in the Solr index
|
112
100
|
email:
|
113
101
|
- ndushay@stanford.edu
|
114
102
|
executables: []
|
115
103
|
extensions: []
|
116
104
|
extra_rdoc_files: []
|
117
105
|
files:
|
118
|
-
- .
|
119
|
-
- .
|
120
|
-
- .
|
121
|
-
- .
|
122
|
-
- .yardopts
|
106
|
+
- ".gitignore"
|
107
|
+
- ".ruby-version"
|
108
|
+
- ".travis.yml"
|
109
|
+
- ".yardopts"
|
123
110
|
- Gemfile
|
124
111
|
- LICENSE
|
125
112
|
- README.rdoc
|
@@ -139,29 +126,29 @@ files:
|
|
139
126
|
- spec/solr/solr.xml
|
140
127
|
- spec/solrmarc_wrapper_spec.rb
|
141
128
|
- spec/spec_helper.rb
|
142
|
-
homepage:
|
129
|
+
homepage:
|
143
130
|
licenses: []
|
144
131
|
metadata: {}
|
145
|
-
post_install_message:
|
132
|
+
post_install_message:
|
146
133
|
rdoc_options: []
|
147
134
|
require_paths:
|
148
135
|
- lib
|
149
136
|
required_ruby_version: !ruby/object:Gem::Requirement
|
150
137
|
requirements:
|
151
|
-
- -
|
138
|
+
- - ">="
|
152
139
|
- !ruby/object:Gem::Version
|
153
140
|
version: '0'
|
154
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
142
|
requirements:
|
156
|
-
- -
|
143
|
+
- - ">="
|
157
144
|
- !ruby/object:Gem::Version
|
158
145
|
version: '0'
|
159
146
|
requirements:
|
160
|
-
- This gem must be run under JRuby, and also requires a solrmarc dist directory and
|
161
|
-
|
162
|
-
|
163
|
-
|
147
|
+
- This gem must be run under JRuby, and also requires a solrmarc dist directory and
|
148
|
+
solr url (see config/settings.yml)
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 2.6.11
|
151
|
+
signing_key:
|
164
152
|
specification_version: 4
|
165
153
|
summary: Ruby wrapper for accessing SolrMarc objects and Solr objects
|
166
154
|
test_files: []
|
167
|
-
has_rdoc:
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|