global_uid 2.0.0 → 2.0.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/base.rb +1 -1
- data/lib/global_uid.rb +1 -1
- 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: 17d2b7c616ef4289a26cffecd7b21fa5e6f14e06
|
4
|
+
data.tar.gz: 6a6537a1d7067dc11669f79ac860c1fb0ce6c47c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 284ec0eee41cd29c7397dee0f88c51d06dbb51c598fa1696868aa22408e8356f3fdccf2bfe795507983d3582e2de7f29f5133aa70ba36090a5a4be43cf97215f
|
7
|
+
data.tar.gz: dcafe5c29c6cdcff0718abbe4f737f70c9c59d007a6289c2c542bb7c3e882f666d346e7762d82e77225747be0d3487d07f0230728480a7fdc185ac2ac48c84ce
|
data/lib/global_uid/base.rb
CHANGED
@@ -66,7 +66,7 @@ module GlobalUid
|
|
66
66
|
config = ActiveRecord::Base.configurations[name]
|
67
67
|
c = config.symbolize_keys
|
68
68
|
|
69
|
-
raise "No global_uid support for adapter #{c[:adapter]}"
|
69
|
+
raise "No global_uid support for adapter #{c[:adapter]}" if c[:adapter] != 'mysql2'
|
70
70
|
|
71
71
|
con = nil
|
72
72
|
begin
|
data/lib/global_uid.rb
CHANGED
@@ -15,6 +15,6 @@ end
|
|
15
15
|
|
16
16
|
ActiveRecord::Base.send(:include, GlobalUid::ActiveRecordExtension)
|
17
17
|
ActiveRecord::ConnectionAdapters::AbstractAdapter.send(:include, GlobalUid::MigrationExtension)
|
18
|
-
if ActiveRecord::VERSION::MAJOR == 4
|
18
|
+
if ActiveRecord::VERSION::MAJOR == 4 && RUBY_VERSION >= '2'
|
19
19
|
ActiveRecord::SchemaDumper.send(:prepend, GlobalUid::SchemaDumperExtension)
|
20
20
|
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: 2.0.
|
4
|
+
version: 2.0.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: 2014-07-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|