istox 0.1.138 → 0.1.139

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: 11034c623cec005dd06a81000974a73689d88f431d939e48868d1b5163d9bad9
4
- data.tar.gz: 4d174d277ec9a96a480184ab4728c819c4aa0bac6f10e8ce2951629e2f2b7727
3
+ metadata.gz: 193d26a0c83a50c94bb9d3fa971daa24144ed006c57bfa22dd756f0381bb2cd1
4
+ data.tar.gz: 51c810efe532b07c6577c6d0941afdc20e7258b7309923b5ecbf5e16ebedb4b0
5
5
  SHA512:
6
- metadata.gz: 835c087897bd3d8bb80fcb8b96532e269b4da578e97a2b25d443a8548ca537e60eb0c6a6089814d62bc7bcffc1f9f030d0389c293aabf4e93467ad444738f32c
7
- data.tar.gz: 6e87b021e65f1cb662624236cd497b9da54c95a7379dcddd1bf422a26d94386ba3dabbe4709730d85ff82e5f4fddc7698e231ca05fd4d18e340d62b81e553350
6
+ metadata.gz: 2d5e1f4e6bd2167d1be7203653c1792a509351d5692f12ecf5748d47d5eca9554dcc1a614655d4347c39da0b11db0caf2f3bcdbd1dee9763a5eca278a044ed47
7
+ data.tar.gz: bfc1a32a9cbaef3eee2d3477993cb1a925a9952ab200b554875e9e06666597652ff486e3b361067f78ddaa5f99b786d0d7957959540c2411cf180392ce7aed72
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- istox (0.1.134)
4
+ istox (0.1.138)
5
5
  awesome_print
6
6
  binding_of_caller
7
7
  bunny (>= 2.12.0)
@@ -98,7 +98,7 @@ GEM
98
98
  ffi (1.12.2)
99
99
  globalid (0.4.2)
100
100
  activesupport (>= 4.2.0)
101
- google-protobuf (3.11.4)
101
+ google-protobuf (3.11.4-universal-darwin)
102
102
  googleapis-common-protos-types (1.0.4)
103
103
  google-protobuf (~> 3.0)
104
104
  graphlient (0.3.7)
@@ -109,7 +109,7 @@ GEM
109
109
  graphql-client (0.16.0)
110
110
  activesupport (>= 3.0)
111
111
  graphql (~> 1.8)
112
- grpc (1.27.0)
112
+ grpc (1.27.0-universal-darwin)
113
113
  google-protobuf (~> 3.11)
114
114
  googleapis-common-protos-types (~> 1.0)
115
115
  grpc-tools (1.27.0)
@@ -32,13 +32,13 @@ module Istox
32
32
 
33
33
  raise 'Fields cannot be empty' if fields.empty?
34
34
 
35
- log.debug "Removing data from cache, key: #{key}, fields: #{fields.inspect}"
36
-
37
35
  fields = fields.map(&:to_s)
38
36
 
39
- result = redis.hdel(key, fields)
37
+ fields.each do |f|
38
+ next unless redis.hexists(key, f)
40
39
 
41
- log.debug "Delete result: #{result.inspect}"
40
+ redis.hdel(key, [field])
41
+ end
42
42
  end
43
43
 
44
44
  def get(key:, field:)
@@ -1,3 +1,3 @@
1
1
  module Istox
2
- VERSION = '0.1.138'.freeze
2
+ VERSION = '0.1.139'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: istox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.138
4
+ version: 0.1.139
5
5
  platform: ruby
6
6
  authors:
7
7
  - Siong Leng