flag_shih_tzu 0.3.17 → 0.3.18

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: cd4bfc174291e12f105c3c1c94feef99ac5310cf
4
- data.tar.gz: 1e92b592f783e0b6add71e02a6ece2e6a4a50046
3
+ metadata.gz: 7cb0f801d83eafbf76a3de874e76a8a372f5048e
4
+ data.tar.gz: d5804ef6c86329a0f0ea0c2a3411f89948b4afc6
5
5
  SHA512:
6
- metadata.gz: 2c92950fa9f20f53e38364cca772ba9ea3f0d9715fcb6899ad25eec25f1057ed4cce044158af77b17d020c2f36b05df54a34e0546b508115931566eb0a586610
7
- data.tar.gz: e45040c582157973233deb06a36ec0ddea4006c1985226acb5f7fa6f966f2a7875e4a767a479a76a3aa7e6330cf147c90c91eed3fbb6f0e1e7e5f8a2d6662855
6
+ metadata.gz: 2732b0ddd0feddc04d8ec5f4dcc15da65af1d2fe666c742fbc1ce54ac6ebdf19558eebe5d0ac783bad5f2feac15aa444213d5d4e4b89df47be2916e316e70ce9
7
+ data.tar.gz: 5ea34924d4b051d0d8c9a43a318ec5d8bfc36ff24bd8ab0d50f477ddcecaed27fd4e103bf3eccca6236d6f831d4b4874cab276d504b58646fbc71bc161dcf450
data/.travis.yml CHANGED
@@ -9,7 +9,8 @@ rvm:
9
9
  - 2.3.4
10
10
  - 2.4.1
11
11
  - ruby-head
12
- - jruby-9.0.1.0
12
+ - jruby-1.7.26
13
+ - jruby-9.1.5.0
13
14
  gemfile:
14
15
  - gemfiles/Gemfile.activerecord-2.3.x
15
16
  - gemfiles/Gemfile.activerecord-3.0.x
@@ -22,20 +23,26 @@ gemfile:
22
23
  matrix:
23
24
  allow_failures:
24
25
  - rvm: ruby-head
25
- - rvm: 1.9.3-p551
26
26
  exclude:
27
- - rvm: jruby-9.0.1.0
27
+ - rvm: ruby-head
28
28
  gemfile: gemfiles/Gemfile.activerecord-2.3.x
29
- - rvm: jruby-9.0.1.0
29
+ - rvm: ruby-head
30
30
  gemfile: gemfiles/Gemfile.activerecord-3.0.x
31
- - rvm: jruby-9.0.1.0
31
+ - rvm: ruby-head
32
32
  gemfile: gemfiles/Gemfile.activerecord-3.1.x
33
- - rvm: jruby-9.0.1.0
33
+ - rvm: ruby-head
34
34
  gemfile: gemfiles/Gemfile.activerecord-3.2.x
35
- - rvm: jruby-9.0.1.0
35
+ - rvm: ruby-head
36
36
  gemfile: gemfiles/Gemfile.activerecord-4.0.x
37
- - rvm: jruby-9.0.1.0
38
- gemfile: gemfiles/Gemfile.activerecord-5.0.x
37
+ - rvm: ruby-head
38
+ gemfile: gemfiles/Gemfile.activerecord-4.1.x
39
+
40
+ - rvm: jruby-9.1.5.0
41
+ gemfile: gemfiles/Gemfile.activerecord-2.3.x
42
+ - rvm: jruby-9.1.5.0
43
+ gemfile: gemfiles/Gemfile.activerecord-3.0.x
44
+ - rvm: jruby-9.1.5.0
45
+ gemfile: gemfiles/Gemfile.activerecord-3.1.x
39
46
 
40
47
  - rvm: 2.4.1
41
48
  gemfile: gemfiles/Gemfile.activerecord-2.3.x
@@ -47,6 +54,8 @@ matrix:
47
54
  gemfile: gemfiles/Gemfile.activerecord-3.2.x
48
55
  - rvm: 2.4.1
49
56
  gemfile: gemfiles/Gemfile.activerecord-4.0.x
57
+ - rvm: 2.4.1
58
+ gemfile: gemfiles/Gemfile.activerecord-4.1.x
50
59
 
51
60
  - rvm: 2.3.4
52
61
  gemfile: gemfiles/Gemfile.activerecord-2.3.x
@@ -94,3 +103,10 @@ matrix:
94
103
  gemfile: gemfiles/Gemfile.activerecord-4.1.x
