zookeeper 1.0.0-java → 1.0.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: java
12
12
  authors:
13
13
  - Phillip Pearson
@@ -133,6 +133,7 @@ files:
133
133
  - scripts/upgrade-1.0-sed-alike.rb
134
134
  - spec/c_zookeeper_spec.rb
135
135
  - spec/chrooted_connection_spec.rb
136
+ - spec/compatibilty_spec.rb
136
137
  - spec/default_watcher_spec.rb
137
138
  - spec/em_spec.rb
138
139
  - spec/forked_connection_spec.rb
@@ -183,6 +184,7 @@ summary: Apache ZooKeeper driver for Rubies
183
184
  test_files:
184
185
  - spec/c_zookeeper_spec.rb
185
186
  - spec/chrooted_connection_spec.rb
187
+ - spec/compatibilty_spec.rb
186
188
  - spec/default_watcher_spec.rb
187
189
  - spec/em_spec.rb
188
190
  - spec/forked_connection_spec.rb