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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 689e7c197d0e7ac23ba07d8386cb39b88e25c46e
4
- data.tar.gz: 36f8477b6ec06e21aa564b58a245c08b96d454f0
3
+ metadata.gz: 3516fc2c9f811d28e2fd9c524c45f41e2b5a48bc
4
+ data.tar.gz: 35c8713807955c0ee892bd2d31e8ea9522c61223
5
5
  SHA512:
6
- metadata.gz: ee06bd995b37e831ed9c0c36194e90d759af6739530b375ebff0050a73a802def9d9644cba3e59ce73577e6398ced661432d1cfa603afcfbbf7b26c68f5a1c6c
7
- data.tar.gz: 2ed9fd5c1ec6c90234c7a55069bcedcbe1f52d11ec81aa81002ed35b5a045920378442d51fda8c02b0476db0ab50c40a1a12a275d1f1a93df8daec055450c376
6
+ metadata.gz: 927b3f9b7b2335e30707d47bb335c7508eef0be85348939537259e75af66f7177227dc49865a201c26a83f3121f662a30a52e8527ff4b202759d9bda6cddf9c8
7
+ data.tar.gz: f601c4489f3956b39ea16da7c95d3878918c325d1218358a3f1c5514c1d0a5535ae81e0b5f5452c6746e4685eddc693d5b5ca9e30b02c4bb539afdbbf1609ba8
@@ -1,13 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - jruby-19mode # JRuby in 1.9 mode
4
- - jruby-head
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
@@ -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://coveralls.io/repos/sul-dlss/solrmarc_wrapper/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/sul-dlss/solrmarc_wrapper?branch=master] {<img src="https://gemnasium.com/sul-dlss/solrmarc_wrapper.png" alt="Dependency Status" />}[https://gemnasium.com/sul-dlss/solrmarc_wrapper] {<img src="https://badge.fury.io/rb/solrmarc_wrapper.svg" alt="Gem Version" />}[http://badge.fury.io/rb/solrmarc_wrapper]
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  class SolrmarcWrapper
2
- VERSION = "0.0.6"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -27,6 +27,5 @@ Gem::Specification.new do |gem|
27
27
  gem.add_development_dependency 'rspec'
28
28
  gem.add_development_dependency 'simplecov'
29
29
  gem.add_development_dependency "jettywrapper"
30
- gem.add_development_dependency "coveralls"
31
30
 
32
31
  end
@@ -1,9 +1,5 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
1
  # for test coverage
5
2
  require 'simplecov'
6
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
7
3
  SimpleCov.start do
8
4
  add_filter "spec"
9
5
  add_filter "config"
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.6
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: 2014-06-07 00:00:00.000000000 Z
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
- - !ruby/object:Gem::Dependency
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
- - !ruby/object:Gem::Dependency
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
- - !ruby/object:Gem::Dependency
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
- - !ruby/object:Gem::Dependency
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
- - !ruby/object:Gem::Dependency
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
- - !ruby/object:Gem::Dependency
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
- prerelease: false
110
- type: :development
111
- description: Ruby wrapper for accessing SolrMarc objects and Solr objects, such as using org.solrmarc.marc.SolrReIndexer to get a SolrInputDocument from a marc record stored in the Solr index
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
- - .coveralls.yml
119
- - .gitignore
120
- - .ruby-version
121
- - .travis.yml
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 solr url (see config/settings.yml)
161
- rubyforge_project:
162
- rubygems_version: 2.2.0
163
- signing_key:
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:
@@ -1 +0,0 @@
1
- service_name: travis-ci