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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60e2ff56778cf4d67aa04abeb8a6993b5f8255f8
4
- data.tar.gz: 2e5a5fc7ce6c1e96805b7d5455f58ec2f9ef233f
3
+ metadata.gz: 17d2b7c616ef4289a26cffecd7b21fa5e6f14e06
4
+ data.tar.gz: 6a6537a1d7067dc11669f79ac860c1fb0ce6c47c
5
5
  SHA512:
6
- metadata.gz: 6aeec90fe60593600f2309326c8e53467a704d84bdb2a2d6b5afae9b3712c16bc708000fa0d92b1b4923b27314ea4055b28b07e93229c33229822bbfaec19ee9
7
- data.tar.gz: 05e7b31c19b354c93bba6a2d891acd9f3a8a8a6d1e84d4a0bfbe4ce8d121a60f017f25765efd2d8f81319978b205c16ee2777d31a2383629d333d58270bfe462
6
+ metadata.gz: 284ec0eee41cd29c7397dee0f88c51d06dbb51c598fa1696868aa22408e8356f3fdccf2bfe795507983d3582e2de7f29f5133aa70ba36090a5a4be43cf97215f
7
+ data.tar.gz: dcafe5c29c6cdcff0718abbe4f737f70c9c59d007a6289c2c542bb7c3e882f666d346e7762d82e77225747be0d3487d07f0230728480a7fdc185ac2ac48c84ce
@@ -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]}" unless ['mysql', 'mysql2'].include?(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.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-06 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord