cipherstash-client 0.16.0.6.g8a43db3 → 0.16.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: 3ff828df91258790ee56e3f5eda715e88a723489922e51557dfb7ed740e09276
4
- data.tar.gz: 6847b732c60715ccab70e726c64a27359d62dc534ba4509ede3c7b2567dc436c
3
+ metadata.gz: e5f052213f7f6682543f808a240bd21b728243acbbfca635fb45c13419d5786d
4
+ data.tar.gz: 6f4e12dd648387176d6aeb298c887c4168170ea265e1e2ce8e59a5e6b0556af7
5
5
  SHA512:
6
- metadata.gz: a8330c51d36e7fc9c30727ab8dca29a5a0ae6b499be7a392b1c3371baebd51cbdc957d50ced2e040dc81415755a582fb21f03689281bda9ea3ff857d9e59977e
7
- data.tar.gz: 6860ea165dd353725e72077ab5a6c21854ba243848ce698fd784b0ef1031878fb63a18e6c3d15538c1ad5644576f924857ef5f7a57de0ea796ecdd81308fd9cc
6
+ metadata.gz: 1e9a11661c1497a88f2b1421a9de4a678c004773fc9ab6cc1f761fcd06f0d80698e74232e13933038da54cd17e86a68ab82f4fd3cedc8f913e6fc56a4ef16115
7
+ data.tar.gz: 9d7f1edc681d7ebc7ab1dd4fc8e1ea31e5fcc17d98f27d6ec0a604a0ae3d0ea8187d605ee15a5c44f4c3d0af14a1825491f886b2e8dd89d80cf6653d4d6e0503
@@ -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.20220928.0"
35
+ s.add_runtime_dependency "cipherstash-grpc", "= 0.20220801.1"
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)
131
+ profile_name = resolve_profile_name(profile_name) || "default"
132
132
 
133
133
  if is_initial_login
134
134
  create(profile_name, logger, workspace: workspace)
@@ -270,26 +270,17 @@ 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
- num_inserted = 0
274
- @logger.debug("Cipherstash::Client::RPC#put_stream") { "Start streaming upsert of documents..." }
275
-
276
- @metrics.measure_rpc_call("putStream") do
277
- stub.put_stream_bi_direction(requests, metadata: rpc_headers).each do |res|
278
- unless res.is_a?(Documents::StreamingPutReply)
279
- raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
280
- end
281
-
282
- raise_if_error(res)
283
-
284
- @logger.debug("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
273
+ res = @metrics.measure_rpc_call("putStream") do
274
+ stub.put_stream(requests, metadata: rpc_headers)
275
+ end
285
276
 
286
- num_inserted = res.numInserted
287
- end
277
+ unless res.is_a?(Documents::StreamingPutReply)
278
+ raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
288
279
  end
289
280
 
290
- @logger.debug("Cipherstash::Client::RPC#put_stream") { "Streaming upsert complete. Number of records inserted: #{res.numInserted}" }
281
+ raise_if_error(res)
291
282
 
292
- num_inserted
283
+ res.numInserted
293
284
  rescue ::GRPC::NotFound
294
285
  raise Error::RecordPutFailure, "Collection '#{collection.name}' not found"
295
286
  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.6.g8a43db3
4
+ version: 0.16.1
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-10-18 00:00:00.000000000 Z
12
+ date: 2022-09-28 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.20220928.0
62
+ version: 0.20220801.1
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.20220928.0
69
+ version: 0.20220801.1
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: enveloperb
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -321,9 +321,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
321
321
  version: 2.7.0
322
322
  required_rubygems_version: !ruby/object:Gem::Requirement
323
323
  requirements:
324
- - - ">"
324
+ - - ">="
325
325
  - !ruby/object:Gem::Version
326
- version: 1.3.1
326
+ version: '0'
327
327
  requirements: []
328
328
  rubygems_version: 3.1.6
329
329
  signing_key: