flag_shih_tzu 0.3.18 → 0.3.19

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: 7cb0f801d83eafbf76a3de874e76a8a372f5048e
4
- data.tar.gz: d5804ef6c86329a0f0ea0c2a3411f89948b4afc6
3
+ metadata.gz: 50e9cf003fd441b7d14bd2c18c1abb3fecfa9cba
4
+ data.tar.gz: c4fe71ddebbe5e38491a4af7a0b74e0c2b4e8f0d
5
5
  SHA512:
6
- metadata.gz: 2732b0ddd0feddc04d8ec5f4dcc15da65af1d2fe666c742fbc1ce54ac6ebdf19558eebe5d0ac783bad5f2feac15aa444213d5d4e4b89df47be2916e316e70ce9
7
- data.tar.gz: 5ea34924d4b051d0d8c9a43a318ec5d8bfc36ff24bd8ab0d50f477ddcecaed27fd4e103bf3eccca6236d6f831d4b4874cab276d504b58646fbc71bc161dcf450
6
+ metadata.gz: 3cc692563999c20f433ac8275329809c0607d896a1c4ec9086c50d5770f47862b35cb590504bf7ea0cde59bbd16448acb185da7927c5fd80ea041b1fbe5af61d
7
+ data.tar.gz: e9018895c3d1734026d8043b2b06c6850190895c97e231b909748704929f68f197bda1fddcd1e96e6f4d5fbd0279da7f171ee7a9cd3d52c0da2b6a849151ab30
data/.travis.yml CHANGED
@@ -20,6 +20,7 @@ gemfile:
20
20
  - gemfiles/Gemfile.activerecord-4.1.x
21
21
  - gemfiles/Gemfile.activerecord-4.2.x
22
22
  - gemfiles/Gemfile.activerecord-5.0.x
23
+ - gemfiles/Gemfile.activerecord-5.1.x
23
24
  matrix:
24
25
  allow_failures:
25
26
  - rvm: ruby-head
@@ -87,14 +88,20 @@ matrix:
87
88
  gemfile: gemfiles/Gemfile.activerecord-3.1.x
88
89
  - rvm: 2.1.10
89
90
  gemfile: gemfiles/Gemfile.activerecord-5.0.x
91
+ - rvm: 2.1.10
92
+ gemfile: gemfiles/Gemfile.activerecord-5.1.x
90
93
 
91
94
  - rvm: 2.0.0-p648
92
- gemfile: gemfiles/Gemfile.activerecord-2.3.x
95
+ gemfile: gemfiles/Gemfile.activerecord-5.1.x
96
+ - rvm: 2.0.0-p648
97
+ gemfile: gemfiles/Gemfile.activerecord-5.0.x
93
98
  - rvm: 2.0.0-p648
94
99
  gemfile: gemfiles/Gemfile.activerecord-4.2.x
95
100
  - rvm: 2.0.0-p648
96
- gemfile: gemfiles/Gemfile.activerecord-5.0.x
101
+ gemfile: gemfiles/Gemfile.activerecord-2.3.x
97
102
 
103
+ - rvm: 1.9.3-p551
104
+ gemfile: gemfiles/Gemfile.activerecord-5.1.x
98
105
  - rvm: 1.9.3-p551
99
106
  gemfile: gemfiles/Gemfile.activerecord-5.0.x
100
107
  - rvm: 1.9.3-p551
@@ -104,6 +111,8 @@ matrix:
104
111
  - rvm: 1.9.3-p551
105
112
  gemfile: gemfiles/Gemfile.activerecord-4.0.x
106
113
 
114
+ - rvm: jruby-1.7.26
115
+ gemfile: gemfiles/Gemfile.activerecord-5.1.x
107
116
  - rvm: jruby-1.7.26
108
117
  gemfile: gemfiles/Gemfile.activerecord-5.0.x
109
118
  - rvm: jruby-1.7.26
data/bin/test.bash CHANGED
@@ -29,7 +29,7 @@ COMPATIBLE_VERSIONS=(2.3.x 3.0.x 3.1.x 3.2.x)
29
29
  Count=0
30
30
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
31
31
  do
32
- rvm_ruby_version=1.9.3
32
+ rvm_ruby_version=1.9.3-p551
33
33
  rails_version=${COMPATIBLE_VERSIONS[Count]}
34
34
  run_all_tests_for $rvm_ruby_version $rails_version
35
35
  done
@@ -39,7 +39,7 @@ COMPATIBLE_VERSIONS=(3.0.x 3.1.x 3.2.x 4.0.x 4.1.x)
39
39
  Count=0
