Skip to content

Commit c9666a0

Browse files
committed
bump version
1 parent 25e0a48 commit c9666a0

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/code_ownership/private/for_file_output_builder.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def build_verbose
4747
{
4848
team_name: result[:team_name],
4949
team_yml: result[:team_config_yml],
50-
reasons: result[:reasons]
50+
description: result[:reasons]
5151
}
5252
end
5353

@@ -68,15 +68,15 @@ def build_terse
6868
sig { params(result_hash: T::Hash[Symbol, T.untyped]).returns(String) }
6969
def build_message_for(result_hash)
7070
messages = ["Team: #{result_hash[:team_name]}", "Team YML: #{result_hash[:team_yml]}"]
71-
reasons_list = T.let(Array(result_hash[:reasons]), T::Array[String])
72-
messages << build_reasons_message(reasons_list) unless reasons_list.empty?
71+
description_list = T.let(Array(result_hash[:description]), T::Array[String])
72+
messages << build_description_message(description_list) unless description_list.empty?
7373
messages.last << "\n"
7474
messages.join("\n")
7575
end
7676

7777
sig { params(reasons: T::Array[String]).returns(String) }
78-
def build_reasons_message(reasons)
79-
"Reasons:\n- #{reasons.join("\n-")}"
78+
def build_description_message(reasons)
79+
"Description:\n- #{reasons.join("\n-")}"
8080
end
8181
end
8282
end

lib/code_ownership/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module CodeOwnership
4-
VERSION = '2.0.0-1'
4+
VERSION = '2.0.0-2'
55
end

spec/lib/code_ownership/cli_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def initialize
183183
expect(CodeOwnership::Cli).to receive(:puts).with(<<~MSG)
184184
Team: My Team
185185
Team YML: config/teams/my_team.yml
186-
Reasons:
186+
Description:
187187
- Owner specified in Team YML as an owned_glob `app/**/*.rb`
188188
MSG
189189
subject
@@ -220,17 +220,17 @@ def initialize
220220
subject
221221
end
222222

223-
context 'when run with multiple files' do
223+
context 'when run with --verbose' do
224224
let(:argv) { ['for_file', '--json', '--verbose', 'app/services/my_file.rb'] }
225225
it 'outputs JSONified information to the console' do
226226
json = {
227227
team_name: 'My Team',
228228
team_yml: 'config/teams/my_team.yml',
229-
reasons: ['Owner specified in Team YML as an owned_glob `app/**/*.rb`']
229+
description: ['Owner specified in Team YML as an owned_glob `app/**/*.rb`']
230230
}
231231
expect(CodeOwnership::Cli).to receive(:puts).with(json.to_json)
232232
subject
233-
end
233+
end
234234
end
235235
end
236236

0 commit comments

Comments
 (0)