ksconnect 0.2.5 → 0.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53fb3974bc68bd3913f1877c535604c769f58130
4
- data.tar.gz: 7a2a5f691ced3061a0c76aaaa1a035816e4e55bd
3
+ metadata.gz: 41113edd93cfe0db4ebbb1df360a294e69cf8b73
4
+ data.tar.gz: cd1f4a1b577f97459842a5470777e0364d75b11a
5
5
  SHA512:
6
- metadata.gz: 31220e25b6cbc6c7f2e4eb1694a8f293b840d890ec8b5b4b94aff6ea0c21e0c243fa058f08576c6cee8758144d8782047c720a7cb5f0eee9b3dbdc9e86d8acd3
7
- data.tar.gz: 226d38a0b84e4708f86b95a1a4a656cd5d6e9370f25986312203c0c0e4ba9e4ef5acef82a213117fd2a12a97845c8c15e5a7c6bbb06a84b694a39d2d6b9e31eb
6
+ metadata.gz: 8fd0c51624c7679b2572287997e688efb461407a4de2942cc1b956e11d1912470875652c7fcc8b365f8cbf516466eee2d0542b7e01e69d231cbdb6ad068c84d8
7
+ data.tar.gz: 854c62466e0267efed06a652e516a78c921e4e30c73af0f7c57699209d7b276861d36d60de59787c8582bc43205ae96005ef0f8f7101e2a2ecb28ef1e89636c9
@@ -59,9 +59,9 @@ class KSConnect
59
59
  else
60
60
  begin
61
61
  result = config.on_push.call(msg)
62
- update_action(msg["action_uuid"], :done, result) if msg["action_uuid"]
62
+ update_action(msg["action_uuid"], :done, result) if msg["action_uuid"] && ENV['KSCONNECT_READ_ONLY'].nil?
63
63
  rescue => e
64
- update_action(msg["action_uuid"], :failed, "") if msg["action_uuid"]
64
+ update_action(msg["action_uuid"], :failed, "") if msg["action_uuid"] && ENV['KSCONNECT_READ_ONLY'].nil?
65
65
  raise e
66
66
  end
67
67
  end
@@ -71,8 +71,9 @@ class KSConnect
71
71
  end
72
72
 
73
73
  def reload
74
+ return nil unless @use_cache
74
75
  $redis.with { |redis|
75
- @cache = redis.hgetall(key) if @use_cache
76
+ @cache = redis.hgetall(key)
76
77
  @cache
77
78
  }
78
79
  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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Poon