foreigner 1.7.3 → 1.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foreigner/helper.rb +2 -2
- data/test/foreigner/schema_dumper_test.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: dd7dbe28f6138244683eb3608d4bac19560dda16
|
4
|
+
data.tar.gz: 584f38f853a0f97d15600e48f7f8b01b4bee182d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a61ab89633713aa621dc783ec6a9fa87764e307b2a579f342410a2cadd53013b7dbec3f9034298166cb3d035f866eb58959d312687eb57c1d891f624f306613
|
7
|
+
data.tar.gz: df79723061e8ffe3bc5e11f69728874740ccef05f87c55d6e6fbd870851d569c16b035c9a6287d02da6b08d8ebf647ec01c8e2f21cd1fe7932b4ec4afdfa7d78
|
data/lib/foreigner/helper.rb
CHANGED
@@ -3,8 +3,8 @@ module Foreigner
|
|
3
3
|
def self.active_record_version
|
4
4
|
if ::ActiveRecord.respond_to? :version
|
5
5
|
ActiveRecord.version
|
6
|
-
elsif ::ActiveRecord::VERSION
|
7
|
-
Gem::Version.new(::ActiveRecord::VERSION)
|
6
|
+
elsif ::ActiveRecord::VERSION::STRING
|
7
|
+
Gem::Version.new(::ActiveRecord::VERSION::STRING)
|
8
8
|
else
|
9
9
|
raise "Unknown ActiveRecord Version API"
|
10
10
|
end
|
@@ -51,7 +51,7 @@ class Foreigner::SchemaDumperTest < Foreigner::UnitTest
|
|
51
51
|
end
|
52
52
|
|
53
53
|
test '4.1.9 loading error' do
|
54
|
-
Foreigner::Helper.stubs(:active_record_version).returns("4.1.9")
|
54
|
+
Foreigner::Helper.stubs(:active_record_version).returns Gem::Version.new("4.1.9")
|
55
55
|
MockSchemaDumper.ignore_tables = []
|
56
56
|
dumper = MockSchemaDumper.new
|
57
57
|
dumper.tables(StringIO.new)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreigner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Higgins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|