Skip to content

Commit 93267a3

Browse files
authored
Merge pull request #1078 from dr-itz/rails61-dev
Rails 6.1 fixes
2 parents 713dcfa + 96beec7 commit 93267a3

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515

1616
language: ruby
1717
rvm:
18-
- jruby-9.2.9.0
18+
- jruby-9.2.13.0
1919
jdk:
2020
- openjdk8
2121

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ Proceed as with Rails; specify `ActiveRecord` in your Bundle along with the
117117
chosen JDBC adapter(s), this time sample *Gemfile* for MySQL:
118118

119119
```ruby
120-
gem 'activerecord', '~> 5.0.6'
121-
gem 'activerecord-jdbcmysql-adapter', :platform => :jruby
120+
gem 'activerecord', '~> 6.0.3'
121+
gem 'activerecord-jdbcmysql-adapter', '~> 60.2', :platform => :jruby
122122
```
123123

124124
When you `require 'bundler/setup'` everything will be set up for you as expected.
@@ -127,13 +127,13 @@ When you `require 'bundler/setup'` everything will be set up for you as expected
127127

128128
Install the needed gems with JRuby, for example:
129129

130-
gem install activerecord -v "~> 5.0.6"
131-
gem install activerecord-jdbc-adapter --ignore-dependencies
130+
gem install activerecord -v "~> 6.0.3"
131+
gem install activerecord-jdbc-adapter -v "~> 60.2" --ignore-dependencies
132132

133133
If you wish to use the adapter for a specific database, you can install it
134134
directly and the (jdbc-) driver gem (dependency) will be installed as well:
135135

136-
jruby -S gem install activerecord-jdbcmysql-adapter
136+
jruby -S gem install activerecord-jdbcmysql-adapter -v "~> 60.2"
137137

138138
Your program should include:
139139

@@ -173,7 +173,7 @@ ask on the #JRuby IRC channel on http://freenode.net/ (try [web-chat][6]).
173173
This project was originally written by [Nick Sieger](http://github.com/nicksieger)
174174
and [Ola Bini](http://github.com/olabini) with lots of help from the JRuby community.
175175
Polished 3.x compatibility and 4.x support (for AR-JDBC >= 1.3.0) was managed by
176-
[Karol Bucek](http://github.com/kares) among others. Support for Rails 6 was
176+
[Karol Bucek](http://github.com/kares) among others. Support for Rails 6.0 and 6.1 was
177177
contributed by [shellyBits GmbH](https://shellybits.ch/)
178178

179179
## License

activerecord-jdbc-adapter.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Gem::Specification.new do |gem|
4141
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
4242
gem.test_files = gem.files.grep(%r{^test/})
4343

44-
gem.add_dependency 'activerecord', '~> 6.0.0'
44+
gem.add_dependency 'activerecord', '~> 6.1.a'
4545

4646
#gem.add_development_dependency 'test-unit', '2.5.4'
4747
#gem.add_development_dependency 'test-unit-context', '>= 0.3.0'

test/rails/excludes/mysql2/ActiveRecord/ConnectionAdapters/ConnectionSwappingNestedTest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
exclude :test_shards_can_be_swapped_granularly, 'tries to load SQLite3 driver'
1111
exclude :test_roles_and_shards_can_be_swapped_granularly, 'tries to load SQLite3 driver'
1212
exclude :test_connected_to_many, 'tries to load SQLite3 driver'
13+
exclude :test_prevent_writes_can_be_changed_granularly, 'tries to load SQLite3 driver'

test/rails/excludes/postgresql/ActiveRecord/ConnectionAdapters/ConnectionSwappingNestedTest.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
exclude :test_shards_can_be_swapped_granularly, 'tries to load SQLite3 driver'
1111
exclude :test_roles_and_shards_can_be_swapped_granularly, 'tries to load SQLite3 driver'
1212
exclude :test_connected_to_many, 'tries to load SQLite3 driver'
13+
exclude :test_prevent_writes_can_be_changed_granularly, 'tries to load SQLite3 driver'

0 commit comments

Comments
 (0)