ksconnect 0.1.12 → 0.1.13

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
  SHA1:
3
- metadata.gz: 1829fca81d5c50520f46482c6aac8a330cdaa973
4
- data.tar.gz: 823a43e18f55e9c5ec44714c1df4cfe78f3bab5e
3
+ metadata.gz: 6ce87324cd6e4c21f489c752a6eb33944bd778e5
4
+ data.tar.gz: b41e6e41d0d139d45d1cc7f2180fd171ba4358b1
5
5
  SHA512:
6
- metadata.gz: f63878c2085648cf7c8f6737f3d302ebf900d1dec5b7dc1228579bd39c1190081a509cea625a7c373533dd38f8375bfac8a520bf7434544f2acd88fe4fc48f92
7
- data.tar.gz: ae3e9766776380e593cb3c809dcb8677a9d596d79b26d3f2b6bc171d33281d8292e64462170df8e5ff3cad74a5476e3b6b8f4c13c47619af8a1b0d638dbe9969
6
+ metadata.gz: 549d3295ac65cf384297a8077faf3610a2f9bbaeaa41d982945849d3f94a69a28f1ed7536696b0084f51dbf21d8b8f58dc33834f0b589ea1205cc5ed58fd3204
7
+ data.tar.gz: 54bfee7aefbf5e248271a9c04b7d253d659e3126c20244835f5c457274e1c76e0632b1b2b2e0a9426fe0f4daae1eec037994126c982c2bde1c87030a4d3e3e56
@@ -14,8 +14,8 @@ class KSConnect
14
14
  @domain_name = domain_name
15
15
 
16
16
  @type = opts[:type] || "data"
17
- @use_cache = opts[:use_cache] || true
18
- @auto_notify = opts[:auto_notify] || false
17
+ @use_cache = opts[:use_cache].nil? ? true : !!opts[:use_cache]
18
+ @auto_notify = !!opts[:auto_notify]
19
19
 
20
20
  @cache = ActiveSupport::HashWithIndifferentAccess.new if @use_cache
21
21
  @cache_uuid = nil
@@ -28,7 +28,7 @@ class KSConnect
28
28
  end
29
29
 
30
30
  def setall(hash)
31
- @cache = @cache.merge(hash) if @use_cache
31
+ @cache.merge!(hash) if @use_cache
32
32
  redis.mapped_hmset(key, hash)
33
33
  redis.publish("core:push", { plugin_name: @plugin_name, domain_name: @domain_name, request_type: 'update' }.to_json) if @auto_notify
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ksconnect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Poon
@@ -109,3 +109,4 @@ signing_key:
109
109
  specification_version: 4
110
110
  summary: Connection API for Kloudsec
111
111
  test_files: []
112
+ has_rdoc: