global_uid 3.3.4 → 3.4.1

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: ec88c7827966b642fd74234cc6f17f307ee84b35
4
- data.tar.gz: 630352d846fb7b074296144bf4084b4a92decbc2
3
+ metadata.gz: 228f9925a5f1ba50389a78dff824841ba276a954
4
+ data.tar.gz: 9d42d4ad7408765b8fd20df86a6b2b2c86b32e84
5
5
  SHA512:
6
- metadata.gz: 19addeb48239f9575c9059bccc716483ce53dcd18a4288ef390312db24efbe322cdd5d2a3076e79d58fbdd0067a72fa65b28423515b49e8f74590b1d2827538a
7
- data.tar.gz: a43f46593f98bb9f33769bbf2eb012241896a50b08cb731e31c0a90ef9f056ec8f454b14c48e199be379e3cad8a0a3a8a459f150a40f6aaec5c498f276a1c5b7
6
+ metadata.gz: 111f3b7442b267eb96608a22b9aa90a6e9630dfa8d4f5a78fae9556eadbd435ffc5d17349f491ae42f641dc9bc1c37cc49b6537c78b0f79e3ca6b865ffa15537
7
+ data.tar.gz: d2d16f88015c8e63e50acdae1dd37dcb29d608813635547eecec0f989795e8d76837dcf97597746f4a204322b639012901fbd5f991e22fd26f6d0564173fe18b
@@ -26,7 +26,7 @@ module GlobalUid
26
26
 
27
27
  module ClassMethods
28
28
  def global_uid_disabled
29
- if @global_uid_disabled.nil?
29
+ if !defined?(@global_uid_disabled) || @global_uid_disabled.nil?
30
30
  if superclass.respond_to?(:global_uid_disabled)
31
31
  @global_uid_disabled = superclass.send(:global_uid_disabled)
32
32
  else
@@ -60,7 +60,7 @@ module GlobalUid
60
60
  end
61
61
 
62
62
  def ensure_global_uid_table
63
- return @global_uid_table_exists if @global_uid_table_exists
63
+ return @global_uid_table_exists if defined?(@global_uid_table_exists) && @global_uid_table_exists
64
64
  GlobalUid::Base.with_connections do |connection|
65
65
  if ActiveRecord::VERSION::MAJOR >= 5
66
66
  raise "Global UID table #{global_uid_table} not found!" unless connection.schema_cache.data_source_exists?(global_uid_table.to_s)
@@ -152,8 +152,6 @@ module GlobalUid
152
152
 
153
153
  raise NoServersAvailableException if servers.empty?
154
154
 
155
- exception_count = 0
156
-
157
155
  errors = []
158
156
  servers.each do |s|
159
157
  begin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: global_uid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-19 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.1'
22
+ version: '5.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.1'
32
+ version: '5.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement