cipherstash-client 0.16.1 → 0.16.1.7.gf3c55c5

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: e5f052213f7f6682543f808a240bd21b728243acbbfca635fb45c13419d5786d
4
- data.tar.gz: 6f4e12dd648387176d6aeb298c887c4168170ea265e1e2ce8e59a5e6b0556af7
3
+ metadata.gz: d291e88e007e7701a878128663dc6756e9e9c2f63c10a70e4e2a081862b76cbf
4
+ data.tar.gz: 2df45307fe16948b91b6fce722b88503b69a5feb8f011cdc6fd1ba44ebb06495
5
5
  SHA512:
6
- metadata.gz: 1e9a11661c1497a88f2b1421a9de4a678c004773fc9ab6cc1f761fcd06f0d80698e74232e13933038da54cd17e86a68ab82f4fd3cedc8f913e6fc56a4ef16115
7
- data.tar.gz: 9d7f1edc681d7ebc7ab1dd4fc8e1ea31e5fcc17d98f27d6ec0a604a0ae3d0ea8187d605ee15a5c44f4c3d0af14a1825491f886b2e8dd89d80cf6653d4d6e0503
6
+ metadata.gz: e015d10aa6a51d6dd8ac4d77d1e7eccc63d63c087d735df6521eceb56bb0edcaa57d17820ffede5ff43428b12799a5ff25ad1ede9c306030ff60160e32933971
7
+ data.tar.gz: 1e2040606a580db10554bdb041170efb8b9dbeb5f8962993e17d62f7d2fc8f9ccbe40e3eb0976ced733f4700bc10b0ecb4c9b2eedeed8410aa9c2f9583f60102
@@ -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"
@@ -270,17 +270,26 @@ 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
+ @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)
276
283
 
277
- unless res.is_a?(Documents::StreamingPutReply)
278
- raise Error::StreamingPutFailure, "expected Documents::StreamingPutReply response, got #{res.class} instead"
284
+ @logger.debug("Cipherstash::Client::RPC#put_stream") { "#{res.numInserted} records inserted." }
285
+
286
+ num_inserted = res.numInserted
287
+ end
279
288
  end
280
289
 
281
- raise_if_error(res)
290
+ @logger.debug("Cipherstash::Client::RPC#put_stream") { "Streaming upsert complete. Number of records inserted: #{res.numInserted}" }
282
291
 
283
- res.numInserted
292
+ num_inserted
284
293
  rescue ::GRPC::NotFound
285
294
  raise Error::RecordPutFailure, "Collection '#{collection.name}' not found"
286
295
  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.1
4
+ version: 0.16.1.7.gf3c55c5
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-10-18 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
@@ -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: '0'
326
+ version: 1.3.1
327
327
  requirements: []
328
328
  rubygems_version: 3.1.6
329
329
  signing_key: