Skip to content

Commit

Permalink
Bump to use Ruby 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangarha committed Jan 8, 2024
1 parent 1631569 commit 891bf53
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build-dummy-app-webpack-test-bundles:
strategy:
matrix:
ruby: [2.7, 3.2]
ruby: [3.0, 3.3]
node: [14, 20]
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
needs: build-dummy-app-webpack-test-bundles
strategy:
matrix:
ruby: [2.7, 3.2]
ruby: [3.0, 3.3]
node: [14, 20]
rake_task: ['run_rspec:all_but_examples', 'run_rspec:examples']
runs-on: ubuntu-22.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rspec-package-specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
ruby: [2.7, 3.2]
ruby: [3.0, 3.3]
node: [14, 20]
runs-on: ubuntu-22.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require:
AllCops:
NewCops: enable
DisplayCopNames: true
TargetRubyVersion: 2.5
TargetRubyVersion: 3.0.0

Include:
- '**/Rakefile'
Expand Down
5 changes: 2 additions & 3 deletions Gemfile.development_dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ gem "shakapacker", "7.2.1"
gem "bootsnap", require: false
gem "rails", "~> 7.1"

# sqlite3 1.7.0 ends native gem support for Ruby 2.7
gem "sqlite3", "~> 1.0", "< 1.7.0"
gem "sqlite3"
gem "sass-rails", "~> 6.0"
gem "uglifier"
gem "jquery-rails"
gem "puma", "~> 6.0"
gem "bundler", "2.4.17"
gem "bundler", "2.5.3"

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem "turbolinks" if ENV["DISABLE_TURBOLINKS"].nil? || ENV["DISABLE_TURBOLINKS"].strip.empty?
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ _Requires creating a free account._

## Prerequisites

Ruby on Rails >=5, rails/webpacker >= 4.2 or shakapacker > 6, Ruby >= 2.7
Ruby on Rails >=5, rails/webpacker >= 4.2 or shakapacker > 6, Ruby >= 3.0.0

# Support

Expand Down
3 changes: 1 addition & 2 deletions react_on_rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ Gem::Specification.new do |s|
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
s.require_paths = ["lib"]

s.required_ruby_version = ">= 2.7.0"
s.required_ruby_version = ">= 3.0.0"

s.add_dependency "addressable"
s.add_dependency "connection_pool"
s.add_dependency "execjs", "~> 2.5"
s.add_dependency "rails", ">= 5.2"
s.add_dependency "rainbow", "~> 3.0"

s.add_development_dependency "bundler", "~> 2"
s.add_development_dependency "gem-release"
s.post_install_message = '
--------------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions spec/dummy/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ PLATFORMS
DEPENDENCIES
amazing_print
bootsnap
bundler (= 2.4.17)
bundler (= 2.5.3)
capybara
capybara-screenshot
coveralls
Expand Down Expand Up @@ -418,10 +418,10 @@ DEPENDENCIES
shakapacker (= 7.2.1)
spring (~> 4.0)
sprockets (~> 4.0)
sqlite3 (~> 1.0, < 1.7.0)
sqlite3
turbolinks
uglifier
webdrivers (= 5.3.0)

BUNDLED WITH
2.4.17
2.5.3
2 changes: 1 addition & 1 deletion spec/dummy/bin/bundle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ m = Module.new do

requirement = bundler_gem_version.approximate_recommendation

return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("2.7.0")
return requirement unless Gem::Version.new(Gem::VERSION) < Gem::Version.new("3.0.0")

requirement += ".a" if bundler_gem_version.prerelease?

Expand Down

0 comments on commit 891bf53

Please sign in to comment.