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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 06dda6720913150207e47f83ac7b0cd2596a7b03
4
- data.tar.gz: 0fc6f018adc7a26c4209075eab475107e4d244b6
3
+ metadata.gz: dd7dbe28f6138244683eb3608d4bac19560dda16
4
+ data.tar.gz: 584f38f853a0f97d15600e48f7f8b01b4bee182d
5
5
  SHA512:
6
- metadata.gz: c396e9fc220a759ce00c400f7ef7b0e0f2a85bd254eb6fb554156f3f82d5700274d1bff408ffde47ffaebf813d144fa058d86751d2c186245aa948d3271305b4
7
- data.tar.gz: 5f420b8ca90be4d2f3ba21b265e4c544ded45b749d767a1f5cd66dc715efe65f3f32cfabc00e861490f45c306894e4ec3c945dc5e2a571a9aa90460347535105
6
+ metadata.gz: 4a61ab89633713aa621dc783ec6a9fa87764e307b2a579f342410a2cadd53013b7dbec3f9034298166cb3d035f866eb58959d312687eb57c1d891f624f306613
7
+ data.tar.gz: df79723061e8ffe3bc5e11f69728874740ccef05f87c55d6e6fbd870851d569c16b035c9a6287d02da6b08d8ebf647ec01c8e2f21cd1fe7932b4ec4afdfa7d78
@@ -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.3
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-30 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord