global_uid 3.3.4 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/global_uid/active_record_extension.rb +2 -2
- data/lib/global_uid/base.rb +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 228f9925a5f1ba50389a78dff824841ba276a954
|
4
|
+
data.tar.gz: 9d42d4ad7408765b8fd20df86a6b2b2c86b32e84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/global_uid/base.rb
CHANGED
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.
|
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:
|
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.
|
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.
|
32
|
+
version: '5.2'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|