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

Add Ruby 3 support to the example app #22

Merged

Conversation

dalizard
Copy link
Contributor

@dalizard dalizard commented Oct 17, 2023

In Ruby 3.0, positional arguments and keyword arguments are separated. This is a breaking change and requires code changes. Rails has solved that compatibility change in 6.1, but the changes have not been ported to 6.0. This pull request updates Rails to 6.1 and:

  • It explicitly adds the webrick gem to the Gemfile since it no longer comes bundled with Ruby 3.0
  • It changes File.exists? to File.exist? since the former is not available in Ruby 3.0

In Ruby 3.0, positional arguments and keyword arguments are separated. This is a
breaking change and requires code changes. Rails has solved that compatibility
change in 6.1, but the changes have not been ported to 6.0. This commit updates
Rails to 6.1 and:

- It explicitly adds the webrick gem to the Gemfile since it no longer comes
  bundled with Ruby 3.0
- It changes `File.exists?` to `File.exist?` since the former is not available
  in Ruby 3.0
@RStankov
Copy link
Owner

@dalizard Merging. Thanks 🙌

@RStankov RStankov merged commit d6afdb2 into RStankov:master Oct 18, 2023
@dalizard dalizard deleted the add-ruby-3-support-to-example-app branch October 19, 2023 13:20
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.

None yet

2 participants