Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 6.2 is now Rails 7.0 #2136

Merged
merged 4 commits into from
Feb 5, 2021
Merged

Conversation

koic
Copy link
Collaborator

@koic koic commented Feb 4, 2021

@koic
Copy link
Collaborator Author

koic commented Feb 4, 2021

I will apply rails/rails@6487836 to this PR and investigate failure spec ASAP.

@yahonda
Copy link
Collaborator

yahonda commented Feb 5, 2021

It looks like JRuby 9.4 is planned to support Ruby 2.7. Then in the meantime, we may need to disable CI against all of the JRuby versions.

jruby/jruby#6464

Rails 7.0 requires Ruby 2.7 or higeher.
CI pending the following matrix until JRuby 9.4 that supports Ruby 2.7 will be released.
jruby/jruby#6464
@koic
Copy link
Collaborator Author

koic commented Feb 5, 2021

Thanks for the information. I disabled JRuby CI matrix.

@koic
Copy link
Collaborator Author

koic commented Feb 5, 2021

MRI 2.7 and MRI 3.0 build errors are not related from Rails 6.2 to Rails 7.0. They will be resolved by #2138.

Follow rails/rails#41302.

rails/rails#41302 changed the behaviour `adapter_name_from`.

Below are the differences based on that implementation.

## Before

```console
Test3Employee.connection.adapter_name.downcase.to_sym
# => :oracleenhanced
```

## After

```console
Test3Employee.connection_db_config.adapter.to_sym
# => :oracle_enhanced
```

This PR conforms to the new behavior of `adapter_name_from` and
fixes the following build error.

```console
% bundle exec rspec

(snip)

rspec ./spec/active_record/oracle_enhanced/type/boolean_spec.rb:116 #
OracleEnhancedAdapter boolean type detection based on string column
types and names / VARCHAR2 boolean values from ActiveRecord model should
return boolean value from VARCHAR2 boolean column if
emulate_booleans_from_strings is true
rspec ./spec/active_record/oracle_enhanced/type/boolean_spec.rb:141 #
OracleEnhancedAdapter boolean type detection based on string column
types and names / VARCHAR2 boolean values from ActiveRecord model should
return boolean value from VARCHAR2 boolean column if attribute is set to
:boolean
```

https://github.com/rsim/oracle-enhanced/runs/1822500989
@yahonda
Copy link
Collaborator

yahonda commented Feb 5, 2021

CI failures happen at bug report templates, which needs this pull request merged anyway.

@yahonda yahonda merged commit fdf6981 into rsim:master Feb 5, 2021
@koic koic deleted the rails_62_is_now_rails_70 branch February 5, 2021 08:56
@koic
Copy link
Collaborator Author

koic commented Feb 5, 2021

The master branch build has been successful! Thank you!
https://github.com/rsim/oracle-enhanced/runs/1837493794

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants