-
Notifications
You must be signed in to change notification settings - Fork 378
Fix ci rspec upgrade to rails 8.0 #606
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
Changes from all commits
31270c4
1d5db17
3f648e0
0d7e42c
bb2b6cc
1ff6d67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ gem "shakapacker", "8.0.0" | |
|
|
||
| # Bundle edge Rails instead: gem "rails", github: "rails/rails" | ||
| gem "listen" | ||
| gem "rails", "~> 7.1" | ||
| gem "rails", "~> 8.0" | ||
|
|
||
| gem "pg" | ||
|
|
||
|
|
@@ -30,7 +30,7 @@ gem "coffee-rails" | |
|
|
||
| # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder | ||
| gem "jbuilder" | ||
| gem "redis", "~> 4.0" | ||
| gem "redis", "~> 5.0" | ||
|
|
||
| # bundle exec rake doc:rails generates the API under doc/api. | ||
| gem "sdoc", group: :doc | ||
|
|
@@ -74,7 +74,7 @@ group :development, :test do | |
|
|
||
| ################################################################################ | ||
| # Linters and Security | ||
| gem "rubocop", "1.24.1", require: false | ||
| gem "rubocop", "1.69", require: false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Update The current configuration in
🔗 Analysis chainUpdate RuboCop target Ruby version With the upgrade to RuboCop 1.69, ensure the target Ruby version in 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash # Check RuboCop configuration if [ -f .rubocop.yml ]; then grep -A 2 "TargetRubyVersion" .rubocop.yml fi Length of output: 124 |
||
| gem "rubocop-performance", "~> 1.13" | ||
| gem "rubocop-rails" | ||
| gem "rubocop-rspec", "~> 2.7" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,2 @@ | ||
| #!/usr/bin/env ruby | ||
| # frozen_string_literal: true | ||
|
|
||
| def installed?(process) | ||
| IO.popen "#{process} -v" | ||
| rescue Errno::ENOENT | ||
| false | ||
| end | ||
|
|
||
| def run(process) | ||
| system "#{process} start -f Procfile.dev" | ||
| rescue Errno::ENOENT | ||
| warn <<~MSG | ||
| ERROR: | ||
| Please ensure `Procfile.dev` exists in your project! | ||
| MSG | ||
| exit! | ||
| end | ||
|
|
||
| if installed? "overmind" | ||
| run "overmind" | ||
| elsif installed? "foreman" | ||
| run "foreman" | ||
| else | ||
| warn <<~MSG | ||
| NOTICE: | ||
| For this script to run, you need either 'overmind' or 'foreman' installed on your machine. Please try this script after installing one of them. | ||
| MSG | ||
| exit! | ||
| end | ||
| exec "./bin/rails", "server", *ARGV |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/env ruby | ||
| APP_PATH = File.expand_path('../config/application', __dir__) | ||
| APP_PATH = File.expand_path("../config/application", __dir__) | ||
| require_relative "../config/boot" | ||
| require "rails/commands" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/usr/bin/env ruby | ||
| require "rubygems" | ||
| require "bundler/setup" | ||
|
|
||
| # explicit rubocop config increases performance slightly while avoiding config confusion. | ||
| ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__)) | ||
|
|
||
| load Gem.bin_path("rubocop", "rubocop") |