workflow-archiver 2.0.0 → 2.0.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: 2e07be8143cac430dfa7166ad246e81d64c85558
4
- data.tar.gz: 23612c1949726b163ad89534727679fbb6da3968
3
+ metadata.gz: 32c9418414ffb16cf6a2fbc5023624cad5ff8eb9
4
+ data.tar.gz: c6591215bdfd57fa70bf923d18fc3e1f6a9f44ee
5
5
  SHA512:
6
- metadata.gz: 779182bd0fd4cdabb6c4480aa7ceb5aa102bfe33c60a00317ea2b98ec4d8e62e2caef69c4cdc784ccd5cea3e91960fe2d077b076bccdb47c02c73af796755fd6
7
- data.tar.gz: 679c197f47b3c409a0f61f3350eae177bfc230e9ae9b9723b090a328f2a87be711c4b26cafbb7680ce280f2b42a45d1e4ed708db48be7f1e1f4aaed9641ac0c0
6
+ metadata.gz: b4a8f4f7a62ea751aadf48b0e6c32998cbb90aed4298ca577e69e1503fd471dca8f518be1d01fcb273099d4d2c873761d685c5c6e03e2a08fdcee6be97414575
7
+ data.tar.gz: 1347883e472fe0d14e124d33c326e64e31f5be58240b8fb1e91b0752cac00e635fbf34387650c28be6670cd1e4f3b999aeacb7854ca1ba28fbdac84943cdaf10
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -1,4 +1,4 @@
1
- require 'rest_client'
1
+ require 'faraday'
2
2
  require 'confstruct'
3
3
  require 'lyber_core'
4
4
  require 'sequel'
@@ -26,8 +26,8 @@ module Dor
26
26
  end
27
27
 
28
28
  def set_current_version
29
- self.version = RestClient.get WorkflowArchiver.config.dor_service_uri + "/dor/v1/objects/#{druid}/versions/current"
30
- rescue RestClient::InternalServerError => ise
29
+ self.version = Faraday.get WorkflowArchiver.config.dor_service_uri + "/dor/v1/objects/#{druid}/versions/current"
30
+ rescue Faraday::Error::ClientError => ise
31
31
  raise unless ise.inspect =~ /Unable to find.*in fedora/
32
32
  LyberCore::Log.warn ise.inspect.to_s
33
33
  LyberCore::Log.warn "Moving workflow rows with version set to '1'"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workflow-archiver
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Willy Mene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-16 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lyber-core
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rest-client
28
+ name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="