File tree 4 files changed +14
-1
lines changed
test_projects/rails/rspec_rails
4 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ source "https://rubygems.org"
8
8
# Uncomment this to use development version of html formatter from github
9
9
# gem "simplecov-html", github: "simplecov-ruby/simplecov-html"
10
10
11
- # std lib gems removed from std lib
11
+ # former std libs that have been ejected
12
12
gem "logger"
13
+ gem "ostruct"
13
14
14
15
gem "matrix"
15
16
Original file line number Diff line number Diff line change 93
93
nokogiri (1.18.1 )
94
94
mini_portile2 (~> 2.8.2 )
95
95
racc (~> 1.4 )
96
+ ostruct (0.6.1 )
96
97
parallel (1.26.3 )
97
98
parser (3.3.6.0 )
98
99
ast (~> 2.4.1 )
@@ -184,6 +185,7 @@ DEPENDENCIES
184
185
logger
185
186
matrix
186
187
minitest
188
+ ostruct
187
189
pry
188
190
rackup
189
191
rake
Original file line number Diff line number Diff line change 3
3
source "https://rubygems.org"
4
4
5
5
# added gems
6
+ # former std libs that have been ejected
7
+ gem "logger"
8
+ gem "ostruct"
6
9
7
10
gem "rspec-rails"
8
11
gem "simplecov" , path : "../../.."
Original file line number Diff line number Diff line change 1
1
ENV [ 'BUNDLE_GEMFILE' ] ||= File . expand_path ( '../Gemfile' , __dir__ )
2
2
3
3
require "bundler/setup" # Set up gems listed in the Gemfile.
4
+
5
+ # Previously some gems masked a bug in Rails v6 and v7 where `logger` was not required,
6
+ # plugging the hole by requiring it themselves.
7
+ # Because this app is pinned to Rails v6.1, we must require logger manually.
8
+ # In order to not be reliant on other libraries to fix the bug in Rails for us, we do it too.
9
+ # See: https://stackoverflow.com/questions/79360526/uninitialized-constant-activesupportloggerthreadsafelevellogger-nameerror
10
+ require "logger"
You can’t perform that action at this time.
0 commit comments