Skip to content
This repository was archived by the owner on Dec 24, 2021. It is now read-only.

Commit 7f3d55b

Browse files
Consistent spelling for Rake output
1 parent a8b8b16 commit 7f3d55b

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ means we will never make a backwards-incompatible change within a major version
77

88
- Adds Simplecov for measuring test coverage
99
- Increases test coverage
10+
- [BUG] Spelling inconsistencies (`Pass` -> `Passed`, `Fail` -> `Failed`, `Foodcritic` -> `FoodCritic`)
1011

1112
## v1.3.2 (2017-06-08)
1213

lib/rordan_gramsay/chef_tasks/lint/foodcritic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace :lint do
66
# Checks cookbook files against Foodcritic style guide
77
task :foodcritic do
8-
puts Paint['Inspecting files with Foodcritic', :yellow, :bold]
8+
puts Paint['Inspecting files with FoodCritic', :yellow, :bold]
99

1010
task_obj = RordanGramsay::Lint::Foodcritic.new(
1111
fail_tags: ['any'],

lib/rordan_gramsay/lint/foodcritic.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def files
4646
def call
4747
@file_list.each do |file|
4848
result = if file.rules.empty?
49-
Paint['Pass', :green, :bold]
49+
Paint['Passed', :green, :bold]
5050
elsif file.failed?
51-
Paint['Fail', :red, :bold]
51+
Paint['Failed', :red, :bold]
5252
else
5353
# Passes with warnings
54-
Paint['Pass', :yellow, :bold]
54+
Paint['Passed', :yellow, :bold]
5555
end
5656

5757
$stdout.puts Paint % [' %{filename} : %{result}', filename: Paint[nice_filename(file.name), :white, :bold], result: result]

lib/rordan_gramsay/lint/rubocop.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def files
4848
def call
4949
@file_list.each do |file|
5050
result = if file.rules.empty?
51-
Paint['Pass', :green, :bold]
51+
Paint['Passed', :green, :bold]
5252
elsif file.failed?
53-
Paint['Fail', :red, :bold]
53+
Paint['Failed', :red, :bold]
5454
else
5555
# Passes with warnings
56-
Paint['Pass', :yellow, :bold]
56+
Paint['Passed', :yellow, :bold]
5757
end
5858

5959
$stdout.puts Paint % [' %{filename} : %{result}', filename: Paint[nice_filename(file.name), :white, :bold], result: result]

0 commit comments

Comments
 (0)