uuid_associations-active_record 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: cc4dca3626a286c4c6048fd1dd954d638940f118ce985653085d70065e4dd19a
4
- data.tar.gz: 622fa1cda9689a44e7b46683c14535982d0aabe72af8faf6ee66c1106468d0df
3
+ metadata.gz: a9d16956786a4619808d4bfc36e349dc896fb770394205878fd014f64147b3b3
4
+ data.tar.gz: 76311e6e020683e0de474af596fb35d212a062381a3fd372e1b3e9d72b21d1e1
5
5
  SHA512:
6
- metadata.gz: ec7e00fb8ac08c0de6ecf62961c6025c48089cc4e98c390e1d98c7d6436a5feb4b87d2eaa4049e4be56be7b6021ae756baef7e0c42d5c69cc4dd7d32848956d5
7
- data.tar.gz: 7c5c2cf86ee98f13d5610083fffa27b2adeeab05372e91895058873620e302c74797ac86f4682238c0f63a9ac31cdf2afbf750f6a0f889e424b07b4c1e3e3760
6
+ metadata.gz: 6eff3256a546c425eb96188af3c4b433a5727aee22f0b71dfc4e8f57bc15c9b3f2ba26da0a0ee91be41637606aca499edf4e4b4d7d31a34cdfc9d7091b7e1c46
7
+ data.tar.gz: 60336c03e86575186df2062bb2932d57eb163099673c420b5cabeec8b8d57a58048b53548dd40620225af92c2772495b7bd684b40b2fcc7592eaa1b1284ab362
data/.travis.yml CHANGED
@@ -3,25 +3,27 @@ language: ruby
3
3
  sudo: false
4
4
  cache: bundler
5
5
 
6
+ before_install:
7
+ - type bundle >/dev/null 2>&1 || gem install bundler -v '< 2'
8
+
6
9
  rvm:
7
10
  - 2.2.10
8
11
  - 2.3.8
9
12
  - 2.4.5
10
13
  - 2.5.3
14
+ - 2.6.0
11
15
 
12
16
  gemfile:
13
17
  - gemfiles/active_record_4.2.gemfile
14
18
  - gemfiles/active_record_5.0.gemfile
15
19
  - gemfiles/active_record_5.1.gemfile
16
20
  - gemfiles/active_record_5.2.gemfile
17
- - gemfiles/active_record_edge.gemfile
18
21
 
19
22
  matrix:
20
23
  include:
21
24
  - gemfile: gemfiles/active_record_4.2.gemfile
22
25
  rvm: 2.1.10
23
- exclude:
24
26
  - gemfile: gemfiles/active_record_edge.gemfile
25
- rvm: 2.2.10
27
+ rvm: 2.5.3
26
28
  - gemfile: gemfiles/active_record_edge.gemfile
27
- rvm: 2.3.8
29
+ rvm: 2.6.0
@@ -34,7 +34,7 @@ module UuidAssociations
34
34
  end
35
35
 
36
36
  def uuid_column?(association_class_name)
37
- return false unless ::ActiveRecord::Base.connected?
37
+ ::ActiveRecord::Base.connection
38
38
 
39
39
  table_name = table_name_from_class_name(association_class_name)
40
40
  return false unless ::ActiveRecord::Base.connection.tables.include?(table_name)
@@ -42,6 +42,8 @@ module UuidAssociations
42
42
  ::ActiveRecord::Base.connection.columns(table_name).any? do |column|
43
43
  column.name == 'uuid'
44
44
  end
45
+ rescue ::ActiveRecord::NoDatabaseError
46
+ false
45
47
  end
46
48
  end
47
49
  end
@@ -1,5 +1,5 @@
1
1
  module UuidAssociations
2
2
  module ActiveRecord
3
- VERSION = '0.3.2'.freeze
3
+ VERSION = '0.3.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_associations-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Celi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2019-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord