Skip to content

Commit 9450060

Browse files
committed
formatting
1 parent 6835d65 commit 9450060

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

lib/rake/clean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def cleanup_files(file_names)
2929

3030
def cleanup(file_name, opts={})
3131
begin
32-
opts = {:verbose => Rake.application.options.trace}.merge(opts)
32+
opts = { verbose: Rake.application.options.trace }.merge(opts)
3333
rm_r file_name, opts
3434
rescue StandardError => ex
3535
puts "Failed to remove #{file_name}: #{ex}" unless file_already_gone?(file_name)

lib/rake/testtask.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def define
119119
status = "Command failed with status (#{status.exitstatus})"
120120
details = ": [ruby #{args}]"
121121
message =
122-
if Rake.application.options.trace or @verbose then
122+
if Rake.application.options.trace or @verbose
123123
status + details
124124
else
125125
status

test/test_rake_clean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def remove_undeletable_file
107107
Rake::Cleaner.cleanup(dir_name, verbose: false)
108108
end
109109

110-
def with_trace value
110+
def with_trace(value)
111111
old, Rake.application.options.trace =
112112
Rake.application.options.trace, value
113113

test/test_rake_task_with_arguments.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def test_actions_of_various_arity_are_ok_with_args
8080
assert_equal [:a, :b, :c, :d], notes
8181
end
8282

83-
8483
def test_actions_adore_keywords
8584
# A brutish trick to avoid parsing. Remove it once support for 1.9 and 2.0 is dropped
8685
# https://ci.appveyor.com/project/ruby/rake/build/1.0.301

test/test_rake_test_task.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def test_libs_equals_empty
8282
end
8383

8484
def test_pattern_equals
85-
['gl.rb', 'ob.rb'].each do |f|
85+
["gl.rb", "ob.rb"].each do |f|
8686
create_file(f)
8787
end
8888
tt = Rake::TestTask.new do |t|
@@ -92,7 +92,7 @@ def test_pattern_equals
9292
end
9393

9494
def test_pattern_equals_test_files_equals
95-
['gl.rb', 'ob.rb'].each do |f|
95+
["gl.rb", "ob.rb"].each do |f|
9696
create_file(f)
9797
end
9898
tt = Rake::TestTask.new do |t|
@@ -103,8 +103,8 @@ def test_pattern_equals_test_files_equals
103103
end
104104

105105
def test_run_code_direct
106-
globbed = ['test_gl.rb', 'test_ob.rb'].map { |f| File.join('test', f) }
107-
others = ['a.rb', 'b.rb'].map { |f| File.join('test', f) }
106+
globbed = ["test_gl.rb", "test_ob.rb"].map { |f| File.join("test", f) }
107+
others = ["a.rb", "b.rb"].map { |f| File.join("test", f) }
108108
(globbed + others).each do |f|
109109
create_file(f)
110110
end

0 commit comments

Comments
 (0)