solrizer-fedora 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.gitmodules +1 -0
- data/History.textile +3 -0
- data/lib/solrizer/fedora/indexer.rb +44 -37
- data/lib/solrizer/fedora/repository.rb +1 -1
- data/lib/solrizer/fedora/version.rb +1 -1
- data/solrizer-fedora.gemspec +1 -1
- data/spec/lib/solrizer/indexer_spec.rb +51 -66
- data/spec/units/fedora_indexer_spec.rb +0 -44
- data/spec/units/fedora_solrizer_spec.rb +2 -2
- metadata +132 -137
- data/.rvmrc +0 -1
- data/Gemfile.lock +0 -142
data/.gitignore
CHANGED
data/.gitmodules
CHANGED
data/History.textile
CHANGED
@@ -37,55 +37,62 @@ class Indexer
|
|
37
37
|
# or { "development"=>{"url"=>"http://localhost" }}
|
38
38
|
# Can also take Blacklight.solr_config["url"] and Blacklight.solr_config[:url]
|
39
39
|
#
|
40
|
+
# If you want to specify a timeout for solr, provide these keys:
|
41
|
+
# :read_timeout=>120, :open_timeout => 120
|
42
|
+
#
|
40
43
|
|
41
44
|
def connect
|
42
45
|
if defined?(Blacklight)
|
43
46
|
solr_config = Blacklight.solr_config
|
44
|
-
|
45
|
-
|
46
|
-
config_path = File.join(Rails.root.to_s, "config", "solr.yml")
|
47
|
-
yaml = YAML.load(File.open(config_path))
|
48
|
-
puts RAILS_ENV + "*****"
|
49
|
-
solr_config = yaml[RAILS_ENV]
|
50
|
-
puts solr_config.inspect
|
51
|
-
else
|
52
|
-
config_path = File.join("config","solr.yml")
|
53
|
-
unless File.exist?(config_path)
|
54
|
-
config_path = File.join(File.dirname(__FILE__), "..", "..", "..", "config", "solr.yml")
|
55
|
-
end
|
56
|
-
logger.debug "SOLRIZER: reading config from " + config_path.inspect
|
57
|
-
yaml = YAML.load(File.open(config_path))
|
58
|
-
|
59
|
-
if ENV["environment"].nil?
|
60
|
-
environment = "development"
|
61
|
-
else
|
62
|
-
environment = ENV["environment"]
|
63
|
-
end #if
|
64
|
-
|
65
|
-
solr_config = yaml[environment]
|
66
|
-
logger.debug "SOLRIZER solr_config:" + solr_config.inspect
|
67
|
-
end #if defined?(Rails.root)
|
68
|
-
end #if defined?(Blacklight)
|
69
|
-
|
70
|
-
if index_full_text == true && solr_config.has_key?('fulltext') && solr_config['fulltext'].has_key?('url')
|
71
|
-
url = solr_config['fulltext']['url']
|
72
|
-
elsif solr_config.has_key?("default") && solr_config['default'].has_key?('url')
|
73
|
-
url = solr_config['default']['url']
|
74
|
-
elsif solr_config.has_key?('url')
|
75
|
-
url = solr_config['url']
|
76
|
-
elsif solr_config.has_key?(:url)
|
77
|
-
url = solr_config[:url]
|
47
|
+
elsif defined?(Rails.root.to_s)
|
48
|
+
solr_config = load_rails_config
|
78
49
|
else
|
79
|
-
|
50
|
+
solr_config = load_fallback_config
|
51
|
+
end
|
52
|
+
|
53
|
+
if index_full_text == true && solr_config.has_key?(:fulltext) && solr_config[:fulltext].has_key?('url')
|
54
|
+
solr_config[:url] = solr_config[:fulltext]['url']
|
55
|
+
elsif solr_config.has_key?(:default) && solr_config[:default].has_key?('url')
|
56
|
+
solr_config[:url] = solr_config[:default]['url']
|
57
|
+
elsif !solr_config.has_key?(:url)
|
58
|
+
raise "Unable to find a solr url in the config file"
|
80
59
|
end
|
81
60
|
|
82
|
-
@solr = RSolr.connect
|
61
|
+
@solr = RSolr.connect solr_config
|
83
62
|
|
84
63
|
rescue RuntimeError => e
|
85
64
|
logger.debug "Unable to establish SOLR Connection with #{solr_config.inspect}. Failed with #{e.message}"
|
86
65
|
raise URI::InvalidURIError
|
87
66
|
end
|
88
67
|
|
68
|
+
|
69
|
+
def load_rails_config
|
70
|
+
config_path = File.join(Rails.root.to_s, "config", "solr.yml")
|
71
|
+
yaml = YAML.load(File.open(config_path))
|
72
|
+
solr_config = yaml[Rails.env].symbolize_keys
|
73
|
+
logger.debug solr_config.inspect
|
74
|
+
solr_config
|
75
|
+
end
|
76
|
+
|
77
|
+
def load_fallback_config
|
78
|
+
config_path = File.join("config","solr.yml")
|
79
|
+
unless File.exist?(config_path)
|
80
|
+
config_path = File.join(File.dirname(__FILE__), "..", "..", "..", "config", "solr.yml")
|
81
|
+
end
|
82
|
+
logger.debug "SOLRIZER: reading config from " + config_path.inspect
|
83
|
+
yaml = YAML.load(File.open(config_path))
|
84
|
+
|
85
|
+
if ENV["environment"].nil?
|
86
|
+
environment = "development"
|
87
|
+
else
|
88
|
+
environment = ENV["environment"]
|
89
|
+
end #if
|
90
|
+
|
91
|
+
solr_config = yaml[environment].symbolize_keys
|
92
|
+
logger.debug "SOLRIZER solr_config:" + solr_config.inspect
|
93
|
+
solr_config
|
94
|
+
end
|
95
|
+
|
89
96
|
#
|
90
97
|
# This method generates the month and day facets from the date_t in solr_doc
|
91
98
|
#
|
@@ -152,7 +159,7 @@ class Indexer
|
|
152
159
|
# Load the object as an instance of each of its other models and get the corresponding solr fields
|
153
160
|
# Include :model_only=>true in the options in order to avoid adding the metadata from ActiveFedora::Base every time.
|
154
161
|
model_klazz_array.each do |klazz|
|
155
|
-
instance =
|
162
|
+
instance = obj.adapt_to(klazz)
|
156
163
|
solr_doc = instance.to_solr(solr_doc, :model_only=>true)
|
157
164
|
logger.debug " added solr fields from #{klazz.to_s}"
|
158
165
|
end
|
data/solrizer-fedora.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
|
21
21
|
s.rubyforge_project = "solrizer-fedora"
|
22
22
|
|
23
|
-
s.add_dependency('active-fedora', '
|
23
|
+
s.add_dependency('active-fedora', '>= 5.0.0.rc3')
|
24
24
|
s.add_development_dependency('jettywrapper', '>=1.1')
|
25
25
|
s.add_development_dependency('rdoc')
|
26
26
|
s.add_development_dependency('rake')
|
@@ -5,18 +5,6 @@ require "solrizer/fedora"
|
|
5
5
|
|
6
6
|
describe Solrizer::Fedora::Indexer do
|
7
7
|
|
8
|
-
before(:all) do
|
9
|
-
|
10
|
-
unless defined?(Rails) and defined?(RAILS_ENV)
|
11
|
-
Object.const_set("Rails", String)
|
12
|
-
Rails.stubs(:root).returns(".") #RAILS_ROOT = "."
|
13
|
-
RAILS_ENV = "test"
|
14
|
-
end
|
15
|
-
|
16
|
-
unless defined?(Blacklight)
|
17
|
-
Object.const_set("Blacklight", String )
|
18
|
-
end
|
19
|
-
end
|
20
8
|
|
21
9
|
before(:each) do
|
22
10
|
|
@@ -26,68 +14,65 @@ describe Solrizer::Fedora::Indexer do
|
|
26
14
|
Solrizer::Extractor.expects(:new).returns(@extractor)
|
27
15
|
|
28
16
|
end
|
29
|
-
|
30
|
-
after(:all) do
|
31
|
-
if Blacklight == String
|
32
|
-
Object.send(:remove_const,:Blacklight)
|
33
|
-
end
|
34
|
-
end
|
35
17
|
|
36
18
|
describe "#new" do
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
19
|
+
describe "creates a connection to solr" do
|
20
|
+
describe "from blacklight config" do
|
21
|
+
before do
|
22
|
+
Object.const_set("Blacklight", String )
|
23
|
+
Blacklight.stubs(:solr_config).returns({:url=>'http://fake:8888/solr/dev', :read_timeout=>121, :open_timeout => 122})
|
24
|
+
end
|
25
|
+
after do
|
26
|
+
Object.send(:remove_const,:Blacklight)
|
27
|
+
end
|
28
|
+
it "should set url and timeout properties" do
|
29
|
+
RSolr.expects(:connect).with({:url=>'http://fake:8888/solr/dev', :read_timeout=>121, :open_timeout => 122})
|
30
|
+
Solrizer::Fedora::Indexer.new
|
31
|
+
end
|
32
|
+
it "should raise and error if there is not a :url in the config hash" do
|
33
|
+
Blacklight.stubs(:solr_config).returns({:boosh => "http://foo.com:8080/solr"})
|
34
|
+
lambda { Solrizer::Fedora::Indexer.new }.should raise_error(URI::InvalidURIError)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "should return a fulltext URL if solr_config has a fulltext url defined" do
|
38
|
+
Blacklight.stubs(:solr_config).returns({:fulltext =>{ 'url' => "http://fulltext.com:8080/solr"}, :default =>{ 'url' => "http://default.com:8080/solr"}})
|
39
|
+
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => true)
|
40
|
+
@indexer.solr.uri.to_s.should == "http://fulltext.com:8080/solr/"
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should gracefully handle when index_full_text is true but there is no fulltext in the configuration" do
|
44
|
+
Blacklight.stubs(:solr_config).returns({:default =>{ 'url' => "http://foo.com:8080/solr"}})
|
45
|
+
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => true)
|
46
|
+
@indexer.solr.uri.to_s.should == "http://foo.com:8080/solr/"
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should return a fulltext URL if solr_config has a default url defined" do
|
50
|
+
Blacklight.stubs(:solr_config).returns({:default =>{ 'url' => "http://foo.com:8080/solr"}})
|
51
|
+
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => false)
|
52
|
+
@indexer.solr.uri.to_s.should == "http://foo.com:8080/solr/"
|
53
|
+
end
|
54
|
+
end
|
41
55
|
end
|
42
56
|
|
43
|
-
it "should return a URL from solr_config if the config has a 'url' " do
|
44
|
-
Blacklight.stubs(:solr_config).returns({'url' => "http://foo.com:8080/solr"})
|
45
|
-
@indexer = Solrizer::Fedora::Indexer.new
|
46
|
-
@indexer.solr.uri.to_s.should == "http://foo.com:8080/solr/"
|
47
|
-
end
|
48
|
-
|
49
|
-
it "should raise and error if there is not a :url or 'url' in the config hash" do
|
50
|
-
Blacklight.stubs(:solr_config).returns({'boosh' => "http://foo.com:8080/solr"})
|
51
|
-
lambda { Solrizer::Fedora::Indexer.new }.should raise_error(URI::InvalidURIError)
|
52
|
-
end
|
53
|
-
|
54
|
-
it "should return a fulltext URL if solr_config has a fulltext url defined" do
|
55
|
-
Blacklight.stubs(:solr_config).returns({'fulltext' =>{ 'url' => "http://fulltext.com:8080/solr"}, 'default' =>{ 'url' => "http://default.com:8080/solr"}})
|
56
|
-
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => true)
|
57
|
-
@indexer.solr.uri.to_s.should == "http://fulltext.com:8080/solr/"
|
58
|
-
end
|
59
|
-
|
60
|
-
it "should gracefully handle when index_full_text is true but there is no fulltext in the configuration" do
|
61
|
-
Blacklight.stubs(:solr_config).returns({'default' =>{ 'url' => "http://foo.com:8080/solr"}})
|
62
|
-
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => true)
|
63
|
-
@indexer.solr.uri.to_s.should == "http://foo.com:8080/solr/"
|
64
|
-
end
|
65
|
-
|
66
|
-
it "should return a fulltext URL if solr_config has a default url defined" do
|
67
|
-
Blacklight.stubs(:solr_config).returns({'default' =>{ 'url' => "http://foo.com:8080/solr"}})
|
68
|
-
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => false)
|
69
|
-
@indexer.solr.uri.to_s.should == "http://foo.com:8080/solr/"
|
70
|
-
end
|
71
57
|
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
58
|
+
describe "in a rails application" do
|
59
|
+
before do
|
60
|
+
Object.const_set("Rails", String)
|
61
|
+
Rails.stubs(:root).returns(".")
|
62
|
+
Rails.stubs(:env).returns("test")
|
63
|
+
end
|
64
|
+
after do
|
65
|
+
Object.send(:remove_const, :Rails)
|
66
|
+
end
|
67
|
+
it "should find the solr.yml even if Blacklight is not loaded" do
|
68
|
+
YAML.stubs(:load).returns({'test' => {'url' => "http://thereisnoblacklightrunning.edu:8080/solr"}})
|
69
|
+
@indexer = Solrizer::Fedora::Indexer.new
|
70
|
+
end
|
80
71
|
end
|
81
72
|
|
82
73
|
it "should find the solr.yml even if Blacklight is not loaded and RAILS is not loaded" do
|
83
|
-
|
84
|
-
|
85
|
-
Object.const_set("Rails_temp", Rails)
|
86
|
-
Object.send(:remove_const, :Rails)
|
87
|
-
YAML.stubs(:load).returns({'development' => {'url' => "http://noblacklight.norails.edu:8080/solr"}})
|
88
|
-
@indexer = Solrizer::Fedora::Indexer.new
|
89
|
-
Object.const_set("Blacklight", Blacklight_temp )
|
90
|
-
Object.const_set("Rails", Rails_temp)
|
74
|
+
YAML.stubs(:load).returns({'development' => {'url' => "http://noblacklight.norails.edu:8080/solr"}})
|
75
|
+
@indexer = Solrizer::Fedora::Indexer.new
|
91
76
|
end
|
92
77
|
end
|
93
78
|
end
|
@@ -30,50 +30,6 @@ describe Solrizer::Fedora::Indexer do
|
|
30
30
|
Solrizer::Extractor.stubs(:new).returns(@extractor)
|
31
31
|
end
|
32
32
|
|
33
|
-
describe "#new" do
|
34
|
-
it "should return a URL from solr_config if the config has a :url" do
|
35
|
-
Blacklight.stubs(:solr_config).returns({:url => "http://foo.com:8080/solr"})
|
36
|
-
@indexer = Solrizer::Fedora::Indexer.new
|
37
|
-
end
|
38
|
-
|
39
|
-
it "should return a URL from solr_config if the config has a 'url' " do
|
40
|
-
Blacklight.stubs(:solr_config).returns({'url' => "http://foo.com:8080/solr"})
|
41
|
-
@indexer = Solrizer::Fedora::Indexer.new
|
42
|
-
end
|
43
|
-
|
44
|
-
it "should raise an error if the solr_config does not have a :url" do
|
45
|
-
Blacklight.stubs(:solr_config).returns({'boosh' => "http://foo.com:8080/solr"})
|
46
|
-
lambda { Solrizer::Fedora::Indexer.new }.should raise_error(URI::InvalidURIError)
|
47
|
-
end
|
48
|
-
|
49
|
-
it "should return a fulltext URL if solr_config has a fulltext url defined" do
|
50
|
-
Blacklight.stubs(:solr_config).returns({'fulltext' =>{ 'url' => "http://foo.com:8080/solr"}})
|
51
|
-
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => true)
|
52
|
-
end
|
53
|
-
|
54
|
-
it "should return a fulltext URL if solr_config has a default url defined" do
|
55
|
-
Blacklight.stubs(:solr_config).returns({'default' =>{ 'url' => "http://foo.com:8080/solr"}})
|
56
|
-
@indexer = Solrizer::Fedora::Indexer.new(:index_full_text => false)
|
57
|
-
end
|
58
|
-
|
59
|
-
# it "should find the solr.yml even if Blacklight is not loaded and RAILS is not loaded" do
|
60
|
-
# pending "Need to unset Blacklight in order to make this work..."
|
61
|
-
# # Store RAILS_ROOT if it's set
|
62
|
-
# if defined? RAILS_ROOT
|
63
|
-
# temp_rails_root = RAILS_ROOT
|
64
|
-
# Object.send(:remove_const, :RAILS_ROOT)
|
65
|
-
# end
|
66
|
-
# sample_config = {'development' => {'solr'=> {'url' => "http://noblacklight.norails.edu:8080/solr"}}}
|
67
|
-
# YAML.stubs(:load).returns(sample_config)
|
68
|
-
# ActiveFedora.stubs(:init)
|
69
|
-
# @indexer = Solrizer::Fedora::Indexer.new
|
70
|
-
# # Re-set RAILS_ROOT if it was stored
|
71
|
-
# unless temp_rails_root.nil?
|
72
|
-
# RAILS_ROOT = temp_rails_root
|
73
|
-
# end
|
74
|
-
# end
|
75
|
-
end
|
76
|
-
|
77
33
|
describe "#generate_dates" do
|
78
34
|
before(:each) do
|
79
35
|
Solrizer::Fedora::Indexer.any_instance.stubs(:connect).returns("foo")
|
@@ -14,7 +14,7 @@ describe Solrizer::Fedora::Solrizer do
|
|
14
14
|
end
|
15
15
|
it "should work with Fedora::FedoraObject objects" do
|
16
16
|
mock_object = stub(:pid=>"my:pid", :label=>"my label")
|
17
|
-
ActiveFedora::Base.expects(:
|
17
|
+
ActiveFedora::Base.expects(:find).with( mock_object.pid ).returns(mock_object)
|
18
18
|
@solrizer.indexer.expects(:index).with( mock_object )
|
19
19
|
@solrizer.solrize( mock_object )
|
20
20
|
end
|
@@ -24,7 +24,7 @@ describe Solrizer::Fedora::Solrizer do
|
|
24
24
|
mock_object.stubs(:label)
|
25
25
|
mock_object.stubs(:datastreams).returns({'descMetadata'=>"foo","location"=>"bar"})
|
26
26
|
|
27
|
-
ActiveFedora::Base.expects(:
|
27
|
+
ActiveFedora::Base.expects(:find).with( "_PID_" ).returns(mock_object)
|
28
28
|
@solrizer.indexer.expects(:index).with(mock_object)
|
29
29
|
@solrizer.solrize("_PID_")
|
30
30
|
end
|
metadata
CHANGED
@@ -1,153 +1,157 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: solrizer-fedora
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 2
|
9
|
-
- 0
|
10
|
-
version: 2.2.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Matt Zumwalt
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-12-07 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: active-fedora
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 4
|
31
|
-
- 0
|
32
|
-
version: "4.0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 5.0.0.rc3
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: jettywrapper
|
37
23
|
prerelease: false
|
38
|
-
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 5.0.0.rc3
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jettywrapper
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.1'
|
48
38
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: rdoc
|
52
39
|
prerelease: false
|
53
|
-
|
54
|
-
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.1'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rdoc
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
62
54
|
type: :development
|
63
|
-
version_requirements: *id003
|
64
|
-
- !ruby/object:Gem::Dependency
|
65
|
-
name: rake
|
66
55
|
prerelease: false
|
67
|
-
|
68
|
-
none: false
|
69
|
-
requirements:
|
70
|
-
- -
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
76
70
|
type: :development
|
77
|
-
version_requirements: *id004
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: rspec
|
80
71
|
prerelease: false
|
81
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rspec
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
82
81
|
none: false
|
83
|
-
requirements:
|
82
|
+
requirements:
|
84
83
|
- - ~>
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
segments:
|
88
|
-
- 2
|
89
|
-
- 6
|
90
|
-
version: "2.6"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '2.6'
|
91
86
|
type: :development
|
92
|
-
version_requirements: *id005
|
93
|
-
- !ruby/object:Gem::Dependency
|
94
|
-
name: mocha
|
95
87
|
prerelease: false
|
96
|
-
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.6'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: mocha
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
105
102
|
type: :development
|
106
|
-
version_requirements: *id006
|
107
|
-
- !ruby/object:Gem::Dependency
|
108
|
-
name: yard
|
109
103
|
prerelease: false
|
110
|
-
|
111
|
-
none: false
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: yard
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
119
118
|
type: :development
|
120
|
-
version_requirements: *id007
|
121
|
-
- !ruby/object:Gem::Dependency
|
122
|
-
name: RedCloth
|
123
119
|
prerelease: false
|
124
|
-
|
125
|
-
none: false
|
126
|
-
requirements:
|
127
|
-
- -
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: RedCloth
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
133
134
|
type: :development
|
134
|
-
|
135
|
-
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: An extension to projecthydra/solrizer that provides utilities for loading
|
143
|
+
objects from Fedora Repositories and creating solr documents from them.
|
136
144
|
email: hydra-tech@googlegroups.com
|
137
145
|
executables: []
|
138
|
-
|
139
146
|
extensions: []
|
140
|
-
|
141
|
-
extra_rdoc_files:
|
147
|
+
extra_rdoc_files:
|
142
148
|
- LICENSE
|
143
149
|
- README.textile
|
144
|
-
files:
|
150
|
+
files:
|
145
151
|
- .document
|
146
152
|
- .gitignore
|
147
153
|
- .gitmodules
|
148
|
-
- .rvmrc
|
149
154
|
- Gemfile
|
150
|
-
- Gemfile.lock
|
151
155
|
- History.textile
|
152
156
|
- LICENSE
|
153
157
|
- README.textile
|
@@ -175,38 +179,29 @@ files:
|
|
175
179
|
- spec/units/fedora_solrizer_spec.rb
|
176
180
|
homepage: http://github.com/projecthydra/solrizer-fedora
|
177
181
|
licenses: []
|
178
|
-
|
179
182
|
post_install_message:
|
180
183
|
rdoc_options: []
|
181
|
-
|
182
|
-
require_paths:
|
184
|
+
require_paths:
|
183
185
|
- lib
|
184
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
185
187
|
none: false
|
186
|
-
requirements:
|
187
|
-
- -
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
|
190
|
-
|
191
|
-
- 0
|
192
|
-
version: "0"
|
193
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ! '>='
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '0'
|
192
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
193
|
none: false
|
195
|
-
requirements:
|
196
|
-
- -
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
|
199
|
-
segments:
|
200
|
-
- 0
|
201
|
-
version: "0"
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
202
198
|
requirements: []
|
203
|
-
|
204
199
|
rubyforge_project: solrizer-fedora
|
205
|
-
rubygems_version: 1.8.
|
200
|
+
rubygems_version: 1.8.24
|
206
201
|
signing_key:
|
207
202
|
specification_version: 3
|
208
203
|
summary: An extension to solrizer that deals with Fedora objects & Repositories
|
209
|
-
test_files:
|
204
|
+
test_files:
|
210
205
|
- spec/fixtures/rels_ext_cmodel.xml
|
211
206
|
- spec/integration/fedora_indexer_spec.rb
|
212
207
|
- spec/lib/solrizer/indexer_spec.rb
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm use ree-1.8.7@solrizer-fedora --create
|
data/Gemfile.lock
DELETED
@@ -1,142 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
solrizer-fedora (2.1.0)
|
5
|
-
active-fedora (~> 4.0)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: http://rubygems.org/
|
9
|
-
specs:
|
10
|
-
RedCloth (4.2.9)
|
11
|
-
active-fedora (4.1.0)
|
12
|
-
activeresource (>= 3.0.0)
|
13
|
-
activesupport (>= 3.0.0)
|
14
|
-
equivalent-xml
|
15
|
-
mediashelf-loggable
|
16
|
-
mime-types (>= 1.16)
|
17
|
-
multipart-post (= 1.1.2)
|
18
|
-
nokogiri
|
19
|
-
om (~> 1.6.0)
|
20
|
-
rdf
|
21
|
-
rdf-rdfxml (= 0.3.5)
|
22
|
-
rsolr
|
23
|
-
rubydora (~> 0.5.8)
|
24
|
-
solrizer (~> 1.2.0)
|
25
|
-
xml-simple (>= 1.0.12)
|
26
|
-
activemodel (3.0.11)
|
27
|
-
activesupport (= 3.0.11)
|
28
|
-
builder (~> 2.1.2)
|
29
|
-
i18n (~> 0.5.0)
|
30
|
-
activeresource (3.0.11)
|
31
|
-
activemodel (= 3.0.11)
|
32
|
-
activesupport (= 3.0.11)
|
33
|
-
activesupport (3.0.11)
|
34
|
-
addressable (2.2.8)
|
35
|
-
akami (1.0.0)
|
36
|
-
gyoku (>= 0.4.0)
|
37
|
-
builder (2.1.2)
|
38
|
-
childprocess (0.2.3)
|
39
|
-
ffi (~> 1.0.6)
|
40
|
-
daemons (1.1.8)
|
41
|
-
diff-lcs (1.1.3)
|
42
|
-
equivalent-xml (0.2.9)
|
43
|
-
nokogiri (>= 1.4.3)
|
44
|
-
fastercsv (1.5.4)
|
45
|
-
ffi (1.0.11)
|
46
|
-
gyoku (0.4.4)
|
47
|
-
builder (>= 2.1.2)
|
48
|
-
httpi (0.9.7)
|
49
|
-
rack
|
50
|
-
i18n (0.5.0)
|
51
|
-
jettywrapper (1.2.0)
|
52
|
-
activesupport (>= 3.0.0)
|
53
|
-
childprocess
|
54
|
-
i18n
|
55
|
-
logger
|
56
|
-
mediashelf-loggable
|
57
|
-
json (1.6.5)
|
58
|
-
logger (1.2.8)
|
59
|
-
mediashelf-loggable (0.4.9)
|
60
|
-
metaclass (0.0.1)
|
61
|
-
mime-types (1.18)
|
62
|
-
mocha (0.10.0)
|
63
|
-
metaclass (~> 0.0.1)
|
64
|
-
multi_json (1.3.5)
|
65
|
-
multipart-post (1.1.2)
|
66
|
-
nokogiri (1.5.2)
|
67
|
-
nori (1.1.0)
|
68
|
-
om (1.6.0)
|
69
|
-
mediashelf-loggable
|
70
|
-
nokogiri (>= 1.4.2)
|
71
|
-
rack (1.4.1)
|
72
|
-
rake (0.9.2.2)
|
73
|
-
rcov (1.0.0)
|
74
|
-
rdf (0.3.5.2)
|
75
|
-
addressable (>= 2.2.6)
|
76
|
-
rdf-rdfxml (0.3.5)
|
77
|
-
nokogiri (>= 1.4.4)
|
78
|
-
rdf (>= 0.3.4)
|
79
|
-
rdoc (3.12)
|
80
|
-
json (~> 1.4)
|
81
|
-
rest-client (1.6.7)
|
82
|
-
mime-types (>= 1.16)
|
83
|
-
rsolr (1.0.8)
|
84
|
-
builder (>= 2.1.2)
|
85
|
-
rspec (2.6.0)
|
86
|
-
rspec-core (~> 2.6.0)
|
87
|
-
rspec-expectations (~> 2.6.0)
|
88
|
-
rspec-mocks (~> 2.6.0)
|
89
|
-
rspec-core (2.6.4)
|
90
|
-
rspec-expectations (2.6.0)
|
91
|
-
diff-lcs (~> 1.1.2)
|
92
|
-
rspec-mocks (2.6.0)
|
93
|
-
rubydora (0.5.8)
|
94
|
-
activemodel
|
95
|
-
activesupport
|
96
|
-
fastercsv
|
97
|
-
mime-types
|
98
|
-
nokogiri
|
99
|
-
rest-client
|
100
|
-
savon
|
101
|
-
savon (0.9.9)
|
102
|
-
akami (~> 1.0)
|
103
|
-
builder (>= 2.1.2)
|
104
|
-
gyoku (>= 0.4.0)
|
105
|
-
httpi (~> 0.9)
|
106
|
-
nokogiri (>= 1.4.0)
|
107
|
-
nori (~> 1.1)
|
108
|
-
wasabi (~> 2.1)
|
109
|
-
simplecov (0.6.4)
|
110
|
-
multi_json (~> 1.0)
|
111
|
-
simplecov-html (~> 0.5.3)
|
112
|
-
simplecov-html (0.5.3)
|
113
|
-
simplecov-rcov (0.2.3)
|
114
|
-
simplecov (>= 0.4.1)
|
115
|
-
solrizer (1.2.0)
|
116
|
-
daemons
|
117
|
-
mediashelf-loggable (~> 0.4.7)
|
118
|
-
nokogiri
|
119
|
-
om (>= 1.5.0)
|
120
|
-
stomp
|
121
|
-
xml-simple
|
122
|
-
stomp (1.2.2)
|
123
|
-
wasabi (2.1.0)
|
124
|
-
nokogiri (>= 1.4.0)
|
125
|
-
xml-simple (1.1.1)
|
126
|
-
yard (0.7.4)
|
127
|
-
|
128
|
-
PLATFORMS
|
129
|
-
ruby
|
130
|
-
|
131
|
-
DEPENDENCIES
|
132
|
-
RedCloth
|
133
|
-
jettywrapper (>= 1.1)
|
134
|
-
mocha
|
135
|
-
rake
|
136
|
-
rcov
|
137
|
-
rdoc
|
138
|
-
rspec (~> 2.6)
|
139
|
-
simplecov
|
140
|
-
simplecov-rcov
|
141
|
-
solrizer-fedora!
|
142
|
-
yard
|