dor-services 5.4.0 → 5.4.1

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: d9a88f0d0bd7ef08c38ddb485d4207398f9c9d82
4
- data.tar.gz: 0908b1eaf6a8b92e1f3e66c8fb91ae0f38d5fcfe
3
+ metadata.gz: 35cb1a44d9afd35558a54871f7af46dc84ae6edc
4
+ data.tar.gz: b3164b45e0cf6715f59658de8b49eb85e1563d47
5
5
  SHA512:
6
- metadata.gz: 899c1855ff906efcac21cccf89af369e88faaac71ac6b53e21ee2dd224252331d903135cd61d30ecdaba32ca138baf28b4b2f17f213a858b7235eb7256851bf7
7
- data.tar.gz: d2a357095da5f7e320844f3f7f069e62d8f616a38d68229a4128d0ba1f1f093aaa8b91d1b9b3f9ba4da15a43f53646905b20997bac67309710090c44d12359eb
6
+ metadata.gz: f9be737b2a4309a040db2ec25d6fe63938212de57275914a78e29e8672fc24f2a1e3bff9432032e2a6b6ee1cd60cd66a24ecad5a029f19a75255a2fece62538f
7
+ data.tar.gz: 347762c2217189fe6db553f1f140eee4800405aad4dc73a45465ffa696bbf16468fb432081419c019fc636ad94de36359199df2ade3a855ff7564489bec67aba
@@ -19,6 +19,7 @@
19
19
  :solr:
20
20
  :url:
21
21
  :opts: {}
22
+ :solrizer: {} # deprecated
22
23
  :metadata:
23
24
  :catalog:
24
25
  :url:
data/lib/dor/config.rb CHANGED
@@ -55,10 +55,8 @@ module Dor
55
55
  end
56
56
 
57
57
  def make_solr_connection(add_opts = {})
58
- c = Dor::Config.solr || Dor::Config.solrizer
59
-
60
- opts = c.opts.merge(add_opts).merge(
61
- :url => c.url
58
+ opts = Dor::Config.solr.opts.merge(add_opts).merge(
59
+ :url => Dor::Config.solr.url
62
60
  )
63
61
  ::RSolr::Ext.connect(opts)
64
62
  end
@@ -107,9 +105,13 @@ module Dor
107
105
  stack = Kernel.caller.dup
108
106
  stack.shift while stack[0] =~ %r{(active_support/callbacks|dor/config|dor-services)\.rb}
109
107
  ActiveSupport::Deprecation.warn "Dor::Config -- solrizer configuration is deprecated. Please use solr instead.", stack
108
+
109
+ config.solrizer.each do |k, v|
110
+ config.solr[k] ||= v
111
+ end
110
112
  end
111
113
 
112
- if (config.solr || config.solrizer).url.present?
114
+ if config.solr.url.present?
113
115
  ActiveFedora::SolrService.register
114
116
  ActiveFedora::SolrService.instance.instance_variable_set :@conn, make_solr_connection
115
117
  end
@@ -129,7 +131,7 @@ module Dor
129
131
  end
130
132
 
131
133
  def solr_config
132
- { :url => (solr || solrizer).url }
134
+ { :url => solr.url }
133
135
  end
134
136
 
135
137
  def predicate_config
data/lib/dor/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dor
2
- VERSION = '5.4.0'
2
+ VERSION = '5.4.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Klein
@@ -14,7 +14,7 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2016-02-20 00:00:00.000000000 Z
17
+ date: 2016-02-22 00:00:00.000000000 Z
18
18
  dependencies:
19
19
  - !ruby/object:Gem::Dependency
20
20
  name: active-fedora