ksconnect 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ksconnect/api/plugin/data.rb +3 -3
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ce87324cd6e4c21f489c752a6eb33944bd778e5
|
4
|
+
data.tar.gz: b41e6e41d0d139d45d1cc7f2180fd171ba4358b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|
18
|
-
@auto_notify = opts[:auto_notify]
|
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
|
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.
|
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:
|