hydra-derivatives 3.3.0 → 3.3.1
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/hydra/derivatives/processors/full_text.rb +3 -2
- data/spec/processors/full_text_spec.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ba5f325949132a7201726c3c2d43a22e38efb84
|
|
4
|
+
data.tar.gz: '009267a617253cd3ee3c7cd23a3556b3bbec1e5e'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz: '
|
|
6
|
+
metadata.gz: 86d072cf269aefc35f7a18925e96a8f3002964ffadbd917e2507e5f4a37b646d39e9f5bdbdd492476a36bbcc659b78c30580394be89d08672585de4bb0eca6ef
|
|
7
|
+
data.tar.gz: '089461874c714dd28e60129c65b50a61de16cc3b0ad95d30e3fd2f0ac721816bfb7bdfba1d14c16aff41a4d2547ae9fe3f7b3321036378d68c1763e1f6815aa7'
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.3.
|
|
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 ||=
|
|
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.
|
|
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
|
|
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.
|
|
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-
|
|
11
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|