dor-services-client 1.3.0 → 1.4.0

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
  SHA256:
3
- metadata.gz: 96954961decbf67eee0335b079cd5e3d4c0c95f093b795461d76f45844a7cf9a
4
- data.tar.gz: 8ace708308944215985e2d5907c703319be09632d8406f4e94dcb5b4fd1e842e
3
+ metadata.gz: 3ff3cb509e134b7c38ec2797f7b83185c8ac33958f026eca5498777c4f30ac59
4
+ data.tar.gz: 1fcbce05a46949d7f2c13a64fc2b879b729d99b3822259a816073fe597b660fd
5
5
  SHA512:
6
- metadata.gz: d5bf2132cba6afa6800dcd4e0d72c219042c75b95649158b88a747d9d51d2893b1d77e630c81478dc659c4a88d8bd86e1307e819965d9dcb9fd22937d6c3a92a
7
- data.tar.gz: 8b5e3bd73f3b1ce92a8b2d685eae7aa59c674a4c6ec372b73af94b073b5943ab2f908759ca41feea6f9cd903133988397b3f119815b5ef1745d73e20f01fbf95
6
+ metadata.gz: efad6b8d2ef0288ff2653b7438801de8c7a9626ef60ef1dae100ae5e49ccec1718e02cada9c39750abafaa770ea3b789817b0d2d36d8e0908645ee385e715e7f
7
+ data.tar.gz: 9d36e415756c6642d7d9effbf1c7b75055aea6ce1ae7795f65e8ea04dd58d9ff644799fddcb5ffd6f0827c6e9c3d25733b46db1b5ead0b3f6ced62e43e0eb903
data/.rubocop_todo.yml CHANGED
@@ -17,4 +17,4 @@ Style/Documentation:
17
17
  # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
18
18
  # URISchemes: http, https
19
19
  Metrics/LineLength:
20
- Max: 140
20
+ Max: 164
@@ -54,6 +54,19 @@ module Dor
54
54
  raise_exception_based_on_response!(resp)
55
55
  end
56
56
 
57
+ # Update the marc record for the give object
58
+ # @raise [NotFoundResponse] when the response is a 404 (object not found)
59
+ # @raise [UnexpectedResponse] when the response is not successful.
60
+ # @return [boolean] true on success
61
+ def update_marc_record
62
+ resp = connection.post do |req|
63
+ req.url "#{object_path}/update_marc_record"
64
+ end
65
+ return true if resp.success?
66
+
67
+ raise_exception_based_on_response!(resp)
68
+ end
69
+
57
70
  # Notify the external Goobi system for a new object that was registered in DOR
58
71
  # @raise [NotFoundResponse] when the response is a 404 (object not found)
59
72
  # @raise [UnexpectedResponse] when the response is not successful.
@@ -3,7 +3,7 @@
3
3
  module Dor
4
4
  module Services
5
5
  class Client
6
- VERSION = '1.3.0'
6
+ VERSION = '1.4.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dor-services-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-02-01 00:00:00.000000000 Z
12
+ date: 2019-02-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -207,7 +207,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
207
207
  version: '0'
208
208
  requirements: []
209
209
  rubyforge_project:
210
- rubygems_version: 2.7.6
210
+ rubygems_version: 2.7.8
211
211
  signing_key:
212
212
  specification_version: 4
213
213
  summary: A client for dor-services-app