File tree 4 files changed +4
-4
lines changed
lib/bundler/audit/cli/formats
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ def bundle_title(result)
101
101
102
102
def advisory_solution ( advisory )
103
103
unless advisory . patched_versions . empty?
104
- "upgrade to #{ advisory . patched_versions . join ( ', ' ) } "
104
+ "upgrade to #{ advisory . patched_versions . join ( ' or ' ) } "
105
105
else
106
106
"remove or disable this gem until a patch is available!"
107
107
end
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ def print_advisory(gem, advisory)
105
105
106
106
unless advisory . patched_versions . empty?
107
107
say "Solution: upgrade to " , :red
108
- say advisory . patched_versions . join ( ', ' )
108
+ say advisory . patched_versions . join ( " or " )
109
109
else
110
110
say "Solution: " , :red
111
111
say "remove or disable this gem until a patch is available!" , [ :red , :bold ]
Original file line number Diff line number Diff line change 241
241
242
242
context "when Advisory#patched_versions is not empty" do
243
243
it 'must print "Solution: upgrade to ..."' do
244
- expect ( output ) . to include ( "Solution: upgrade to #{ CGI . escapeHTML ( advisory . patched_versions . join ( ', ' ) ) } " )
244
+ expect ( output ) . to include ( "Solution: upgrade to #{ CGI . escapeHTML ( advisory . patched_versions . join ( ' or ' ) ) } " )
245
245
end
246
246
end
247
247
Original file line number Diff line number Diff line change 230
230
231
231
context "when Advisory#patched_versions is not empty" do
232
232
it 'must print "Solution: upgrade to ..."' do
233
- expect ( output_lines ) . to include ( "Solution: upgrade to #{ advisory . patched_versions . join ( ', ' ) } " )
233
+ expect ( output_lines ) . to include ( "Solution: upgrade to #{ advisory . patched_versions . join ( ' or ' ) } " )
234
234
end
235
235
end
236
236
You can’t perform that action at this time.
0 commit comments