40
40
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
41
41
  do
42
- rvm_ruby_version=2.0.0
42
+ rvm_ruby_version=2.0.0-p648
43
43
  rails_version=${COMPATIBLE_VERSIONS[Count]}
44
44
  run_all_tests_for $rvm_ruby_version $rails_version
45
45
  done
@@ -49,7 +49,7 @@ COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x)
49
49
  Count=0
50
50
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
51
51
  do
52
- rvm_ruby_version=2.1.5
52
+ rvm_ruby_version=2.1.10
53
53
  rails_version=${COMPATIBLE_VERSIONS[Count]}
54
54
  run_all_tests_for $rvm_ruby_version $rails_version
55
55
  done
@@ -59,7 +59,7 @@ COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x)
59
59
  Count=0
60
60
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
61
61
  do
62
- rvm_ruby_version=2.2.3
62
+ rvm_ruby_version=2.2.7
63
63
  rails_version=${COMPATIBLE_VERSIONS[Count]}
64
64
  run_all_tests_for $rvm_ruby_version $rails_version
65
65
  done
@@ -78,9 +78,9 @@ do
78
78
  run_all_tests_for $rvm_ruby_version $rails_version
79
79
  done
80
80
 
81
- # Then run the tests for all versions supported on jruby-9.1.8.0 (which is 9.1.5.0 in travis.yml)
82
- # (which should be the same as the Ruby 2.2.3 compatibility set)
83
- COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x 5.0.x)
81
+ Then run the tests for all versions supported on jruby-9.1.8.0 (which is 9.1.5.0 in travis.yml)
82
+ (which should be the same as the Ruby 2.2.3 compatibility set)
83
+ COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x 5.0.x 5.1.x)
84
84
  Count=0
85
85
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
86
86
  do
@@ -0,0 +1,21 @@
1
+ source "http://rubygems.org"
2
+
3
+ gemspec :path => ".."
4
+
5
+ gem "activerecord", "~> 5.1.0"
6
+ gem "sqlite3", "~> 1.3", :platforms => [:ruby]
7
+ gem "activerecord-mysql2-adapter", :platforms => [:ruby]
8
+ gem "pg", :platforms => [:ruby_18]
9
+
10
+ platform :jruby do
11
+ gem 'jdbc-sqlite3', github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
12
+ gem 'jdbc-mysql', github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
13
+ gem 'jdbc-postgres', github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
14
+ gem 'activerecord-jdbc-adapter', github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
15
+ gem "activerecord-jdbcsqlite3-adapter", github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
16
+ gem "activerecord-jdbcmysql-adapter", github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
17
+ gem "activerecord-jdbcpostgresql-adapter", github: "jruby/activerecord-jdbc-adapter", branch: 'rails-5'
18
+ end
19
+
20
+ gem "reek", "~> 3.5.0", :platforms => [:ruby]
21
+ gem "roodi", "~> 5.0.0", :platforms => [:ruby]
data/lib/flag_shih_tzu.rb CHANGED
@@ -350,7 +350,7 @@ To turn off this warning set check_for_column: false in has_flags definition her
350
350
  # is needed for backwards compatibility
351
351
  has_table = if has_ar
352
352
  if ::ActiveRecord::VERSION::MAJOR >= 5
353
- connection.data_sources
353
+ connection.data_sources.include?(custom_table_name)
354
354
  else
355
355
  connection.tables.include?(custom_table_name)
356
356
  end
@@ -1,3 +1,3 @@
1
1
  module FlagShihTzu
2
- VERSION = "0.3.18"
2
+ VERSION = "0.3.19"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flag_shih_tzu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-05-01 00:00:00.000000000 Z
15
+ date: 2017-05-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activerecord
@@ -130,6 +130,7 @@ files:
130
130
  - gemfiles/Gemfile.activerecord-4.1.x
131
131
  - gemfiles/Gemfile.activerecord-4.2.x
132
132
  - gemfiles/Gemfile.activerecord-5.0.x
133
+ - gemfiles/Gemfile.activerecord-5.1.x
133
134
  - lib/flag_shih_tzu.rb
134
135
  - lib/flag_shih_tzu/validators.rb
135
136
  - lib/flag_shih_tzu/version.rb
@@ -157,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
158
  version: '0'
158
159
  requirements: []
159
160
  rubyforge_project:
160
- rubygems_version: 2.6.11
161
+ rubygems_version: 2.4.8
161
162
  signing_key:
162
163
  specification_version: 4
163
164
  summary: Bit fields for ActiveRecord