95
104
  - rvm: 1.9.3-p551
96
105
  gemfile: gemfiles/Gemfile.activerecord-4.0.x
106
+
107
+ - rvm: jruby-1.7.26
108
+ gemfile: gemfiles/Gemfile.activerecord-5.0.x
109
+ - rvm: jruby-1.7.26
110
+ gemfile: gemfiles/Gemfile.activerecord-3.0.x
111
+ - rvm: jruby-1.7.26
112
+ gemfile: gemfiles/Gemfile.activerecord-2.3.x
data/CHANGELOG.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  * Work merged into master branch goes here until it is released.
4
4
 
5
+ # Version 0.3.18 - APR.30.2017
6
+ * Switched from Fixnum to Integer for Ruby 2.4 happiness
7
+ * Fixed build for all supported Ruby and Rails versions in supported matrix
8
+
9
+ # Version 0.3.17 - APR.29.2017
10
+ * Improved compatibility with Rails 5.0
11
+ * Fixed warnings about Fixnums
12
+ * Fixed compatibility with SQLlite
13
+ * Added Ruby 2.3, and 2.4 to the Travis Matrix
14
+ * Removed JRuby 1.7 from the Travis Matrix
15
+
5
16
  # Version 0.3.16 - JAN.16.2017
6
17
 
7
18
  * Fix complex custom sql queries with multiple references to the column by vegetaras
data/README.md CHANGED
@@ -50,7 +50,7 @@ The gem is actively being tested with:
50
50
 
51
51
  * MySQL, PostgreSQL and SQLite3 databases (Both Ruby and JRuby adapters)
52
52
  * ActiveRecord versions 2.3.x, 3.0.x, 3.1.x, 3.2.x, 4.0.x, 4.1.x, 4.2.x, 5.0.x
