zookeeper 1.0.0 → 1.0.2

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.
@@ -122,6 +122,8 @@ module Zookeeper
122
122
  Zookeeper::Callbacks
123
123
  end
124
124
 
125
+ super unless candidate
126
+
125
127
  if candidate.const_defined?(sym)
126
128
  warn "\n#{self.name}::#{sym} is now located in #{candidate}::#{sym}, please update your code!\n#{clean_backtrace}"
127
129
 
@@ -1,4 +1,4 @@
1
1
  module Zookeeper
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.2'
3
3
  DRIVER_VERSION = '3.3.5'
4
4
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Compatibiliy layer' do
4
+ it %[should raise the correct error when a const is missing] do
5
+ lambda { Zookeeper::THISISANINVALIDCONST }.should raise_error(NameError)
6
+ end
7
+ end
8
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zookeeper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 0
10
- version: 1.0.0
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phillip Pearson
@@ -101,6 +101,7 @@ files:
101
101
  - scripts/upgrade-1.0-sed-alike.rb
102
102
  - spec/c_zookeeper_spec.rb
103
103
  - spec/chrooted_connection_spec.rb
104
+ - spec/compatibilty_spec.rb
104
105
  - spec/default_watcher_spec.rb
105
106
  - spec/em_spec.rb
106
107
  - spec/forked_connection_spec.rb
@@ -151,6 +152,7 @@ summary: Apache ZooKeeper driver for Rubies
151
152
  test_files:
152
153
  - spec/c_zookeeper_spec.rb
153
154
  - spec/chrooted_connection_spec.rb
155
+ - spec/compatibilty_spec.rb
154
156
  - spec/default_watcher_spec.rb
155
157
  - spec/em_spec.rb
156
158
  - spec/forked_connection_spec.rb