cipherstash-client 0.16.0.2.g012d0f7 → 0.16.0.2.gaefa564

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: 9045124934c54d0c4b4d23be422746dcb944b8de97825a091f9a51595f00033c
4
- data.tar.gz: 0e57f58e199fa063989d6cc7d6da0c0ddae85725322a8b8cc29e30ff5212a146
3
+ metadata.gz: 21e0b585ba5952e36e827c421b656524aecbbfb897dd1f575db64af1f51d0af2
4
+ data.tar.gz: 317e12b140e1ff5d3c7afbe082a5233594b2d5eea011aa047c9b39348a69a240
5
5
  SHA512:
6
- metadata.gz: 5b0ec3519fdde445dee4f63a0aca94974eb457a551adae3288cd73b74d5d07392dc4e36406aeeeaa456b1f19a71ecca6ac6c71b16facda607ab7d39845aa98d0
7
- data.tar.gz: 8044f26bad1e12571261ce1f7ba2addbaaa267f3c9ef3eb40237885b405b15271909da1d647fb4ce45782ae1198b2c0d7aca0d400eff3164ab7fd1c8123eefb4
6
+ metadata.gz: 23370cb5f76d7554fa0783454612a14913bec40ecff30c07a98fb18c4adbce92a82b587badca8bfb6aa671e2b32a098b78d0e124947dd6205835b74b985a2bd6
7
+ data.tar.gz: 5116f3e1dd7572fef9b09f2e0af7fe0f24072e3af747fc9f928b2864008efa02df0f0ec4c9131324697ee66a43e186b145f38e7a633657288fc831e7994d4e76
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.add_runtime_dependency "aws-sdk-core", "~> 3.0"
33
33
  s.add_runtime_dependency "aws-sdk-kms", "~> 1.0"
34
34
  s.add_runtime_dependency 'cbor', '~> 0.5.9.6'
35
- s.add_runtime_dependency "cipherstash-grpc", "= 0.20220801.1"
35
+ s.add_runtime_dependency "cipherstash-grpc", "= 0.20220928.0"
36
36
  s.add_runtime_dependency "enveloperb", "~> 0.0"
37
37
  s.add_runtime_dependency "launchy", "~> 2.5"
38
38
  s.add_runtime_dependency "ore-rs", "~> 0.0"
@@ -128,7 +128,7 @@ module CipherStash
128
128
 
129
129
  def self.login(workspace:, profile_name:, logger:)
130
130
  is_initial_login = !workspace.nil?
131
- profile_name = resolve_profile_name(profile_name) || "default"
131
+ profile_name = resolve_profile_name(profile_name)
132
132
 
133
133
  if is_initial_login
134
134
  create(profile_name, logger, workspace: workspace)
@@ -270,17 +270,20 @@ module CipherStash
270
270
  # isn't the most idiomatic code on earth...
271
271
  requests = [[begin_request], records].lazy.flat_map { |x| x }
272
272
 
273
- res = @metrics.measure_rpc_call("putStream") do
274
- stub.put_stream(requests, metadata: rpc_headers)
275
- end
273
+ num_inserted = 0
274
+ @metrics.measure_rpc_call("putStream") do
275
+ stub.put_stream_bi_direction(requests, metadata: rpc_headers).each do |res|
276
+ unless res.is_a?(Documents::StreamingPutReply)
277
+ raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
278
+ end
276
279
 
277
- unless res.is_a?(Documents::StreamingPutReply)
278
- raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
279
- end
280
+ raise_if_error(res)
280
281
 
281
- raise_if_error(res)
282
+ num_inserted = res.numInserted
283
+ end
284
+ end
282
285
 
283
- res.numInserted
286
+ num_inserted
284
287
  rescue ::GRPC::NotFound
285
288
  raise Error::RecordPutFailure, "Collection '#{collection.name}' not found"
286
289
  rescue ::GRPC::InvalidArgument => ex
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cipherstash-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0.2.g012d0f7
4
+ version: 0.16.0.2.gaefa564
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-09-28 00:00:00.000000000 Z
12
+ date: 2022-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-core
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.20220801.1
62
+ version: 0.20220928.0
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.20220801.1
69
+ version: 0.20220928.0
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: enveloperb
72
72
  requirement: !ruby/object:Gem::Requirement