Commit 5424a5c837a785c963209d9d0aa05eb1027c09f5

Authored by Laust Rud Jacobsen
1 parent c733db0c
Exists in master and in 1 other branch production

Rubocop: a fail without an exception class is a RuntimeError

Showing 2 changed files with 2 additions and 8 deletions   Show diff stats
.rubocop_todo.yml
@@ -363,12 +363,6 @@ Style/Proc: @@ -363,12 +363,6 @@ Style/Proc:
363 Style/RaiseArgs: 363 Style/RaiseArgs:
364 Enabled: false 364 Enabled: false
365 365
366 -# Offense count: 1  
367 -# Cop supports --auto-correct.  
368 -Style/RedundantException:  
369 - Exclude:  
370 - - 'Gemfile'  
371 -  
372 # Offense count: 13 366 # Offense count: 13
373 # Cop supports --auto-correct. 367 # Cop supports --auto-correct.
374 Style/RedundantSelf: 368 Style/RedundantSelf:
@@ -8,8 +8,8 @@ detected_ruby_version = Gem::Version.new(RUBY_VERSION.dup) @@ -8,8 +8,8 @@ detected_ruby_version = Gem::Version.new(RUBY_VERSION.dup)
8 required_ruby_version = Gem::Version.new('2.1.0') # minimum supported version 8 required_ruby_version = Gem::Version.new('2.1.0') # minimum supported version
9 9
10 if detected_ruby_version < required_ruby_version 10 if detected_ruby_version < required_ruby_version
11 - fail RuntimeError, "RUBY_VERSION must be at least #{required_ruby_version}" \  
12 - ", detected RUBY_VERSION #{RUBY_VERSION}" 11 + fail "RUBY_VERSION must be at least #{required_ruby_version}, " \
  12 + "detected RUBY_VERSION #{RUBY_VERSION}"
13 end 13 end
14 14
15 gem 'actionmailer', RAILS_VERSION 15 gem 'actionmailer', RAILS_VERSION