Skip to content

Commit

Permalink
Merge pull request #827 from cucumber/dependabot/bundler/rubocop-tw-1…
Browse files Browse the repository at this point in the history
….18.0

Update rubocop requirement from ~> 1.17.0 to ~> 1.18.0
  • Loading branch information
mvz committed Jun 30, 2021
2 parents f265905 + 651a45b commit d3b0df9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Cucumber::Rake::Task.new do |t|
end

Cucumber::Rake::Task.new("cucumber:wip", "Run Cucumber features "\
'which are "WORK IN PROGRESS" and '\
"are allowed to fail") do |t|
'which are "WORK IN PROGRESS" and '\
"are allowed to fail") do |t|
t.cucumber_opts = %w(--format progress)
t.profile = "wip"
end
Expand Down
2 changes: 1 addition & 1 deletion aruba.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake", [">= 12.0", "< 14.0"]
spec.add_development_dependency "rake-manifest", "~> 0.2.0"
spec.add_development_dependency "rspec", "~> 3.10.0"
spec.add_development_dependency "rubocop", "~> 1.17.0"
spec.add_development_dependency "rubocop", "~> 1.18.0"
spec.add_development_dependency "rubocop-packaging", "~> 0.5.0"
spec.add_development_dependency "rubocop-performance", "~> 1.11.3"
spec.add_development_dependency "rubocop-rspec", "~> 2.4.0"
Expand Down
7 changes: 4 additions & 3 deletions lib/aruba/api/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,17 @@ def cd(dir, &block)
def expand_path(file_name, dir_string = nil)
unless file_name.is_a?(String) && !file_name.empty?
message = "Filename #{file_name} needs to be a string." \
" It cannot be nil or empty either. "\
"Please use `expand_path('.')` if you want the current directory to be expanded."
" It cannot be nil or empty either."\
" Please use `expand_path('.')` if you want" \
" the current directory to be expanded."

raise ArgumentError, message
end

unless Aruba.platform.directory? File.join(aruba.config.root_directory,
aruba.config.working_directory)
raise "Aruba's working directory does not exist." \
" Maybe you forgot to run `setup_aruba` before using its API."
" Maybe you forgot to run `setup_aruba` before using its API."
end

prefix = file_name[0]
Expand Down
2 changes: 1 addition & 1 deletion lib/aruba/event_bus/name_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def transform(event_id)
rescue StandardError => e
types = @resolvers.map(&:supports).flatten.join(", ")
message = "Transforming \"#{event_id}\" into an event class failed." \
" Supported types are: #{types}. #{e.message}."
" Supported types are: #{types}. #{e.message}."
raise EventNameResolveError, message, cause: e
end
end
Expand Down

0 comments on commit d3b0df9

Please sign in to comment.