53
- * Ruby 1.9.3, 2.0.0, 2.1.10, 2.2.7, 2.3.4, 2.4.1, jruby-1.7.22, jruby-9.0.1.0, and ruby-head
53
+ * Ruby 1.9.3, 2.0.0, 2.1.10, 2.2.7, 2.3.4, 2.4.1, jruby-1.7.x, jruby-9.1.x, and ruby-head
54
54
  * Travis tests the supportedt builds. See [.travis.yml](https://github.com/pboling/flag_shih_tzu/blob/master/.travis.yml) for the matrix.
55
55
  * All of the supported builds can also be run locally. See [bin/test.bash](https://github.com/pboling/flag_shih_tzu/blob/master/bin/test.bash)
56
56
 
@@ -59,19 +59,26 @@ The gem is actively being tested with:
59
59
  | Ruby / Active Record | 2.3.x | 3.0.x | 3.1.x | 3.2.x | 4.0.x | 4.1.x | 4.2.x | 5.0.x |
60
60
  |:---------------------:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|:-----:|
61
61
  | 1.9.3 | ✓ | ✓ | ✓ | ✓ | | | | |
62
- | 2.0.0 | | ✓ | ✓ | ✓ | ✓ | ✓ | | |
62
+ | 2.0.0 | | ✓ | ✓ | ✓ | ✓ | ✓ || |
63
63
  | 2.1.x | | | | ✓ | ✓ | ✓ | ✓ | |
64
64
  | 2.2.0-2.2.1 | | | | ✓ | ✓ | ✓ | ✓ | |
65
65
  | 2.2.2+ | | | | ✓ | ✓ | ✓ | ✓ | ✓ |
66
66
  | 2.3.x | | | | ✓ | ✓ | ✓ | ✓ | ✓ |
67
67
  | 2.4.x | | | | | | | ✓ | ✓ |
68
- | jruby-1.7.x | | | ✓ | ✓ | ✓ | ✓ | ✓ | |
69
- | jruby-9.0.x | | | | ✓ | ✓ | ✓ | ✓ | ✓ |
68
+ | jruby-1.7.x | ? | ? | ✓ | ✓ | ✓ | ✓ | ✓ | |
69
+ | jruby-9.x | | | | ✓ | ✓ | ✓ | ✓ | ✓ |
70
+
71
+ * Notes
72
+ - JRuby 1.7.x aims for MRI 1.9.3 compatibility
73
+ - `?` indicates incompatible due to 2 failures in the test suite.
74
+ - JRuby 9.x aims for MRI 2.x compatibility
70
75
 
71
76
  **Legacy**
72
77
 
73
78
  * Ruby 1.8.7 compatibility is in the [0.2.X branch](https://github.com/pboling/flag_shih_tzu/tree/0.2.X) and no further releases are expected. If you need a patch submit a pull request.
74
79
 
80
+ * Ruby 1.9.3, 2.0.0, and 2.1.0 compatibility is still current on master, and the 0.3.x series releases, but those EOL'd Rubies, and any others that become EOL'd in the meantime, will not be supported in the next major release, version 1.0.
81
+
75
82
  ## Installation
76
83
 
77
84
  ### Rails 2.x
data/bin/test.bash CHANGED
@@ -25,7 +25,6 @@ run_all_tests_for() {
25
25
  }
26
26
 
27
27
  # First run the tests for all versions supported on Ruby 1.9.3
28
- #COMPATIBLE_VERSIONS=(2.3.x)
29
28
  COMPATIBLE_VERSIONS=(2.3.x 3.0.x 3.1.x 3.2.x)
30
29
  Count=0
31
30
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
@@ -65,7 +64,7 @@ do
65
64
  run_all_tests_for $rvm_ruby_version $rails_version
66
65
  done
67
66
 
68
- # Then run the tests for all versions supported on jruby-1.7.22
67
+ # Then run the tests for all versions supported on jruby-1.7.26
69
68
  # (which appears to pass for 3.1 - 4.2 inclusive)
70
69
  # TODO: Investigate 2 failures on Rails 2.3 and 3.0
71
70
  # assert_equal true, my_spaceship.update_flag!(:jeanlucpicard, false, true)
@@ -74,18 +73,18 @@ COMPATIBLE_VERSIONS=(3.1.x 3.2.x 4.0.x 4.1.x 4.2.x)
74
73
  Count=0
75
74
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
76
75
  do
77
- rvm_ruby_version=jruby-1.7.22
76
+ rvm_ruby_version=jruby-1.7.26
78
77
  rails_version=${COMPATIBLE_VERSIONS[Count]}
79
78
  run_all_tests_for $rvm_ruby_version $rails_version
80
79
  done
81
80
 
82
- # Then run the tests for all versions supported on jruby-9.0.1.0
81
+ # Then run the tests for all versions supported on jruby-9.1.8.0 (which is 9.1.5.0 in travis.yml)
83
82
  # (which should be the same as the Ruby 2.2.3 compatibility set)
84
- COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x)
83
+ COMPATIBLE_VERSIONS=(3.2.x 4.0.x 4.1.x 4.2.x 5.0.x)
85
84
  Count=0
86
85
  while [ "x${COMPATIBLE_VERSIONS[Count]}" != "x" ]
87
86
  do
88
- rvm_ruby_version=jruby-9.0.1.0
87
+ rvm_ruby_version=jruby-9.1.8.0
89
88
  rails_version=${COMPATIBLE_VERSIONS[Count]}
90
89
  run_all_tests_for $rvm_ruby_version $rails_version
91
90
  done
@@ -12,6 +12,9 @@ gem "activerecord-mysql2-adapter", :platforms => [:ruby_20]
12
12
  gem "activerecord-jdbcmysql-adapter", :platforms => [:jruby]
13
13
  gem "pg", :platforms => [:ruby_18]
14
14
  gem "activerecord-jdbcpostgresql-adapter", :platforms => [:jruby]
15
+ gem "tins", "~> 1.6.0", :platforms => [:ruby_19, :jruby] # released August 13, 2015
16
+ gem "term-ansicolor", "~> 1.3.2", :platforms => [:ruby_19, :jruby] # released June 23, 2015
17
+ gem "unparser", "0.2.4", :platforms => [:ruby_19, :ruby_20, :jruby] # released May 30, 2015
15
18
 
16
19
  gem "rake", "~> 0.9.6"
17
20
  gem "reek", "~> 2.2.1", :platforms => [:ruby]
@@ -12,9 +12,9 @@ gem "activerecord-mysql2-adapter", :platforms => [:ruby_20]
12
12
  gem "activerecord-jdbcmysql-adapter", :platforms => [:jruby]
13
13
  gem "pg", :platforms => [:ruby_18]
14
14
  gem "activerecord-jdbcpostgresql-adapter", :platforms => [:jruby]
15
+ gem "tins", "~> 1.6.0", :platforms => [:ruby_19, :jruby] # released August 13, 2015
16
+ gem "term-ansicolor", "~> 1.3.2", :platforms => [:ruby_19, :jruby] # released June 23, 2015
17
+ gem "unparser", "0.2.4", :platforms => [:ruby_19, :ruby_20, :jruby] # released May 30, 2015
15
18
 
16
19
  gem "reek", "~> 2.2.1", :platforms => [:ruby]
17
20
  gem "roodi", "~> 5.0.0", :platforms => [:ruby]
18
-
19
- # unparser 0.2.5 requires Ruby >= 2.1
20
- gem "unparser", "0.2.4", :platforms => [:ruby_20]
@@ -12,9 +12,9 @@ gem "activerecord-mysql2-adapter", :platforms => [:ruby_20]
12
12
  gem "activerecord-jdbcmysql-adapter", :platforms => [:jruby]
13
13
  gem "pg", :platforms => [:ruby_18]
14
14
  gem "activerecord-jdbcpostgresql-adapter", :platforms => [:jruby]
15
+ gem "tins", "~> 1.6.0", :platforms => [:ruby_19, :jruby] # released August 13, 2015
16
+ gem "term-ansicolor", "~> 1.3.2", :platforms => [:ruby_19, :jruby] # released June 23, 2015
17
+ gem "unparser", "0.2.4", :platforms => [:ruby_19, :ruby_20, :jruby] # released May 30, 2015
15
18
 
16
19
  gem "reek", "~> 2.2.1", :platforms => [:ruby]
17
20
  gem "roodi", "~> 5.0.0", :platforms => [:ruby]
18
-
19
- # unparser 0.2.5 requires Ruby >= 2.1
20
- gem "unparser", "0.2.4", :platforms => [:ruby_20]
@@ -12,9 +12,9 @@ gem "activerecord-mysql2-adapter", :platforms => [:ruby_20]
12
12
  gem "activerecord-jdbcmysql-adapter", :platforms => [:jruby]
13
13
  gem "pg", :platforms => [:ruby_18]
14
14
  gem "activerecord-jdbcpostgresql-adapter", :platforms => [:jruby]
15
+ gem "tins", "~> 1.6.0", :platforms => [:ruby_19, :jruby] # released August 13, 2015
16
+ gem "term-ansicolor", "~> 1.3.2", :platforms => [:ruby_19, :jruby] # released June 23, 2015
17
+ gem "unparser", "0.2.4", :platforms => [:ruby_19, :ruby_20, :jruby] # released May 30, 2015
15
18
 
16
19
  gem "reek", "~> 2.2.1", :platforms => [:ruby]
17
20
  gem "roodi", "~> 5.0.0", :platforms => [:ruby]
18
-
19
- # unparser 0.2.5 requires Ruby >= 2.1
20
- gem "unparser", "0.2.4", :platforms => [:ruby_20]
@@ -4,11 +4,18 @@ gemspec :path => ".."
4
4
 
5
5
  gem "activerecord", "~> 5.0.0"
6
6
  gem "sqlite3", "~> 1.3", :platforms => [:ruby]
7
- gem "activerecord-jdbcsqlite3-adapter", :platforms => [:jruby]
8
7
  gem "activerecord-mysql2-adapter", :platforms => [:ruby]
9
- gem "activerecord-jdbcmysql-adapter", :platforms => [:jruby]
10
8
  gem "pg", :platforms => [:ruby_18]
11
- gem "activerecord-jdbcpostgresql-adapter", :platforms => [:jruby]
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
12
19
 
13
20
  gem "reek", "~> 3.5.0", :platforms => [:ruby]
14
21
  gem "roodi", "~> 5.0.0", :platforms => [:ruby]
data/lib/flag_shih_tzu.rb CHANGED
@@ -331,7 +331,7 @@ To turn off this warning set check_for_column: false in has_flags definition her
331
331
  else
332
332
  options.
333
333
  keys.
334
- select { |key| !key.is_a?(Fixnum) }.
334
+ select { |key| !key.is_a?(Integer) }.
335
335
  inject({}) do |hash, key|
336
336
  hash[key] = options.delete(key)
337
337
  hash
@@ -1,3 +1,3 @@
1
1
  module FlagShihTzu
2
- VERSION = "0.3.17"
2
+ VERSION = "0.3.18"
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.17
4
+ version: 0.3.18
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-04-29 00:00:00.000000000 Z
15
+ date: 2017-05-01 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activerecord
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.4.8
160
+ rubygems_version: 2.6.11
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Bit fields for ActiveRecord