-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #938 from cucumber/unify-rubocop
Unify RuboCop configuration with other Cucumber projects
- Loading branch information
Showing
148 changed files
with
1,803 additions
and
1,831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
source "https://rubygems.org" | ||
source 'https://rubygems.org' | ||
|
||
# Use dependencies from gemspec | ||
gemspec | ||
|
||
# Load local Gemfile | ||
if File.file? File.expand_path("Gemfile.local", __dir__) | ||
load File.expand_path("Gemfile.local", __dir__) | ||
if File.file? File.expand_path('Gemfile.local', __dir__) | ||
load File.expand_path('Gemfile.local', __dir__) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
# frozen_string_literal: true | ||
|
||
require_relative "lib/aruba/version" | ||
require_relative 'lib/aruba/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "aruba" | ||
spec.name = 'aruba' | ||
spec.version = Aruba::VERSION | ||
spec.author = "Aslak Hellesøy, Matt Wynne and other Aruba Contributors" | ||
spec.author = 'Aslak Hellesøy, Matt Wynne and other Aruba Contributors' | ||
spec.description = <<~TEXT | ||
Extension for popular TDD and BDD frameworks like "Cucumber", "RSpec" and "Minitest", | ||
to make testing command line applications meaningful, easy and fun. | ||
TEXT | ||
spec.summary = "aruba-#{spec.version}" | ||
spec.license = "MIT" | ||
spec.email = "[email protected]" | ||
spec.homepage = "https://github.com/cucumber/aruba" | ||
spec.license = 'MIT' | ||
spec.email = '[email protected]' | ||
spec.homepage = 'https://github.com/cucumber/aruba' | ||
|
||
spec.metadata = { | ||
"bug_tracker_uri" => "https://github.com/cucumber/aruba/issues", | ||
"changelog_uri" => "https://www.rubydoc.info/gems/aruba/file/CHANGELOG.md", | ||
"documentation_uri" => "https://www.rubydoc.info/gems/aruba", | ||
"homepage_uri" => spec.homepage, | ||
"source_code_uri" => "https://github.com/cucumber/aruba" | ||
'bug_tracker_uri' => 'https://github.com/cucumber/aruba/issues', | ||
'changelog_uri' => 'https://www.rubydoc.info/gems/aruba/file/CHANGELOG.md', | ||
'documentation_uri' => 'https://www.rubydoc.info/gems/aruba', | ||
'homepage_uri' => spec.homepage, | ||
'source_code_uri' => 'https://github.com/cucumber/aruba' | ||
} | ||
|
||
spec.add_dependency "bundler", [">= 1.17", "< 3.0"] | ||
spec.add_dependency "contracts", [">= 0.16.0", "< 0.18.0"] | ||
spec.add_dependency "cucumber", ">= 8.0", "< 10.0" | ||
spec.add_dependency "rspec-expectations", "~> 3.4" | ||
spec.add_dependency "thor", "~> 1.0" | ||
|
||
spec.add_development_dependency "appraisal", "~> 2.4" | ||
spec.add_development_dependency "json", "~> 2.1" | ||
spec.add_development_dependency "kramdown", "~> 2.1" | ||
spec.add_development_dependency "minitest", "~> 5.10" | ||
spec.add_development_dependency "pry", [">= 0.13.0", "< 0.15.0"] | ||
spec.add_development_dependency "rake", [">= 12.0", "< 14.0"] | ||
spec.add_development_dependency "rake-manifest", "~> 0.2.0" | ||
spec.add_development_dependency "rspec", "~> 3.11" | ||
spec.add_development_dependency "rubocop", "~> 1.62" | ||
spec.add_development_dependency "rubocop-packaging", "~> 0.5.2" | ||
spec.add_development_dependency "rubocop-performance", "~> 1.21" | ||
spec.add_development_dependency "rubocop-rspec", "~> 3.0" | ||
spec.add_development_dependency "simplecov", ">= 0.18.0", "< 0.23.0" | ||
|
||
spec.required_ruby_version = ">= 3.0.0" | ||
|
||
spec.files = File.readlines("Manifest.txt", chomp: true) | ||
|
||
spec.executables = ["aruba"] | ||
spec.rdoc_options = ["--charset", "UTF-8", "--main", "README.md"] | ||
spec.extra_rdoc_files = ["CHANGELOG.md", "CONTRIBUTING.md", "README.md", "LICENSE"] | ||
spec.bindir = "exe" | ||
spec.require_paths = ["lib"] | ||
spec.add_dependency 'bundler', ['>= 1.17', '< 3.0'] | ||
spec.add_dependency 'contracts', ['>= 0.16.0', '< 0.18.0'] | ||
spec.add_dependency 'cucumber', '>= 8.0', '< 10.0' | ||
spec.add_dependency 'rspec-expectations', '~> 3.4' | ||
spec.add_dependency 'thor', '~> 1.0' | ||
|
||
spec.add_development_dependency 'appraisal', '~> 2.4' | ||
spec.add_development_dependency 'json', '~> 2.1' | ||
spec.add_development_dependency 'kramdown', '~> 2.1' | ||
spec.add_development_dependency 'minitest', '~> 5.10' | ||
spec.add_development_dependency 'pry', ['>= 0.13.0', '< 0.15.0'] | ||
spec.add_development_dependency 'rake', ['>= 12.0', '< 14.0'] | ||
spec.add_development_dependency 'rake-manifest', '~> 0.2.0' | ||
spec.add_development_dependency 'rspec', '~> 3.11' | ||
spec.add_development_dependency 'rubocop', '~> 1.62' | ||
spec.add_development_dependency 'rubocop-packaging', '~> 0.5.2' | ||
spec.add_development_dependency 'rubocop-performance', '~> 1.21' | ||
spec.add_development_dependency 'rubocop-rspec', '~> 3.0' | ||
spec.add_development_dependency 'simplecov', '>= 0.18.0', '< 0.23.0' | ||
|
||
spec.required_ruby_version = '>= 3.0.0' | ||
|
||
spec.files = File.readlines('Manifest.txt', chomp: true) | ||
|
||
spec.executables = ['aruba'] | ||
spec.rdoc_options = ['--charset', 'UTF-8', '--main', 'README.md'] | ||
spec.extra_rdoc_files = ['CHANGELOG.md', 'CONTRIBUTING.md', 'README.md', 'LICENSE'] | ||
spec.bindir = 'exe' | ||
spec.require_paths = ['lib'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH.unshift File.expand_path("../lib", __dir__) | ||
$LOAD_PATH.unshift File.expand_path('../lib', __dir__) | ||
|
||
require "aruba/console" | ||
require 'aruba/console' | ||
|
||
Aruba::Console.new.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
$LOAD_PATH << File.expand_path("../lib", __dir__) | ||
$LOAD_PATH << File.expand_path('../lib', __dir__) | ||
|
||
require "aruba/cli" | ||
require 'aruba/cli' | ||
|
||
Aruba::Cli.start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,65 @@ | ||
# frozen_string_literal: true | ||
|
||
require "cucumber/platform" | ||
require 'cucumber/platform' | ||
|
||
Before "@requires-python" do | ||
next unless Aruba.platform.which("python").nil? | ||
Before '@requires-python' do | ||
next unless Aruba.platform.which('python').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-zsh" do | ||
next unless Aruba.platform.which("zsh").nil? | ||
Before '@requires-zsh' do | ||
next unless Aruba.platform.which('zsh').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-java" do | ||
next unless Aruba.platform.which("javac").nil? | ||
Before '@requires-java' do | ||
next unless Aruba.platform.which('javac').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-perl" do | ||
next unless Aruba.platform.which("perl").nil? | ||
Before '@requires-perl' do | ||
next unless Aruba.platform.which('perl').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-ruby" do | ||
next unless Aruba.platform.which("ruby").nil? | ||
Before '@requires-ruby' do | ||
next unless Aruba.platform.which('ruby').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-posix-standard-tools" do | ||
next unless Aruba.platform.which("printf").nil? | ||
Before '@requires-posix-standard-tools' do | ||
next unless Aruba.platform.which('printf').nil? | ||
|
||
skip_this_scenario | ||
end | ||
|
||
Before "@requires-ruby-platform-java" do | ||
Before '@requires-ruby-platform-java' do | ||
skip_this_scenario unless Cucumber::JRUBY | ||
end | ||
|
||
Before "@unsupported-on-platform-java" do | ||
Before '@unsupported-on-platform-java' do | ||
skip_this_scenario if Cucumber::JRUBY | ||
end | ||
|
||
Before "@unsupported-on-platform-windows" do | ||
Before '@unsupported-on-platform-windows' do | ||
skip_this_scenario if Cucumber::WINDOWS | ||
end | ||
|
||
Before "@requires-readline" do | ||
require "readline" | ||
Before '@requires-readline' do | ||
require 'readline' | ||
rescue LoadError | ||
skip_this_scenario | ||
end | ||
|
||
Before "@unsupported-on-platform-unix" do | ||
Before '@unsupported-on-platform-unix' do | ||
skip_this_scenario unless Cucumber::WINDOWS | ||
end | ||
|
||
Before "@unsupported-on-platform-mac" do | ||
Before '@unsupported-on-platform-mac' do | ||
skip_this_scenario if Cucumber::OS_X | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
require "aruba/cucumber" | ||
require 'aruba/cucumber' | ||
|
||
Aruba.configure do |config| | ||
config.exit_timeout = 120 | ||
config.io_wait_timeout = 2 | ||
config.activate_announcer_on_command_failure = [:stderr, :stdout, :command] | ||
config.activate_announcer_on_command_failure = %i[stderr stdout command] | ||
end |
Oops, something went wrong.