Skip to content

Commit ebd3152

Browse files
hsbtdeivid-rodriguez
authored andcommitted
bin/rubocop -A --only Style/StderrPuts
1 parent fc13673 commit ebd3152

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ Performance/StringReplacement:
137137
Security/Open:
138138
Enabled: true
139139

140+
Style/StderrPuts:
141+
Enabled: true
142+
140143
Style/AndOr:
141144
Enabled: true
142145
EnforcedStyle: always

.rubocop_bundler.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,6 @@ Style/SingleLineMethods:
791791
Style/StabbyLambdaParentheses:
792792
Enabled: true
793793

794-
Style/StderrPuts:
795-
Enabled: true
796-
797794
Style/StringLiterals:
798795
Enabled: true
799796
EnforcedStyle: double_quotes

exe/update_rubygems

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
require "rubygems"
99

1010
if ARGV.include?("-h") || ARGV.include?("--help")
11-
$stderr.puts "rubygems_update [options]"
12-
$stderr.puts
13-
$stderr.puts "This will install the latest version of RubyGems."
14-
$stderr.puts
15-
$stderr.puts "\t--version=X.Y\tUpdate RubyGems from the X.Y version."
11+
warn "rubygems_update [options]"
12+
warn ""
13+
warn "This will install the latest version of RubyGems."
14+
warn ""
15+
warn "\t--version=X.Y\tUpdate RubyGems from the X.Y version."
1616
exit
1717
end
1818

0 commit comments

Comments
 (0)