solrizer-fedora 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.textile CHANGED
@@ -1,3 +1,7 @@
1
+ h2. 1.0.2
2
+
3
+ switched solrize_objects to only intercept errors if it's given an optional parameter of :suppress_errors=>true
4
+
1
5
  h2. 0.1.0
2
6
 
3
7
  Initial Release -- pretty much a direct replica of all of the fedora-related stuff in solrizer versions older than 0.3.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -90,7 +90,7 @@ class Indexer
90
90
  # @connection = Solr::Connection.new(url, :autocommit => :on )
91
91
 
92
92
  rescue
93
- puts "Unable to establish SOLR Connection with #{solr_config.inspect}"
93
+ logger.debug "Unable to establish SOLR Connection with #{solr_config.inspect}"
94
94
  raise URI::InvalidURIError
95
95
  end
96
96
 
@@ -34,7 +34,7 @@ class Solrizer
34
34
  #
35
35
  # This method solrizes the given Fedora object's full-text and facets into the search index
36
36
  #
37
- def solrize( obj )
37
+ def solrize( obj, opts={} )
38
38
  # retrieve the Fedora object based on the given unique id
39
39
 
40
40
  begin
@@ -71,11 +71,13 @@ class Solrizer
71
71
 
72
72
 
73
73
  rescue Exception => e
74
- p "SOLRIZER unable to index #{obj}. Failed with #{e.inspect}"
75
-
76
-
77
- end #begin
78
-
74
+ if opts[:suppress_errors]
75
+ logger.debug "SOLRIZER unable to index #{obj}. Failed with #{e.inspect}"
76
+ else
77
+ raise e
78
+ end
79
+ end #begin
80
+
79
81
  end
80
82
 
81
83
  #
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{solrizer-fedora}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Zumwalt"]
12
- s.date = %q{2011-03-03}
12
+ s.date = %q{2011-04-18}
13
13
  s.description = %q{An extension to projecthydra/solrizer that provides utilities for loading objects from Fedora Repositories and creating solr documents from them.}
14
14
  s.email = %q{matt.zumwalt@yourmediashelf.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solrizer-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-03 00:00:00 -06:00
18
+ date: 2011-04-18 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency