stbaldricks 6.15.0 → 6.15.1.alpha.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
  SHA256:
3
- metadata.gz: ed1c92a5b957b6288098c09a06adf7af89226d0d08d4c277f243195b24bf2470
4
- data.tar.gz: f87697c433f63ade3be4d6145978635a3c705c6435d9bfaf9b6c4b256d3e3d34
3
+ metadata.gz: b38370de6f6649a12d116f27c2a87fc6cf51b39c04fbd8cf8b763d70d4ee218d
4
+ data.tar.gz: 0f8f27afc286fd6d711826e084e56cc3267514ecd2115ab12a0ca256530e6a03
5
5
  SHA512:
6
- metadata.gz: 4dc4b7b48fef3aa866ca7fc36f946914c0d702b66298255a6c824a98701790f4c56d441f7e54eff4be1c17cc3b6c16319f35bdda3f946dc49c098cf7ef9bde65
7
- data.tar.gz: d77efc83cdfcac505ee79616524fa1242271f6f211c9b2bab8b723aa954c92f26e67e23d46bd57319d6830afb07f8bb28317ad0fa101a8744b340bafe69b9230
6
+ metadata.gz: 49ea878c30e35efbaa7d89048d2fb787ff7255edab1effa1c27f61cd73101db6742e2131c85be32f2307874e0554798787bbb21ade80f675bce1b42f473f528b
7
+ data.tar.gz: ddd030a993eaf5ba3c11525cf9ad62047e85c34d1ad4fe738d7802a9afbdaf7077fde65b5da96fa064984ac6c06fee63da299374dd341ed3bd9d004846eb01f7
@@ -8,8 +8,8 @@ module SBF
8
8
  order = order.to_json unless order.is_a? String
9
9
  with = normalize_with(with)
10
10
 
11
- response = SBF::Client::Api::Request.get_request(
12
- "/#{SBF::Client::Api::VERSION}/deduplicator_match/checkout",
11
+ response = SBF::Client::Api::Request.post_request(
12
+ "#{base_uri}/checkout",
13
13
  filter: filter, order: order, limit: limit, offset: offset, with: with
14
14
  )
15
15
  parsed_response_body = JSON.parse(response.body).symbolize!
@@ -27,6 +27,36 @@ module SBF
27
27
  collection
28
28
  end
29
29
  end
30
+
31
+ def list_checkouts
32
+ response = SBF::Client::Api::Request.post_request(
33
+ "#{base_uri}/list_checkouts"
34
+ )
35
+ parsed_response_body = JSON.parse(response.body).symbolize!
36
+
37
+ if ok?(response)
38
+ data = parsed_response_body
39
+ else
40
+ error = SBF::Client::ErrorEntity.new(parsed_response_body)
41
+ end
42
+
43
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
44
+ end
45
+
46
+ def release_checkout(checkout_id)
47
+ response = SBF::Client::Api::Request.post_request(
48
+ "#{base_uri}/release_checkout", checkout_id: checkout_id
49
+ )
50
+ parsed_response_body = JSON.parse(response.body).symbolize!
51
+
52
+ if ok?(response)
53
+ data = parsed_response_body
54
+ else
55
+ error = SBF::Client::ErrorEntity.new(parsed_response_body)
56
+ end
57
+
58
+ SBF::Client::Api::Response.new(http_code: response.code, data: data, error: error)
59
+ end
30
60
  end
31
61
  end
32
62
  end
@@ -9,13 +9,15 @@ module SBF
9
9
  module Client
10
10
  class DeduplicatorMatch < SBF::Client::TopLevelEntity
11
11
  actions DEFAULT_CRUD_ACTIONS
12
+ endpoint SBF::Client::DeduplicatorMatchEndpoint
12
13
  blacklist_action :get
13
- blacklist_action :find
14
14
  blacklist_action :save
15
15
  blacklist_action :create
16
16
  blacklist_action :delete
17
17
  blacklist_action :aggregate
18
18
  action :checkout
19
+ action :list_checkouts
20
+ action :release_checkout
19
21
 
20
22
  module Status
21
23
  READY = 'ready'
@@ -27,7 +29,7 @@ module SBF
27
29
 
28
30
  attr_accessor :id
29
31
  attr_accessor :checkout_id
30
- attr_accessor :status_id
32
+ attr_accessor :status
31
33
  attr_accessor :date_created
32
34
  attr_accessor :date_modified
33
35
  entity_collection_attr_accessor :persons, 'SBF::Client::FullPerson', nil, true
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '6.15.0'
3
+ VERSION = '6.15.1.alpha.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.15.0
4
+ version: 6.15.1.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-08 00:00:00.000000000 Z
11
+ date: 2019-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -237,9 +237,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
237
237
  version: '0'
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  requirements:
240
- - - ">="
240
+ - - ">"
241
241
  - !ruby/object:Gem::Version
242
- version: '0'
242
+ version: 1.3.1
243
243
  requirements: []
244
244
  rubygems_version: 3.0.1
245
245
  signing_key: