solrmarc_wrapper 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -0
- data/.travis.yml +13 -0
- data/.yardopts +3 -0
- data/Gemfile +1 -1
- data/README.rdoc +3 -1
- data/Rakefile +1 -8
- data/config/jetty.yml +5 -0
- data/config/settings.yml +3 -3
- data/lib/solrmarc_wrapper.rb +1 -1
- data/lib/solrmarc_wrapper/version.rb +1 -1
- data/lib/tasks/ci.rake +41 -5
- data/lib/tasks/doc.rake +14 -18
- data/lib/tasks/spec.rake +23 -23
- data/solrmarc_wrapper.gemspec +5 -4
- data/spec/scripts/curl_add_bare666_to_test.sh +1 -1
- data/spec/scripts/curl_empty_test_solr.sh +1 -1
- data/spec/solrmarc_wrapper_spec.rb +8 -8
- data/spec/spec_helper.rb +6 -10
- metadata +75 -48
- data/.gitmodules +0 -3
- data/.rvmrc +0 -1
- data/lib/tasks/jetty.rake +0 -38
- data/lib/tasks/solrmarc.rake +0 -17
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2eb7f5c6ced53853012990d6a8560250ea2dc287
|
4
|
+
data.tar.gz: cc95c020039b31b93329c8d356c3acad2be9f245
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e5427ac0c195ddb617167eea321dbeba8fd829a4b3d4ad4de11631fe6bf266e6bc788061d6da7dc8567fdfcf80ff1f31b03927814a26c3eaa4a1d4332761790
|
7
|
+
data.tar.gz: 3d1f28217b7729bb4eadf0063d03325da2cfd96765e7e651fa9e82899a3a2a05e496e0edb92099383ced0af46a63702d0b713b46510ee6317f9debf76b1d7977
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
jruby-1.7.9
|
data/.travis.yml
ADDED
data/.yardopts
ADDED
data/Gemfile
CHANGED
data/README.rdoc
CHANGED
@@ -1,5 +1,7 @@
|
|
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" alt="Coverage Status" />}[https://coveralls.io/r/sul-dlss/solrmarc_wrapper] {<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]
|
4
|
+
|
3
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.
|
4
6
|
|
5
7
|
== Installation
|
@@ -29,7 +31,7 @@ Example: this retrieves the full marc record stored in the Solr index, runs it
|
|
29
31
|
|
30
32
|
== Contributing
|
31
33
|
|
32
|
-
See also the wiki page for committers: https://github.com/
|
34
|
+
See also the wiki page for committers: https://github.com/sul-dlss/solrmarc_wrapper/wiki/For-Committers
|
33
35
|
|
34
36
|
1. Fork it
|
35
37
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/Rakefile
CHANGED
@@ -2,9 +2,6 @@
|
|
2
2
|
require 'bundler/setup'
|
3
3
|
require "bundler/gem_tasks"
|
4
4
|
|
5
|
-
require 'rake'
|
6
|
-
require 'bundler'
|
7
|
-
|
8
5
|
begin
|
9
6
|
Bundler.setup(:default, :development)
|
10
7
|
rescue Bundler::BundlerError => e
|
@@ -15,8 +12,4 @@ end
|
|
15
12
|
|
16
13
|
Dir.glob('lib/tasks/*.rake').each { |r| import r }
|
17
14
|
|
18
|
-
|
19
|
-
task :default => :ci
|
20
|
-
task :rspec => :rspec_plain
|
21
|
-
task :spec => :rspec_plain
|
22
|
-
end
|
15
|
+
task :default => :rspec_wrapped
|
data/config/jetty.yml
ADDED
data/config/settings.yml
CHANGED
@@ -9,14 +9,14 @@ prod:
|
|
9
9
|
dev:
|
10
10
|
solrmarc_dist_dir: your_solrmarc_dist_dir
|
11
11
|
solrmarc_conf_props_file: your_solrmarc_config.properties
|
12
|
-
solr_url:
|
12
|
+
solr_url: your_dev_solr_url
|
13
13
|
log_level: info
|
14
14
|
|
15
15
|
# settings for continuous integration
|
16
16
|
ci:
|
17
|
-
solrmarc_dist_dir: solrmarc/dist
|
17
|
+
solrmarc_dist_dir: solrmarc-sw/dist
|
18
18
|
solrmarc_conf_props_file: sw_config.properties
|
19
|
-
solr_url: http://
|
19
|
+
solr_url: http://localhost:8984/solr
|
20
20
|
log_level: info
|
21
21
|
|
22
22
|
# add:
|
data/lib/solrmarc_wrapper.rb
CHANGED
@@ -53,7 +53,7 @@ protected
|
|
53
53
|
# @param solr_url the url of the Solr server
|
54
54
|
# @param config_props_fname the name of the xx_config.properties file relative to the solr_marc_dir used in initialize method
|
55
55
|
def setup_solr_reindexer(solr_url, config_props_fname)
|
56
|
-
solr_core_loader = org.solrmarc.solr.SolrCoreLoader.loadRemoteSolrServer(solr_url, false,
|
56
|
+
solr_core_loader = org.solrmarc.solr.SolrCoreLoader.loadRemoteSolrServer(solr_url, false, false)
|
57
57
|
@solrmarc_reindexer = org.solrmarc.marc.SolrReIndexer.new(solr_core_loader)
|
58
58
|
@solrmarc_reindexer.init([config_props_fname])
|
59
59
|
end
|
data/lib/tasks/ci.rake
CHANGED
@@ -1,9 +1,45 @@
|
|
1
|
-
|
1
|
+
require 'jettywrapper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
desc "run continuous integration suite (tests, coverage, docs)"
|
4
|
+
task :ci do
|
5
|
+
Rake::Task["rspec_wrapped"].invoke
|
6
|
+
Rake::Task["doc"].invoke
|
7
|
+
end
|
8
|
+
|
9
|
+
desc 'clone solrmarc-sw from sul-dlss github'
|
10
|
+
task :clone_solrmarc do
|
11
|
+
`git clone https://github.com/sul-dlss/solrmarc-sw.git` unless File.directory? 'solrmarc-sw'
|
12
|
+
end
|
13
|
+
|
14
|
+
desc "set up Solr for testing in jetty"
|
15
|
+
task :setup_jetty => :clone_solrmarc do
|
16
|
+
Dir.chdir('solrmarc-sw') do
|
17
|
+
`git pull`
|
18
|
+
`ant ext_setup`
|
7
19
|
end
|
20
|
+
end
|
21
|
+
task :setup_test_solr => :setup_jetty
|
8
22
|
|
23
|
+
desc "start jetty for running tests"
|
24
|
+
task :run_jetty do
|
25
|
+
`rm -rf solrmarc-sw/test/jetty/solr/data/index`
|
26
|
+
jetty_dir = File.expand_path(File.dirname(__FILE__) + '../../../solrmarc-sw/test/jetty')
|
27
|
+
jetty_params = Jettywrapper.load_config.merge({:jetty_home => jetty_dir,
|
28
|
+
:solr_home => jetty_dir + '/solr',
|
29
|
+
:java_opts => "-Dsolr.data.dir=" + jetty_dir + "/solr/data",
|
30
|
+
:startup_wait => 45,
|
31
|
+
:jetty_port => 8984
|
32
|
+
})
|
33
|
+
error = Jettywrapper.start(jetty_params)
|
9
34
|
end
|
35
|
+
task :jetty_start => :run_jetty
|
36
|
+
task :start_jetty => :run_jetty
|
37
|
+
|
38
|
+
desc "stop jetty used for testing"
|
39
|
+
task :stop_jetty do
|
40
|
+
jetty_params = Jettywrapper.load_config.merge({:jetty_home => File.expand_path(File.dirname(__FILE__) + '../../../solrmarc-sw/test/jetty'),:startup_wait => 10})
|
41
|
+
error = Jettywrapper.stop(jetty_params)
|
42
|
+
end
|
43
|
+
|
44
|
+
task :jetty_stop => :stop_jetty
|
45
|
+
|
data/lib/tasks/doc.rake
CHANGED
@@ -1,23 +1,19 @@
|
|
1
1
|
require 'yard'
|
2
2
|
require 'yard/rake/yardoc_task'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
project_root = File.expand_path(File.dirname(__FILE__) + "/../..")
|
9
|
-
doc_dest_dir = File.join(project_root, 'doc')
|
10
|
-
|
11
|
-
YARD::Rake::YardocTask.new(:doc) do |yt|
|
12
|
-
yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
|
13
|
-
[ File.join(project_root, 'README.rdoc') ]
|
14
|
-
yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'Solrmarc_Wrapper Documentation']
|
15
|
-
end
|
16
|
-
rescue LoadError
|
17
|
-
desc "Generate YARD Documentation"
|
18
|
-
task :doc do
|
19
|
-
abort "Please install the YARD gem to generate rdoc."
|
20
|
-
end
|
21
|
-
end
|
4
|
+
# Use yard to build docs
|
5
|
+
begin
|
6
|
+
project_root = File.expand_path(File.dirname(__FILE__) + "/../..")
|
7
|
+
doc_dest_dir = File.join(project_root, 'doc')
|
22
8
|
|
9
|
+
YARD::Rake::YardocTask.new(:doc) do |yt|
|
10
|
+
yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
|
11
|
+
[ File.join(project_root, 'README.rdoc') ]
|
12
|
+
yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'SolrmarcWrapper Documentation']
|
13
|
+
end
|
14
|
+
rescue LoadError
|
15
|
+
desc "Generate YARD Documentation"
|
16
|
+
task :doc do
|
17
|
+
abort "Please install the YARD gem to generate rdoc."
|
18
|
+
end
|
23
19
|
end
|
data/lib/tasks/spec.rake
CHANGED
@@ -1,28 +1,28 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
raise "TEST FAILURES: #{error}" if error
|
22
|
-
end
|
23
|
-
|
24
|
-
RSpec::Core::RakeTask.new(:rspec_plain) do |spec|
|
25
|
-
spec.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
3
|
+
desc "Run all specs, with jetty instance running"
|
4
|
+
task :rspec_wrapped => ['setup_jetty'] do
|
5
|
+
jetty_dir = File.expand_path(File.dirname(__FILE__) + '../../../solrmarc-sw/test/jetty')
|
6
|
+
require 'jettywrapper'
|
7
|
+
jetty_params = Jettywrapper.load_config.merge({
|
8
|
+
:jetty_home => jetty_dir,
|
9
|
+
:solr_home => jetty_dir + '/solr',
|
10
|
+
:java_opts => "-Dsolr.data.dir=" + jetty_dir + "/solr/data",
|
11
|
+
:jetty_port => 8984,
|
12
|
+
:startup_wait => 45
|
13
|
+
})
|
14
|
+
error = Jettywrapper.wrap(jetty_params) do
|
15
|
+
sleep(3)
|
16
|
+
`sh ./spec/scripts/curl_empty_test_solr.sh`
|
17
|
+
sleep(3)
|
18
|
+
`sh ./spec/scripts/curl_add_bare666_to_test.sh`
|
19
|
+
sleep(3)
|
20
|
+
Rake::Task['rspec'].invoke
|
26
21
|
end
|
22
|
+
raise "TEST FAILURES: #{error}" if error
|
23
|
+
end
|
27
24
|
|
25
|
+
RSpec::Core::RakeTask.new(:rspec) do |spec|
|
26
|
+
spec.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
28
27
|
end
|
28
|
+
task :spec => :rspec
|
data/solrmarc_wrapper.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
|
18
|
-
# No Runtime dependencies
|
18
|
+
# No Runtime dependencies (except solrmarc dist directory)
|
19
19
|
|
20
20
|
# Bundler will install these gems too if you've checked out solrmarc-wrapper source from git and run 'bundle install'
|
21
21
|
# It will not add these as dependencies if you require solrmarc-wrapper for other projects
|
@@ -24,9 +24,10 @@ Gem::Specification.new do |gem|
|
|
24
24
|
gem.add_development_dependency "rdoc"
|
25
25
|
gem.add_development_dependency "yard"
|
26
26
|
# tests
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
gem.add_development_dependency 'rspec'
|
28
|
+
gem.add_development_dependency 'simplecov'
|
29
|
+
gem.add_development_dependency 'simplecov-rcov'
|
30
30
|
gem.add_development_dependency "jettywrapper"
|
31
|
+
gem.add_development_dependency "coveralls"
|
31
32
|
|
32
33
|
end
|
@@ -1 +1 @@
|
|
1
|
-
curl "http://localhost:8984/solr/
|
1
|
+
curl "http://localhost:8984/solr/update?commit=true" -H "Content-Type: text/xml" --data-binary @spec/fixtures/add_solrdoc_bare666.xml
|
@@ -1 +1 @@
|
|
1
|
-
curl "http://localhost:8984/solr/
|
1
|
+
curl "http://localhost:8984/solr/update?commit=true" -H "Content-Type: application/xml" --data-binary '<delete><query>*:*</query></delete>'
|
@@ -8,22 +8,22 @@ describe SolrmarcWrapper do
|
|
8
8
|
@solrmarc_wrapper = SolrmarcWrapper.new(@@settings.solrmarc_dist_dir, @@settings.solrmarc_conf_props_file, @@settings.solr_url)
|
9
9
|
end
|
10
10
|
|
11
|
-
it "
|
11
|
+
it "retrieves the SolrInputDoc generated from the marc record" do
|
12
12
|
sid = @solrmarc_wrapper.get_solr_input_doc_from_marcxml("666")
|
13
|
-
sid.
|
14
|
-
sid["id"].getValue.
|
15
|
-
sid["title_full_display"].getValue.
|
13
|
+
expect(sid).to be_an_instance_of(Java::OrgApacheSolrCommon::SolrInputDocument)
|
14
|
+
expect(sid["id"].getValue).to eq("666")
|
15
|
+
expect(sid["title_full_display"].getValue).not_to be_nil
|
16
16
|
end
|
17
17
|
|
18
|
-
it "
|
18
|
+
it "has a SolrInputDoc with the non-stored fields present" do
|
19
19
|
sid = @solrmarc_wrapper.get_solr_input_doc_from_marcxml("666")
|
20
|
-
sid["title_245a_search"].getValue.
|
20
|
+
expect(sid["title_245a_search"].getValue).not_to be_nil
|
21
21
|
end
|
22
22
|
|
23
|
-
it "
|
23
|
+
it "logs an error message when there is no document in the Solr index for the ckey" do
|
24
24
|
lager = double("logger")
|
25
25
|
@solrmarc_wrapper.logger = lager
|
26
|
-
lager.
|
26
|
+
expect(lager).to receive(:error).with("Can't find single Solr document with id aaa")
|
27
27
|
@solrmarc_wrapper.get_solr_input_doc_from_marcxml("aaa")
|
28
28
|
end
|
29
29
|
|
data/spec/spec_helper.rb
CHANGED
@@ -1,16 +1,12 @@
|
|
1
|
+
require 'coveralls'
|
2
|
+
Coveralls.wear!
|
3
|
+
|
1
4
|
# for test coverage
|
2
5
|
require 'simplecov'
|
3
|
-
|
4
|
-
class SimpleCov::Formatter::MergedFormatter
|
5
|
-
def format(result)
|
6
|
-
SimpleCov::Formatter::HTMLFormatter.new.format(result)
|
7
|
-
SimpleCov::Formatter::RcovFormatter.new.format(result)
|
8
|
-
end
|
9
|
-
end
|
10
|
-
SimpleCov.formatter = SimpleCov::Formatter::MergedFormatter
|
6
|
+
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
|
11
7
|
SimpleCov.start do
|
12
|
-
add_filter "
|
13
|
-
add_filter "
|
8
|
+
add_filter "spec"
|
9
|
+
add_filter "config"
|
14
10
|
end
|
15
11
|
|
16
12
|
require 'solrmarc_wrapper/settings'
|
metadata
CHANGED
@@ -1,91 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrmarc_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.4
|
4
|
+
version: 0.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Naomi Dushay
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
version_requirements:
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
17
16
|
requirements:
|
18
|
-
- -
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
21
|
+
requirements:
|
22
|
+
- - '>='
|
19
23
|
- !ruby/object:Gem::Version
|
20
24
|
version: '0'
|
21
|
-
none: false
|
22
|
-
requirement: *4898
|
23
25
|
prerelease: false
|
24
26
|
type: :development
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rdoc
|
27
|
-
version_requirements:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
28
35
|
requirements:
|
29
|
-
- -
|
36
|
+
- - '>='
|
30
37
|
- !ruby/object:Gem::Version
|
31
38
|
version: '0'
|
32
|
-
none: false
|
33
|
-
requirement: *4916
|
34
39
|
prerelease: false
|
35
40
|
type: :development
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: yard
|
38
|
-
version_requirements:
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
44
|
requirements:
|
40
|
-
- -
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
41
51
|
- !ruby/object:Gem::Version
|
42
52
|
version: '0'
|
43
|
-
none: false
|
44
|
-
requirement: *4932
|
45
53
|
prerelease: false
|
46
54
|
type: :development
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rspec
|
49
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
50
63
|
requirements:
|
51
|
-
- -
|
64
|
+
- - '>='
|
52
65
|
- !ruby/object:Gem::Version
|
53
66
|
version: '0'
|
54
|
-
none: false
|
55
|
-
requirement: *4948
|
56
67
|
prerelease: false
|
57
68
|
type: :development
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: simplecov
|
60
|
-
version_requirements:
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
requirement: !ruby/object:Gem::Requirement
|
61
77
|
requirements:
|
62
|
-
- -
|
78
|
+
- - '>='
|
63
79
|
- !ruby/object:Gem::Version
|
64
80
|
version: '0'
|
65
|
-
none: false
|
66
|
-
requirement: *4964
|
67
81
|
prerelease: false
|
68
82
|
type: :development
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: simplecov-rcov
|
71
|
-
version_requirements:
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - '>='
|
74
93
|
- !ruby/object:Gem::Version
|
75
94
|
version: '0'
|
76
|
-
none: false
|
77
|
-
requirement: *4980
|
78
95
|
prerelease: false
|
79
96
|
type: :development
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: jettywrapper
|
82
|
-
version_requirements:
|
99
|
+
version_requirements: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
prerelease: false
|
110
|
+
type: :development
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
version_requirements: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
83
119
|
requirements:
|
84
|
-
- -
|
120
|
+
- - '>='
|
85
121
|
- !ruby/object:Gem::Version
|
86
122
|
version: '0'
|
87
|
-
none: false
|
88
|
-
requirement: *4996
|
89
123
|
prerelease: false
|
90
124
|
type: :development
|
91
125
|
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
|
@@ -95,21 +129,22 @@ executables: []
|
|
95
129
|
extensions: []
|
96
130
|
extra_rdoc_files: []
|
97
131
|
files:
|
132
|
+
- .coveralls.yml
|
98
133
|
- .gitignore
|
99
|
-
- .
|
100
|
-
- .
|
134
|
+
- .ruby-version
|
135
|
+
- .travis.yml
|
136
|
+
- .yardopts
|
101
137
|
- Gemfile
|
102
138
|
- LICENSE
|
103
139
|
- README.rdoc
|
104
140
|
- Rakefile
|
141
|
+
- config/jetty.yml
|
105
142
|
- config/settings.yml
|
106
143
|
- lib/solrmarc_wrapper.rb
|
107
144
|
- lib/solrmarc_wrapper/settings.rb
|
108
145
|
- lib/solrmarc_wrapper/version.rb
|
109
146
|
- lib/tasks/ci.rake
|
110
147
|
- lib/tasks/doc.rake
|
111
|
-
- lib/tasks/jetty.rake
|
112
|
-
- lib/tasks/solrmarc.rake
|
113
148
|
- lib/tasks/spec.rake
|
114
149
|
- solrmarc_wrapper.gemspec
|
115
150
|
- spec/fixtures/add_solrdoc_bare666.xml
|
@@ -120,35 +155,27 @@ files:
|
|
120
155
|
- spec/spec_helper.rb
|
121
156
|
homepage:
|
122
157
|
licenses: []
|
158
|
+
metadata: {}
|
123
159
|
post_install_message:
|
124
160
|
rdoc_options: []
|
125
161
|
require_paths:
|
126
162
|
- lib
|
127
163
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
164
|
requirements:
|
129
|
-
- -
|
165
|
+
- - '>='
|
130
166
|
- !ruby/object:Gem::Version
|
131
|
-
segments:
|
132
|
-
- 0
|
133
|
-
hash: 2
|
134
167
|
version: '0'
|
135
|
-
none: false
|
136
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
169
|
requirements:
|
138
|
-
- -
|
170
|
+
- - '>='
|
139
171
|
- !ruby/object:Gem::Version
|
140
|
-
segments:
|
141
|
-
- 0
|
142
|
-
hash: 2
|
143
172
|
version: '0'
|
144
|
-
none: false
|
145
173
|
requirements:
|
146
174
|
- This gem must be run under JRuby, and also requires a solrmarc dist directory and solr url (see config/settings.yml)
|
147
175
|
rubyforge_project:
|
148
|
-
rubygems_version:
|
176
|
+
rubygems_version: 2.2.0
|
149
177
|
signing_key:
|
150
|
-
specification_version:
|
178
|
+
specification_version: 4
|
151
179
|
summary: Ruby wrapper for accessing SolrMarc objects and Solr objects
|
152
180
|
test_files: []
|
153
181
|
has_rdoc:
|
154
|
-
...
|
data/.gitmodules
DELETED
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use jruby-1.6.7@solrmarc_wrapper --create
|
data/lib/tasks/jetty.rake
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
require 'jettywrapper'
|
2
|
-
|
3
|
-
namespace :sm_wrap do
|
4
|
-
namespace :jetty do
|
5
|
-
|
6
|
-
desc "Modify test jetty solr to be multicore"
|
7
|
-
task :config => ['sm_wrap:solrmarc:setup_test_jetty'] do
|
8
|
-
|
9
|
-
# copy the solr.xml file for multi-core to test jetty solr
|
10
|
-
jetty_solr_dir = "solrmarc/test/jetty/solr"
|
11
|
-
cp('spec/solr/solr.xml', jetty_solr_dir, :verbose => true)
|
12
|
-
|
13
|
-
# set up solr dev and test conf directories
|
14
|
-
dev_conf_dir = "#{jetty_solr_dir}/dev/conf"
|
15
|
-
test_conf_dir = "#{jetty_solr_dir}/test/conf"
|
16
|
-
mkdir_p(dev_conf_dir) unless Dir.exists?(dev_conf_dir)
|
17
|
-
mkdir_p(test_conf_dir) unless Dir.exists?(test_conf_dir)
|
18
|
-
single_core_conf_dir = "#{jetty_solr_dir}/conf"
|
19
|
-
Dir["#{single_core_conf_dir}/*"].each { |f|
|
20
|
-
cp_r(f, dev_conf_dir, :verbose => true)
|
21
|
-
cp_r(f, test_conf_dir, :verbose => true)
|
22
|
-
}
|
23
|
-
|
24
|
-
require 'fileutils'
|
25
|
-
# remove single core conf directory
|
26
|
-
FileUtils.rm_rf("#{jetty_solr_dir}/conf/.", :verbose => true)
|
27
|
-
Dir.foreach(jetty_solr_dir + "/conf") { |f|
|
28
|
-
fn = File.join(jetty_solr_dir, f)
|
29
|
-
File.delete(fn) if f != '.' && f != '..'
|
30
|
-
}
|
31
|
-
|
32
|
-
end
|
33
|
-
|
34
|
-
desc "Copies the SOLR config files and starts up the test-jetty instance"
|
35
|
-
task :load => [:config, 'jetty:start']
|
36
|
-
|
37
|
-
end
|
38
|
-
end
|
data/lib/tasks/solrmarc.rake
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
namespace :sm_wrap do
|
2
|
-
namespace :solrmarc do
|
3
|
-
require 'ant'
|
4
|
-
|
5
|
-
desc "run ant dist_site target in solrmarc"
|
6
|
-
task :ant_dist_site do
|
7
|
-
ant '-f solrmarc/build.xml dist_site'
|
8
|
-
end
|
9
|
-
|
10
|
-
desc "run ant target to set up testing jetty per straight solrmarc"
|
11
|
-
task :setup_test_jetty do
|
12
|
-
ant '-f solrmarc/build.xml test_clean_site'
|
13
|
-
ant '-f solrmarc/build.xml site_setup_test_jetty'
|
14
|
-
end
|
15
|
-
|
16
|
-
end
|
17
|
-
end
|