Skip to content

Commit 4e38c65

Browse files
authored
Merge pull request #2605 from ViewComponent/dependabot/bundler/rake-13.4.0
Bump rake from 13.3.1 to 13.4.0
2 parents 0b92041 + a36a8dc commit 4e38c65

File tree

4 files changed

+21
-12
lines changed

4 files changed

+21
-12
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
bundle exec appraisal rails-${{ matrix.rails_version }} bundle --quiet
5959
MEASURE_COVERAGE=true bundle exec appraisal rails-${{ matrix.rails_version }} rake all_tests
6060
env:
61-
RAISE_ON_WARNING: 1
6261
RAILS_VERSION: ${{ matrix.rails_version }}
6362
RUBY_VERSION: ${{ matrix.ruby_version }}
6463
- name: Upload coverage results

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ GEM
272272
tsort (>= 0.2)
273273
zeitwerk (~> 2.6)
274274
rainbow (3.1.1)
275-
rake (13.3.1)
275+
rake (13.4.1)
276276
rdoc (7.2.0)
277277
erb
278278
psych (>= 4.0.0)
@@ -559,7 +559,7 @@ CHECKSUMS
559559
rails-html-sanitizer (1.7.0) sha256=28b145cceaf9cc214a9874feaa183c3acba036c9592b19886e0e45efc62b1e89
560560
railties (8.1.3) sha256=913eb0e0cb520aac687ffd74916bd726d48fa21f47833c6292576ef6a286de22
561561
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
562-
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
562+
rake (13.4.1) sha256=b4e81bd6a748308a6799619d824ec6a23cd1acd07d9ec41e5f2ebfb2294447c8
563563
rdoc (7.2.0) sha256=8650f76cd4009c3b54955eb5d7e3a075c60a57276766ebf36f9085e8c9f23192
564564
reactionview (0.3.0) sha256=3bd363863776827eaf85a9baf75370c1ca52a4b0dad87ba5d672e4abe76eb640
565565
redis (5.4.1) sha256=b5e675b57ad22b15c9bcc765d5ac26f60b675408af916d31527af9bd5a81faae

spec/spec_helper.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66

77
require "bundler/setup"
88

9+
module Warning
10+
PROJECT_ROOT = File.expand_path("..", __dir__).freeze
11+
12+
def self.warn(message)
13+
called_by = caller_locations(1, 1).first.path
14+
return super unless called_by&.start_with?(PROJECT_ROOT) && !called_by.start_with?("#{PROJECT_ROOT}/vendor")
15+
return if message.include?("Template format for")
16+
17+
raise "Warning: #{message}"
18+
end
19+
end
20+
921
# Configure Rails Environment
1022
ENV["RAILS_ENV"] = "test"
1123

test/test_helper.rb

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@
77
require "minitest/autorun"
88
require "minitest/mock"
99

10-
if ENV["RAISE_ON_WARNING"]
11-
module Warning
12-
PROJECT_ROOT = File.expand_path("..", __dir__).freeze
10+
module Warning
11+
PROJECT_ROOT = File.expand_path("..", __dir__).freeze
1312

14-
def self.warn(message)
15-
called_by = caller_locations(1, 1).first.path
16-
return super unless called_by&.start_with?(PROJECT_ROOT) && !called_by.start_with?("#{PROJECT_ROOT}/vendor")
17-
return super if message.include?("Template format for")
13+
def self.warn(message)
14+
called_by = caller_locations(1, 1).first.path
15+
return super unless called_by&.start_with?(PROJECT_ROOT) && !called_by.start_with?("#{PROJECT_ROOT}/vendor")
16+
return if message.include?("Template format for")
1817

19-
raise "Warning: #{message}"
20-
end
18+
raise "Warning: #{message}"
2119
end
2220
end
2321

0 commit comments

Comments
 (0)