global_uid 3.4.2 → 3.4.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 +4 -4
- data/lib/global_uid.rb +6 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b79496b9c771b6c3e4bc80c8a851e2dbd5ba50a
|
|
4
|
+
data.tar.gz: b956f2acd73d8666ae9f4595d986144bb2fb1624
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '028bc9e2017047a4d353fc5194964ef45925c22ce1e9f30e34dd8634cede5a0ac1d0385ea8c9e58d29753f128fca6d012b86ec928399a2f733eca48b236ba8b0'
|
|
7
|
+
data.tar.gz: 2be94e69f1b62134fb7a56a6aafb749c3812f9be7b1d418d7ec064b7c6232b99e1d71bcd3072319f19b799e4e1ad6066e85da67399059d7e139f877778c82911
|
data/lib/global_uid.rb
CHANGED
|
@@ -16,10 +16,16 @@ end
|
|
|
16
16
|
ActiveRecord::Base.send(:include, GlobalUid::ActiveRecordExtension)
|
|
17
17
|
ActiveRecord::Migration.send(:prepend, GlobalUid::MigrationExtension)
|
|
18
18
|
|
|
19
|
+
# Make sure that GlobalUID is disabled for ActiveRecord's SchemaMigration table
|
|
19
20
|
if defined?(ActiveRecord::SchemaMigration)
|
|
20
21
|
ActiveRecord::SchemaMigration.disable_global_uid
|
|
21
22
|
end
|
|
22
23
|
|
|
24
|
+
# Make sure that GlobalUID is disabled for ActiveRecord's Internal Metadata table
|
|
25
|
+
if ActiveRecord::VERSION::MAJOR >= 5
|
|
26
|
+
ActiveRecord::InternalMetadata.disable_global_uid
|
|
27
|
+
end
|
|
28
|
+
|
|
23
29
|
if ActiveRecord::VERSION::STRING >= '4.1.0'
|
|
24
30
|
ActiveRecord::Associations::Builder::HasAndBelongsToMany.send(:include, GlobalUid::HasAndBelongsToManyBuilderExtension)
|
|
25
31
|
end
|
|
@@ -27,8 +33,3 @@ end
|
|
|
27
33
|
if ActiveRecord::VERSION::MAJOR >= 4
|
|
28
34
|
ActiveRecord::SchemaDumper.send(:prepend, GlobalUid::SchemaDumperExtension)
|
|
29
35
|
end
|
|
30
|
-
|
|
31
|
-
# Make sure that GlobalUID is disabled for ActiveRecord's Internal Metadata table
|
|
32
|
-
if ActiveRecord::VERSION::MAJOR >= 5
|
|
33
|
-
ActiveRecord::InternalMetadata.global_uid_disabled
|
|
34
|
-
end
|
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.
|
|
4
|
+
version: 3.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Osheroff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|