harvestdor-indexer 1.0.3 → 1.0.4
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/README.rdoc +1 -0
- data/lib/harvestdor-indexer.rb +2 -1
- data/lib/harvestdor-indexer/version.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- data/spec/unit/harvestdor-indexer_spec.rb +7 -2
- 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: d9f1f173b34815b82678ad0919e7dea21b830297
|
4
|
+
data.tar.gz: e62f1eed6b4037528d2ad16c7df4a72a71d50d94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3ee85a3b7d93200af455520f470152239ca185121bce1855bfd009b01f83b6135c29d2eccdcf8d6b0215637d675ccd6c6614d5380fbc003102eef0631bf9949
|
7
|
+
data.tar.gz: 34eec119b372e6590e266bb1a0ee87420de780f7f0b908d5570df0f9c58ab68c4e2363e15a525533a4bd56cce48b73d6369f5fd41cb34e8cbb31718456e02b83
|
data/README.rdoc
CHANGED
@@ -118,6 +118,7 @@ I suggest you run your code on harvestdor-dev, as it is already set up to be abl
|
|
118
118
|
|
119
119
|
== Releases
|
120
120
|
|
121
|
+
* <b>1.0.4</b> Set skip_heartbeat to true in the initialization of the DorFetcher::Client for ease of testing
|
121
122
|
* <b>1.0.3</b> Implemented class level config so anything that inherits from Harvestdor::Indexer can share configuration settings
|
122
123
|
* <b>1.0.0</b> Replaced OAI harvesting mechanism with dor-fetcher
|
123
124
|
* <b>0.0.13</b> Upgrade to latest faraday HTTP client syntax; Use retries gem (https://github.com/ooyala/retries) to make retrying of index process more robust
|
data/lib/harvestdor-indexer.rb
CHANGED
@@ -37,7 +37,8 @@ module Harvestdor
|
|
37
37
|
config.configure options
|
38
38
|
yield(config) if block_given?
|
39
39
|
@client_config = YAML.load_file(client_config_path) if client_config_path && File.exists?(client_config_path)
|
40
|
-
|
40
|
+
# Adding skip_heartbeat param for easier testing
|
41
|
+
@dor_fetcher_client=DorFetcher::Client.new({:service_url => client_config["dor_fetcher_service_url"], :skip_heartbeat => true})
|
41
42
|
end
|
42
43
|
|
43
44
|
# to allow class level access to config variables for record_merger and solr_doc_builder
|
data/spec/spec_helper.rb
CHANGED
@@ -404,5 +404,10 @@ describe Harvestdor::Indexer do
|
|
404
404
|
indexer.solr_client
|
405
405
|
end
|
406
406
|
end
|
407
|
-
|
408
|
-
|
407
|
+
|
408
|
+
context "skip heartbeat" do
|
409
|
+
it "allows me to use a fake url for dor-fetcher-client" do
|
410
|
+
expect {Harvestdor::Indexer.new(@config_yml_path, @client_config_path)}.not_to raise_error
|
411
|
+
end
|
412
|
+
end
|
413
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harvestdor-indexer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naomi Dushay
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-11-
|
13
|
+
date: 2014-11-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rsolr
|