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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/global_uid.rb +6 -5
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecc180303fad90c4a882a8a3fae1670d43eeec2f
4
- data.tar.gz: 5cb843a3d4bcf8b2e67fb23b047a0a5f399244f6
3
+ metadata.gz: 7b79496b9c771b6c3e4bc80c8a851e2dbd5ba50a
4
+ data.tar.gz: b956f2acd73d8666ae9f4595d986144bb2fb1624
5
5
  SHA512:
6
- metadata.gz: 35f28425e73ecab588d2246d3013e345ddfeb906a3b976d1d074e3388e70db5667b057a034067650466ba6fbbd228ea6a4f9ea17c19b4c7e2692cc0e049f69e2
7
- data.tar.gz: 92527e1a1061219b6c0eb467bb19b530928032f94653500d9c0be1f052128b77245113b957609e575d38dc96046323cf57ecbb0cfee8bf577ce262aa8e8961fa
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.2
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-05 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord