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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8eb186d19cd3f8c6051dce74feaffa9d8bafcbe8
4
- data.tar.gz: f8be614289308a8752c615b66a286139f45a684b
3
+ metadata.gz: d9f1f173b34815b82678ad0919e7dea21b830297
4
+ data.tar.gz: e62f1eed6b4037528d2ad16c7df4a72a71d50d94
5
5
  SHA512:
6
- metadata.gz: 9949e15b1ebe035ee7317cbc9832e2b8fb3b8feaff155f5143f366a7d47829f8402f991fd78d5167d2a94c0f38994ff366eaff1f2b1d9bfa652b9ee2f8801d73
7
- data.tar.gz: a382a7f2698a1a3001a4cb82a17fc5683d5a7d5305ba212717b1b92c758f4edc0c6564000f4ade2872ee8f0acc1dc7b552f9ccdf02f6bdc3749c2bcdc5deae79
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
@@ -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
- @dor_fetcher_client=DorFetcher::Client.new({:service_url => client_config["dor_fetcher_service_url"]})
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
@@ -1,6 +1,6 @@
1
1
  module Harvestdor
2
2
  class Indexer
3
3
  # this is the Ruby Gem version
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
6
6
  end
data/spec/spec_helper.rb CHANGED
@@ -11,4 +11,5 @@ require 'vcr'
11
11
  VCR.configure do |c|
12
12
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
13
13
  c.hook_into :webmock
14
+ c.allow_http_connections_when_no_cassette = true
14
15
  end
@@ -404,5 +404,10 @@ describe Harvestdor::Indexer do
404
404
  indexer.solr_client
405
405
  end
406
406
  end
407
-
408
- end
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.3
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-12 00:00:00.000000000 Z
13
+ date: 2014-11-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsolr