zk_recipes 0.2.2 → 0.2.3

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: 8fa28d0852ec9e71d6f8a38daaf6c77626e11b7d
4
- data.tar.gz: c2222216513454ecf137f88c266345327085551f
3
+ metadata.gz: 5c2873a40bf64353b92a2f4331016cd807129618
4
+ data.tar.gz: a690f00718b13542111c8e73db6be7fdb830f224
5
5
  SHA512:
6
- metadata.gz: 90599a5eb832a705ce159dcc88c1d1ca8bed88b9b282e3996b049d65a50acd3d0f6f77463a956899b19ac6deca389ab07a790c7ecf0e79b0d0adeda89a724b83
7
- data.tar.gz: 247ca67c9cee03ab06da4e117908947ab7fc85dc598a930341b3d877534653b3a16c6bf901a266a73e32bdc3339fec42b7d3f40ce0a024155e4e4cf4e8898e3b
6
+ metadata.gz: 39b2cc81a4f74bbbdf989663e365df58e64a39b6168472000a0120736dce866b95830b10d487bab931b47024303e99ad55f9085d86c860acd1b34ca23f063145
7
+ data.tar.gz: 52d84aaea653943d09dba66a907a1f8aad8baa153bc0cb659776e8b5a89b8016cd5d20fb0711df1cb8ff0e2a24a23a35a847e64ca7cea578a574d9e929bbcbd4
data/.travis.yml CHANGED
@@ -4,9 +4,9 @@ before_install:
4
4
  - sudo apt-get install -y socat pv
5
5
  - gem install bundler
6
6
  rvm:
7
- - 2.3.4
8
- - 2.4.1
9
- - jruby-9.1.12.0
7
+ - 2.3.5
8
+ - 2.4.2
9
+ - jruby-9.1.13.0
10
10
  - ruby-head
11
11
  matrix:
12
12
  allow_failures:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.3
4
+
5
+ - `ZkRecipes::Cache#close!` should not cause exceptions if there are zk events in the zk queue
6
+
3
7
  ## 0.2.2
4
8
 
5
9
  - More logging tweaks: use block form of logging for everything *execpt* string literals
@@ -98,13 +98,13 @@ module ZkRecipes
98
98
 
99
99
  def close!
100
100
  @watches.each_value(&:unsubscribe)
101
- @watches.clear
102
101
  @zk.close! if @owned_zk
103
- @zk = nil
104
- @cache = nil
105
- @registered_values = nil
102
+ @watches.clear
103
+ @pending_updates.clear
106
104
  end
107
105
 
106
+ # reopen the client after the process forks
107
+ # This is *not* the opposite of `#close!`.
108
108
  def reopen
109
109
  @latch = Concurrent::CountDownLatch.new
110
110
  @session_id = nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZkRecipes
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zk_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Lazarus
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-03 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport