hydra-derivatives 3.3.0 → 3.3.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: b300c88a53fe0b8e79f9ace11145653e878f8614
4
- data.tar.gz: dfe48e84c0bd64e74d77d3a4c9cb103f2aaee0dc
3
+ metadata.gz: 3ba5f325949132a7201726c3c2d43a22e38efb84
4
+ data.tar.gz: '009267a617253cd3ee3c7cd23a3556b3bbec1e5e'
5
5
  SHA512:
6
- metadata.gz: 2f1f0183aae8af14487552ebf3c5f9453db4fa64c7f51fa9f1ac6bc4453cf58d3b9bf0a25c5296450c4006eb7b45b4fb6d6093f1cf46a7548d0a189854cfdb19
7
- data.tar.gz: '058e7057eae73e19451e8d9926576305f85416bd1c3db0bdba279acc97bd629fa27d9ac6200dd56f84505a780d1371937e74f8eab970983a3276af1d3092fd27'
6
+ metadata.gz: 86d072cf269aefc35f7a18925e96a8f3002964ffadbd917e2507e5f4a37b646d39e9f5bdbdd492476a36bbcc659b78c30580394be89d08672585de4bb0eca6ef
7
+ data.tar.gz: '089461874c714dd28e60129c65b50a61de16cc3b0ad95d30e3fd2f0ac721816bfb7bdfba1d14c16aff41a4d2547ae9fe3f7b3321036378d68c1763e1f6815aa7'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.1
@@ -50,11 +50,12 @@ module Hydra::Derivatives::Processors
50
50
 
51
51
  # @returns [URI] path to the extract service
52
52
  def uri
53
- @uri ||= URI("#{connection_url}/update/extract?extractOnly=true&wt=json&extractFormat=text")
53
+ @uri ||= connection_url + 'update/extract?extractOnly=true&wt=json&extractFormat=text'
54
54
  end
55
55
 
56
+ # @returns [URI] path to the solr collection
56
57
  def connection_url
57
- ActiveFedora.solr_config[:url]
58
+ ActiveFedora::SolrService.instance.conn.uri
58
59
  end
59
60
  end
60
61
  end
@@ -46,10 +46,15 @@ describe Hydra::Derivatives::Processors::FullText do
46
46
 
47
47
  describe "uri" do
48
48
  subject { processor.send(:uri) }
49
+ let(:root) { URI('http://example.com/solr/myCollection/') }
50
+
51
+ before do
52
+ allow(ActiveFedora::SolrService.instance.conn).to receive(:uri).and_return(root)
53
+ end
49
54
 
50
55
  it "points at the extraction service" do
51
56
  expect(subject).to be_kind_of URI
52
- expect(subject.to_s).to end_with '/update/extract?extractOnly=true&wt=json&extractFormat=text'
57
+ expect(subject.to_s).to eq 'http://example.com/solr/myCollection/update/extract?extractOnly=true&wt=json&extractFormat=text'
53
58
  end
54
59
  end
55
60
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-derivatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2017-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler