aruba 1.0.2 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +54 -2
- data/CONTRIBUTING.md +18 -22
- data/README.md +7 -8
- data/exe/aruba +2 -2
- data/lib/aruba.rb +1 -1
- data/lib/aruba/api.rb +11 -12
- data/lib/aruba/api/bundler.rb +19 -3
- data/lib/aruba/api/commands.rb +11 -11
- data/lib/aruba/api/core.rb +21 -21
- data/lib/aruba/api/environment.rb +2 -2
- data/lib/aruba/api/filesystem.rb +41 -15
- data/lib/aruba/api/text.rb +4 -4
- data/lib/aruba/aruba_path.rb +3 -4
- data/lib/aruba/basic_configuration.rb +51 -69
- data/lib/aruba/cli.rb +7 -7
- data/lib/aruba/command.rb +4 -4
- data/lib/aruba/config/jruby.rb +9 -9
- data/lib/aruba/config_wrapper.rb +2 -2
- data/lib/aruba/configuration.rb +36 -46
- data/lib/aruba/console.rb +11 -11
- data/lib/aruba/console/help.rb +7 -7
- data/lib/aruba/contracts/absolute_path.rb +1 -1
- data/lib/aruba/contracts/enum.rb +1 -1
- data/lib/aruba/contracts/is_power_of_two.rb +1 -1
- data/lib/aruba/contracts/relative_path.rb +1 -1
- data/lib/aruba/cucumber.rb +7 -7
- data/lib/aruba/cucumber/command.rb +41 -49
- data/lib/aruba/cucumber/environment.rb +7 -7
- data/lib/aruba/cucumber/file.rb +7 -3
- data/lib/aruba/cucumber/hooks.rb +29 -29
- data/lib/aruba/cucumber/testing_frameworks.rb +18 -18
- data/lib/aruba/event_bus.rb +4 -4
- data/lib/aruba/event_bus/name_resolver.rb +4 -4
- data/lib/aruba/file_size.rb +1 -1
- data/lib/aruba/generators/script_file.rb +2 -2
- data/lib/aruba/in_config_wrapper.rb +1 -1
- data/lib/aruba/initializer.rb +10 -10
- data/lib/aruba/matchers/base/base_matcher.rb +1 -1
- data/lib/aruba/matchers/base/message_indenter.rb +2 -2
- data/lib/aruba/matchers/base/object_formatter.rb +2 -2
- data/lib/aruba/matchers/collection.rb +1 -1
- data/lib/aruba/matchers/collection/all.rb +1 -1
- data/lib/aruba/matchers/collection/include_an_object.rb +2 -2
- data/lib/aruba/matchers/command.rb +1 -1
- data/lib/aruba/matchers/command/be_successfully_executed.rb +4 -4
- data/lib/aruba/matchers/command/have_finished_in_time.rb +1 -1
- data/lib/aruba/matchers/command/have_output.rb +1 -1
- data/lib/aruba/matchers/directory.rb +1 -1
- data/lib/aruba/matchers/directory/be_an_existing_directory.rb +2 -2
- data/lib/aruba/matchers/directory/have_sub_directory.rb +3 -3
- data/lib/aruba/matchers/environment.rb +1 -1
- data/lib/aruba/matchers/file.rb +1 -1
- data/lib/aruba/matchers/file/be_a_command_found_in_path.rb +1 -1
- data/lib/aruba/matchers/file/be_an_existing_executable.rb +2 -2
- data/lib/aruba/matchers/file/be_an_existing_file.rb +2 -2
- data/lib/aruba/matchers/file/have_file_content.rb +1 -1
- data/lib/aruba/matchers/file/have_file_size.rb +1 -1
- data/lib/aruba/matchers/file/have_same_file_content.rb +2 -2
- data/lib/aruba/matchers/path.rb +1 -1
- data/lib/aruba/matchers/path/a_path_matching_pattern.rb +1 -1
- data/lib/aruba/matchers/path/be_an_absolute_path.rb +1 -1
- data/lib/aruba/matchers/path/be_an_existing_path.rb +1 -1
- data/lib/aruba/matchers/path/have_permissions.rb +5 -4
- data/lib/aruba/matchers/string.rb +1 -1
- data/lib/aruba/matchers/string/include_output_string.rb +1 -1
- data/lib/aruba/matchers/string/match_output_string.rb +1 -1
- data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
- data/lib/aruba/platform.rb +2 -2
- data/lib/aruba/platforms/announcer.rb +15 -15
- data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +1 -1
- data/lib/aruba/platforms/aruba_logger.rb +11 -10
- data/lib/aruba/platforms/command_monitor.rb +6 -8
- data/lib/aruba/platforms/determine_disk_usage.rb +2 -4
- data/lib/aruba/platforms/filesystem_status.rb +20 -14
- data/lib/aruba/platforms/simple_table.rb +1 -1
- data/lib/aruba/platforms/unix_command_string.rb +2 -2
- data/lib/aruba/platforms/unix_environment_variables.rb +1 -1
- data/lib/aruba/platforms/unix_platform.rb +23 -23
- data/lib/aruba/platforms/unix_which.rb +1 -1
- data/lib/aruba/platforms/windows_command_string.rb +2 -2
- data/lib/aruba/platforms/windows_environment_variables.rb +1 -1
- data/lib/aruba/platforms/windows_platform.rb +7 -7
- data/lib/aruba/platforms/windows_which.rb +5 -5
- data/lib/aruba/processes/basic_process.rb +4 -4
- data/lib/aruba/processes/debug_process.rb +5 -5
- data/lib/aruba/processes/in_process.rb +8 -8
- data/lib/aruba/processes/spawn_process.rb +18 -23
- data/lib/aruba/rspec.rb +6 -6
- data/lib/aruba/runtime.rb +6 -6
- data/lib/aruba/setup.rb +3 -3
- data/lib/aruba/version.rb +1 -1
- metadata +103 -88
- data/.cucumberproignore +0 -3
- data/.document +0 -5
- data/.github/ISSUE_TEMPLATE.md +0 -48
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
- data/.gitignore +0 -38
- data/.rspec +0 -3
- data/.rubocop.yml +0 -52
- data/.rubocop_todo.yml +0 -216
- data/.simplecov +0 -36
- data/.travis.yml +0 -62
- data/.yardopts +0 -11
- data/Dockerfile +0 -67
- data/Gemfile +0 -14
- data/Rakefile +0 -82
- data/TODO.md +0 -13
- data/appveyor.yml +0 -28
- data/aruba.gemspec +0 -57
- data/bin/console +0 -7
- data/bin/test +0 -9
- data/config/.gitignore +0 -1
- data/cucumber.yml +0 -6
- data/docker-compose.yml +0 -26
- data/fixtures/cli-app/.gitignore +0 -9
- data/fixtures/cli-app/.rspec +0 -2
- data/fixtures/cli-app/README.md +0 -39
- data/fixtures/cli-app/Rakefile +0 -1
- data/fixtures/cli-app/bin/aruba-test-cli +0 -6
- data/fixtures/cli-app/cli-app.gemspec +0 -26
- data/fixtures/cli-app/features/support/aruba.rb +0 -1
- data/fixtures/cli-app/features/support/env.rb +0 -1
- data/fixtures/cli-app/lib/cli/app.rb +0 -9
- data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
- data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
- data/fixtures/cli-app/script/console +0 -14
- data/fixtures/cli-app/spec/spec_helper.rb +0 -8
- data/fixtures/cli-app/spec/support/aruba.rb +0 -1
- data/fixtures/copy/file.txt +0 -1
- data/fixtures/empty-app/.gitignore +0 -9
- data/fixtures/empty-app/.rspec +0 -2
- data/fixtures/empty-app/README.md +0 -24
- data/fixtures/empty-app/Rakefile +0 -1
- data/fixtures/empty-app/cli-app.gemspec +0 -26
- data/fixtures/empty-app/lib/cli/app.rb +0 -7
- data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
- data/fixtures/getting-started-app/.gitignore +0 -4
- data/fixtures/getting-started-app/Gemfile +0 -4
- data/fixtures/getting-started-app/README.md +0 -3
- data/fixtures/getting-started-app/features/support/env.rb +0 -1
- data/lib/aruba/extensions/string/strip.rb +0 -25
- data/lib/aruba/tasks/docker_helpers.rb +0 -156
data/.travis.yml
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
script: bundle exec rake test
|
3
|
-
cache: bundler
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
include:
|
7
|
-
- rvm: ruby-head
|
8
|
-
stage: test
|
9
|
-
os: linux
|
10
|
-
- rvm: ruby-head
|
11
|
-
os: osx
|
12
|
-
- rvm: 2.7
|
13
|
-
os: linux
|
14
|
-
- rvm: 2.7
|
15
|
-
os: osx
|
16
|
-
- rvm: 2.6
|
17
|
-
os: linux
|
18
|
-
- rvm: 2.6
|
19
|
-
os: osx
|
20
|
-
- rvm: 2.5
|
21
|
-
os: linux
|
22
|
-
- rvm: 2.5
|
23
|
-
os: osx
|
24
|
-
- rvm: 2.4
|
25
|
-
os: linux
|
26
|
-
- rvm: 2.4
|
27
|
-
os: osx
|
28
|
-
- rvm: 2.4.0
|
29
|
-
os: linux
|
30
|
-
- rvm: jruby-9.2
|
31
|
-
os: linux
|
32
|
-
- rvm: jruby-9.2
|
33
|
-
os: osx
|
34
|
-
script: bundle exec rake spec
|
35
|
-
- stage: lint
|
36
|
-
script: bundle exec rake lint
|
37
|
-
rvm: 2.6.3
|
38
|
-
os: linux
|
39
|
-
allow_failures:
|
40
|
-
- rvm: ruby-head
|
41
|
-
fast_finish: true
|
42
|
-
|
43
|
-
branches:
|
44
|
-
only:
|
45
|
-
- master
|
46
|
-
|
47
|
-
# notifications:
|
48
|
-
# slack: cucumberbdd:oQFVhzsx4R94KWmjlejAJYnM
|
49
|
-
env:
|
50
|
-
global:
|
51
|
-
- secure: l8uznA5K4K9mZ1krmP3lTMD8WcJ32qGxFOR3jubKHcOBSLB4xSzU2aIqjyJdO+rLzebkwamhJc8pGSIWOUDQYvFiX7splK+uEkbBJ5huAhXtLF4Qgl86bCWbEXYzN7rvn0DQfpJAovyFMNRMnfo70XhwqWzFsaYa7Z0YbqYsJE4=
|
52
|
-
- JAVA_OPTS="
|
53
|
-
--add-opens java.base/java.io=ALL-UNNAMED
|
54
|
-
--add-opens java.base/java.lang=ALL-UNNAMED
|
55
|
-
--add-opens java.base/java.util=ALL-UNNAMED
|
56
|
-
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
|
57
|
-
--add-opens java.base/java.security.cert=ALL-UNNAMED
|
58
|
-
--add-opens java.base/java.security=ALL-UNNAMED
|
59
|
-
--add-opens java.base/javax.crypto=ALL-UNNAMED
|
60
|
-
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
61
|
-
--add-opens java.base/java.nio.channels.spi=ALL-UNNAMED
|
62
|
-
--illegal-access=warn"
|
data/.yardopts
DELETED
data/Dockerfile
DELETED
@@ -1,67 +0,0 @@
|
|
1
|
-
FROM ubuntu:14.04
|
2
|
-
MAINTAINER Aruba Maintainers <cukes-devs@googlegroups.com>
|
3
|
-
|
4
|
-
# Packages needed to install RVM and run Bundler gem commands
|
5
|
-
RUN apt-get update -qq \
|
6
|
-
&& apt-get -y install ca-certificates curl git-core --no-install-recommends \
|
7
|
-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
|
8
|
-
|
9
|
-
# Create guest user early (before rvm) so uid:gid are 1000:000
|
10
|
-
RUN useradd -m -s /bin/bash guest
|
11
|
-
|
12
|
-
# Temporarily install RVM as root - just for requirements
|
13
|
-
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
|
14
|
-
&& curl -L get.rvm.io | bash -s stable \
|
15
|
-
&& bash -l -c 'rvm requirements 2.2.1' \
|
16
|
-
&& bash -l -c 'echo yes | rvm implode' \
|
17
|
-
|
18
|
-
# Fix locale
|
19
|
-
ENV DEBIAN_FRONTEND noninteractive
|
20
|
-
RUN dpkg-reconfigure locales && locale-gen en_US.UTF-8 && /usr/sbin/update-locale LANG=en_US.UTF-8 \
|
21
|
-
&& echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen
|
22
|
-
ENV LC_ALL C.UTF-8
|
23
|
-
ENV LANG C.UTF-8
|
24
|
-
ENV LANGUAGE C.UTF-8
|
25
|
-
|
26
|
-
# Zsh (just for the sake of a handful of Cucumber scenarios)
|
27
|
-
RUN apt-get update -qq \
|
28
|
-
&& apt-get -y install zsh --no-install-recommends \
|
29
|
-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
|
30
|
-
|
31
|
-
# Python (just for the sake of a handful of Cucumber scenarios)
|
32
|
-
RUN apt-get update -qq \
|
33
|
-
&& apt-get -y install python --no-install-recommends \
|
34
|
-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
|
35
|
-
|
36
|
-
# Java (for javac - also for just a few Cucumber scenarios)
|
37
|
-
RUN apt-get update -qq \
|
38
|
-
&& apt-get -y install openjdk-7-jdk --no-install-recommends \
|
39
|
-
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin
|
40
|
-
|
41
|
-
# Cache needed gems - for faster test reruns
|
42
|
-
ADD Gemfile Gemfile.lock aruba.gemspec /home/guest/cache/aruba/
|
43
|
-
ADD lib/aruba/version.rb /home/guest/cache/aruba/lib/aruba/version.rb
|
44
|
-
RUN chown -R guest:guest /home/guest/cache
|
45
|
-
|
46
|
-
USER guest
|
47
|
-
ENV HOME /home/guest
|
48
|
-
WORKDIR /home/guest
|
49
|
-
|
50
|
-
# Install RVM as guest
|
51
|
-
RUN gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
|
52
|
-
&& /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" \
|
53
|
-
&& curl -L get.rvm.io | bash -s stable \
|
54
|
-
&& /bin/bash -l -c "rvm install 2.3.0 && rvm cleanup all" \
|
55
|
-
&& /bin/bash -l -c "gem install bundler --no-ri --no-rdoc" \
|
56
|
-
&& echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.bashrc \
|
57
|
-
&& echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> ~/.zshrc
|
58
|
-
|
59
|
-
# Download and install aruba + dependencies
|
60
|
-
WORKDIR /home/guest/cache/aruba
|
61
|
-
RUN bash -l -c "bundle install"
|
62
|
-
|
63
|
-
# Default working directory
|
64
|
-
RUN mkdir -p /home/guest/aruba
|
65
|
-
WORKDIR /home/guest/aruba
|
66
|
-
|
67
|
-
CMD ["bundle exec rake test"]
|
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
# Use dependencies from gemspec
|
4
|
-
gemspec
|
5
|
-
|
6
|
-
# Load local Gemfile
|
7
|
-
if File.file? File.expand_path('Gemfile.local', __dir__)
|
8
|
-
load File.expand_path('Gemfile.local', __dir__)
|
9
|
-
end
|
10
|
-
|
11
|
-
unless RUBY_PLATFORM.include?('java')
|
12
|
-
gem 'byebug', '~> 11.0'
|
13
|
-
gem 'pry-byebug', '~> 3.4'
|
14
|
-
end
|
data/Rakefile
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
$LOAD_PATH << File.expand_path(__dir__)
|
2
|
-
|
3
|
-
require 'aruba/tasks/docker_helpers'
|
4
|
-
require 'aruba/platform'
|
5
|
-
|
6
|
-
require 'bundler'
|
7
|
-
Bundler.setup
|
8
|
-
|
9
|
-
task default: %w(spec cucumber cucumber:wip lint)
|
10
|
-
|
11
|
-
desc 'Run all linters.'
|
12
|
-
task lint: %w(lint:coding_guidelines lint:licenses)
|
13
|
-
|
14
|
-
desc 'Run the whole test suite.'
|
15
|
-
task test: %w(spec cucumber cucumber:wip)
|
16
|
-
|
17
|
-
require 'cucumber/rake/task'
|
18
|
-
require 'rspec/core/rake_task'
|
19
|
-
|
20
|
-
Cucumber::Rake::Task.new do |t|
|
21
|
-
t.cucumber_opts = %w(--format progress)
|
22
|
-
end
|
23
|
-
|
24
|
-
Cucumber::Rake::Task.new('cucumber:wip', 'Run Cucumber features '\
|
25
|
-
'which are "WORK IN PROGRESS" and '\
|
26
|
-
'are allowed to fail') do |t|
|
27
|
-
t.cucumber_opts = %w(--format progress)
|
28
|
-
t.profile = 'wip'
|
29
|
-
end
|
30
|
-
|
31
|
-
RSpec::Core::RakeTask.new
|
32
|
-
|
33
|
-
namespace :lint do
|
34
|
-
desc 'Lint our code with "rubocop"'
|
35
|
-
task :coding_guidelines do
|
36
|
-
sh 'bundle exec rubocop'
|
37
|
-
end
|
38
|
-
|
39
|
-
desc 'Check for relevant licenses in project'
|
40
|
-
task :licenses do
|
41
|
-
sh 'bundle exec license_finder'
|
42
|
-
end
|
43
|
-
|
44
|
-
require 'yard-junk/rake'
|
45
|
-
YardJunk::Rake.define_task
|
46
|
-
end
|
47
|
-
|
48
|
-
Bundler::GemHelper.install_tasks
|
49
|
-
|
50
|
-
namespace :docker do
|
51
|
-
desc 'Build docker image'
|
52
|
-
task :build, :cache, :version do |_, args|
|
53
|
-
args.with_defaults(version: 'latest')
|
54
|
-
args.with_defaults(cache: true)
|
55
|
-
|
56
|
-
docker_compose_file =
|
57
|
-
Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
|
58
|
-
docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
|
59
|
-
|
60
|
-
builder = Aruba::DockerBuildCommandLineBuilder.new(
|
61
|
-
docker_run_instance,
|
62
|
-
cache: args[:cache],
|
63
|
-
version: args[:version]
|
64
|
-
)
|
65
|
-
|
66
|
-
sh builder.to_cli
|
67
|
-
end
|
68
|
-
|
69
|
-
desc 'Run docker container'
|
70
|
-
task :run, :command do |_, args|
|
71
|
-
docker_compose_file =
|
72
|
-
Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
|
73
|
-
docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
|
74
|
-
|
75
|
-
builder = Aruba::DockerRunCommandLineBuilder.new(
|
76
|
-
docker_run_instance,
|
77
|
-
command: args[:command] || docker_run_instance.command
|
78
|
-
)
|
79
|
-
|
80
|
-
sh builder.to_cli
|
81
|
-
end
|
82
|
-
end
|
data/TODO.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
* Replace check filesystem permissons through a better rspec matcher
|
2
|
-
* Improve documentation for matchers in file
|
3
|
-
* Cleanup stdout/stderr in spawn process:
|
4
|
-
It should be enough to use 'open(@process.io.stdout).read' and 'open(@process.io.stderr).read'. There's no need to rewind them.
|
5
|
-
* Ensure that all processes are kill after cucumber is finished
|
6
|
-
* Add variation of check and stop of command if output contains
|
7
|
-
Add something like `(?: of last command)?`. If this is true, just check the last command.
|
8
|
-
* Use aruba.config.exit_timeout everywhere
|
9
|
-
* Fix problem with long running commands in background:
|
10
|
-
|
11
|
-
Since we need to stop all commands to access the status of the last command
|
12
|
-
stopped, we have problems with long running commands
|
13
|
-
|
data/appveyor.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
version: "{build}"
|
2
|
-
|
3
|
-
# This will build all PRs targeting matching branches.
|
4
|
-
# Without this, each PR builds twice -- once for the PR branch HEAD,
|
5
|
-
# and once for the merge commit that github creates for each mergeable PR.
|
6
|
-
branches:
|
7
|
-
only:
|
8
|
-
- master
|
9
|
-
|
10
|
-
# Disable normal Windows builds in favor of our test script.
|
11
|
-
build: off
|
12
|
-
|
13
|
-
install:
|
14
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
15
|
-
- ruby --version
|
16
|
-
- gem --version
|
17
|
-
- bundler --version
|
18
|
-
- bundle install
|
19
|
-
|
20
|
-
test_script:
|
21
|
-
- bundle exec rake spec --trace
|
22
|
-
|
23
|
-
environment:
|
24
|
-
matrix:
|
25
|
-
- ruby_version: '24'
|
26
|
-
- ruby_version: '25'
|
27
|
-
- ruby_version: '26'
|
28
|
-
# Note: ruby version 2.7 is not available as of 2019-12-31
|
data/aruba.gemspec
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
lib = ::File.expand_path('../lib', __FILE__)
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require 'aruba/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'aruba'
|
7
|
-
spec.version = Aruba::VERSION
|
8
|
-
spec.author = 'Aslak Hellesøy, Matt Wynne and other Aruba Contributors'
|
9
|
-
spec.description = <<~TEXT
|
10
|
-
Extension for popular TDD and BDD frameworks like "Cucumber", "RSpec" and "Minitest",
|
11
|
-
to make testing commandline applications meaningful, easy and fun.
|
12
|
-
TEXT
|
13
|
-
spec.summary = "aruba-#{spec.version}"
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.email = 'cukes@googlegroups.com'
|
16
|
-
spec.homepage = 'https://github.com/cucumber/aruba'
|
17
|
-
|
18
|
-
spec.metadata = {
|
19
|
-
'bug_tracker_uri' => 'https://github.com/cucumber/aruba/issues',
|
20
|
-
'changelog_uri' => 'https://www.rubydoc.info/gems/aruba/file/CHANGELOG.md',
|
21
|
-
'documentation_uri' => 'https://www.rubydoc.info/gems/aruba',
|
22
|
-
'homepage_uri' => spec.homepage,
|
23
|
-
'source_code_uri' => 'https://github.com/cucumber/aruba'
|
24
|
-
}
|
25
|
-
|
26
|
-
spec.add_runtime_dependency 'childprocess', ['>= 2.0', '< 5.0']
|
27
|
-
spec.add_runtime_dependency 'contracts', '~> 0.16.0'
|
28
|
-
spec.add_runtime_dependency 'cucumber', ['>= 2.4', '< 5.0']
|
29
|
-
spec.add_runtime_dependency 'ffi', '~> 1.9'
|
30
|
-
spec.add_runtime_dependency 'rspec-expectations', '~> 3.4'
|
31
|
-
spec.add_runtime_dependency 'thor', '~> 1.0'
|
32
|
-
|
33
|
-
spec.add_development_dependency 'json', '~> 2.1'
|
34
|
-
spec.add_development_dependency 'license_finder', '~> 6.0'
|
35
|
-
spec.add_development_dependency 'minitest', '~> 5.10'
|
36
|
-
spec.add_development_dependency 'pry-doc', '~> 1.0'
|
37
|
-
spec.add_development_dependency 'rake', '~> 13.0'
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.6'
|
39
|
-
spec.add_development_dependency 'rubocop', '~> 0.85'
|
40
|
-
spec.add_development_dependency 'rubocop-performance', '~> 1.5'
|
41
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.39'
|
42
|
-
spec.add_development_dependency 'simplecov', '~> 0.18.0'
|
43
|
-
spec.add_development_dependency 'yard-junk', '~> 0.0.7'
|
44
|
-
|
45
|
-
spec.rubygems_version = '>= 1.6.1'
|
46
|
-
spec.required_ruby_version = '>= 2.4'
|
47
|
-
|
48
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
49
|
-
f.match(%r{^(test|spec|features)/})
|
50
|
-
end
|
51
|
-
|
52
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
53
|
-
spec.rdoc_options = ['--charset', 'UTF-8', '--main', 'README.md']
|
54
|
-
spec.extra_rdoc_files = ['CHANGELOG.md', 'CONTRIBUTING.md', 'README.md', 'LICENSE']
|
55
|
-
spec.bindir = 'exe'
|
56
|
-
spec.require_paths = ['lib']
|
57
|
-
end
|
data/bin/console
DELETED
data/bin/test
DELETED
data/config/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
aruba-rvm.yml
|
data/cucumber.yml
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
<%
|
2
|
-
std_opts = "--format pretty --color --exclude features/fixtures --require features --tags 'not @unsupported-on'"
|
3
|
-
ignore_opts = "--tags 'not @ignore'"
|
4
|
-
%>
|
5
|
-
default: <%= std_opts %> --tags 'not @wip' <%= ignore_opts %>
|
6
|
-
wip: <%= std_opts %> --wip --tags @wip:3 <%= ignore_opts %>
|
data/docker-compose.yml
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
# To build the base image (official Aruba base for this), run:
|
2
|
-
#
|
3
|
-
# $ docker-compose build base
|
4
|
-
#
|
5
|
-
# To run the tests, run:
|
6
|
-
#
|
7
|
-
# $ docker-compose run tests
|
8
|
-
#
|
9
|
-
|
10
|
-
version: '2'
|
11
|
-
services:
|
12
|
-
base:
|
13
|
-
image: 'cucumber/aruba'
|
14
|
-
container_name: 'cucumber-aruba-1'
|
15
|
-
build:
|
16
|
-
context: .
|
17
|
-
dockerfile: Dockerfile
|
18
|
-
args:
|
19
|
-
http_proxy: "${http_proxy}"
|
20
|
-
https_proxy: "${https_proxy}"
|
21
|
-
HTTP_PROXY: "${HTTP_PROXY}"
|
22
|
-
HTTPS_PROXY: "${HTTPS_PROXY}"
|
23
|
-
working_dir: /home/guest/aruba
|
24
|
-
command: /bin/bash -l -c "bundle exec rake test"
|
25
|
-
volumes:
|
26
|
-
- .:/home/guest/aruba
|
data/fixtures/cli-app/.gitignore
DELETED
data/fixtures/cli-app/.rspec
DELETED
data/fixtures/cli-app/README.md
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# Simple Cli App
|
2
|
-
|
3
|
-
This is a simple test cli app
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Add this line to your application's Gemfile:
|
8
|
-
|
9
|
-
```ruby
|
10
|
-
gem 'cli-app'
|
11
|
-
```
|
12
|
-
|
13
|
-
And then execute:
|
14
|
-
|
15
|
-
$ bundle
|
16
|
-
|
17
|
-
Or install it yourself as:
|
18
|
-
|
19
|
-
$ gem install cli-app
|
20
|
-
|
21
|
-
## Usage
|
22
|
-
|
23
|
-
Place files in `lib/cli/app/`. They are loaded automatically. If you need a
|
24
|
-
specific load order, use `require` in your files.
|
25
|
-
|
26
|
-
### CLI
|
27
|
-
|
28
|
-
```
|
29
|
-
cli
|
30
|
-
```
|
31
|
-
|
32
|
-
### Library
|
33
|
-
|
34
|
-
You can use `script/console` to load your library.
|
35
|
-
|
36
|
-
### Fixture
|
37
|
-
|
38
|
-
This fixture includes files for `cucumber`- and `rspec`-integration.
|
39
|
-
|