Skip to content

Commit 1e32747

Browse files
authored
Merge pull request #1131 from RubyElders/fix-older-rails-app
Add logger to deps and load in early in test Rails app.
2 parents ce45fa6 + 16c0362 commit 1e32747

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Gemfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ group :development do
2525
gem "rake"
2626
gem "rspec"
2727
gem "pry"
28-
gem "rubocop"
28+
gem "rubocop", "~> 1.70.0" if RUBY_VERSION > "3.2"
2929
gem "test-unit"
30+
gem "logger"
3031
# Explicitly add webrick because it has been removed from stdlib in Ruby 3.0
3132
gem "webrick"
3233
end

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ GEM
8383
json (2.9.1)
8484
json (2.9.1-java)
8585
language_server-protocol (3.17.0.3)
86+
logger (1.7.0)
8687
matrix (0.4.2)
8788
method_source (1.1.0)
8889
mini_mime (1.1.5)
@@ -186,7 +187,7 @@ DEPENDENCIES
186187
rackup
187188
rake
188189
rspec
189-
rubocop
190+
rubocop (~> 1.70.0)
190191
simplecov!
191192
test-unit
192193
webrick

test_projects/rails/rspec_rails/Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
source "https://rubygems.org"
44

55
# added gems
6+
gem "logger"
67

78
gem "rspec-rails"
89
gem "simplecov", path: "../../.."

test_projects/rails/rspec_rails/config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require_relative "boot"
22

3+
require "logger"
34
require "rails"
45
# Pick the frameworks you want:
56
require "active_model/railtie"

0 commit comments

Comments
 (0)