aruba 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +72 -1
  3. data/CONTRIBUTING.md +11 -31
  4. data/README.md +1 -2
  5. data/exe/aruba +2 -2
  6. data/lib/aruba.rb +1 -1
  7. data/lib/aruba/api.rb +11 -12
  8. data/lib/aruba/api/bundler.rb +18 -3
  9. data/lib/aruba/api/commands.rb +19 -22
  10. data/lib/aruba/api/core.rb +65 -48
  11. data/lib/aruba/api/environment.rb +13 -5
  12. data/lib/aruba/api/filesystem.rb +69 -39
  13. data/lib/aruba/api/text.rb +15 -3
  14. data/lib/aruba/aruba_path.rb +3 -4
  15. data/lib/aruba/basic_configuration.rb +52 -71
  16. data/lib/aruba/basic_configuration/option.rb +2 -2
  17. data/lib/aruba/cli.rb +9 -6
  18. data/lib/aruba/command.rb +4 -4
  19. data/lib/aruba/config/jruby.rb +9 -9
  20. data/lib/aruba/config_wrapper.rb +17 -2
  21. data/lib/aruba/configuration.rb +37 -32
  22. data/lib/aruba/console.rb +11 -13
  23. data/lib/aruba/console/help.rb +9 -6
  24. data/lib/aruba/contracts/absolute_path.rb +2 -2
  25. data/lib/aruba/contracts/enum.rb +1 -1
  26. data/lib/aruba/contracts/is_power_of_two.rb +3 -3
  27. data/lib/aruba/contracts/relative_path.rb +2 -2
  28. data/lib/aruba/cucumber.rb +7 -7
  29. data/lib/aruba/cucumber/command.rb +106 -95
  30. data/lib/aruba/cucumber/environment.rb +7 -7
  31. data/lib/aruba/cucumber/file.rb +50 -26
  32. data/lib/aruba/cucumber/hooks.rb +32 -29
  33. data/lib/aruba/cucumber/testing_frameworks.rb +32 -30
  34. data/lib/aruba/event_bus.rb +6 -4
  35. data/lib/aruba/event_bus/name_resolver.rb +12 -11
  36. data/lib/aruba/events.rb +2 -1
  37. data/lib/aruba/file_size.rb +1 -1
  38. data/lib/aruba/generators/script_file.rb +2 -2
  39. data/lib/aruba/hooks.rb +2 -4
  40. data/lib/aruba/in_config_wrapper.rb +8 -5
  41. data/lib/aruba/initializer.rb +14 -12
  42. data/lib/aruba/matchers/base/base_matcher.rb +3 -12
  43. data/lib/aruba/matchers/base/message_indenter.rb +2 -2
  44. data/lib/aruba/matchers/base/object_formatter.rb +2 -5
  45. data/lib/aruba/matchers/collection.rb +1 -1
  46. data/lib/aruba/matchers/collection/all.rb +1 -1
  47. data/lib/aruba/matchers/collection/include_an_object.rb +6 -6
  48. data/lib/aruba/matchers/command.rb +1 -1
  49. data/lib/aruba/matchers/command/be_successfully_executed.rb +6 -4
  50. data/lib/aruba/matchers/command/have_exit_status.rb +3 -1
  51. data/lib/aruba/matchers/command/have_finished_in_time.rb +4 -2
  52. data/lib/aruba/matchers/command/have_output.rb +4 -2
  53. data/lib/aruba/matchers/command/have_output_on_stderr.rb +3 -1
  54. data/lib/aruba/matchers/command/have_output_on_stdout.rb +3 -1
  55. data/lib/aruba/matchers/directory.rb +1 -1
  56. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +2 -2
  57. data/lib/aruba/matchers/directory/have_sub_directory.rb +9 -4
  58. data/lib/aruba/matchers/environment.rb +1 -1
  59. data/lib/aruba/matchers/file.rb +1 -1
  60. data/lib/aruba/matchers/file/be_a_command_found_in_path.rb +1 -1
  61. data/lib/aruba/matchers/file/be_an_existing_executable.rb +2 -2
  62. data/lib/aruba/matchers/file/be_an_existing_file.rb +2 -2
  63. data/lib/aruba/matchers/file/have_file_content.rb +1 -1
  64. data/lib/aruba/matchers/file/have_file_size.rb +5 -3
  65. data/lib/aruba/matchers/file/have_same_file_content.rb +2 -2
  66. data/lib/aruba/matchers/path.rb +1 -1
  67. data/lib/aruba/matchers/path/a_path_matching_pattern.rb +1 -1
  68. data/lib/aruba/matchers/path/be_an_absolute_path.rb +1 -1
  69. data/lib/aruba/matchers/path/be_an_existing_path.rb +1 -1
  70. data/lib/aruba/matchers/path/have_permissions.rb +9 -6
  71. data/lib/aruba/matchers/string.rb +1 -1
  72. data/lib/aruba/matchers/string/include_output_string.rb +1 -1
  73. data/lib/aruba/matchers/string/match_output_string.rb +1 -1
  74. data/lib/aruba/matchers/string/output_string_eq.rb +1 -1
  75. data/lib/aruba/platform.rb +2 -2
  76. data/lib/aruba/platforms/announcer.rb +29 -17
  77. data/lib/aruba/platforms/aruba_file_creator.rb +3 -1
  78. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +7 -2
  79. data/lib/aruba/platforms/aruba_logger.rb +11 -10
  80. data/lib/aruba/platforms/command_monitor.rb +7 -9
  81. data/lib/aruba/platforms/determine_disk_usage.rb +2 -4
  82. data/lib/aruba/platforms/filesystem_status.rb +20 -14
  83. data/lib/aruba/platforms/simple_table.rb +3 -3
  84. data/lib/aruba/platforms/unix_command_string.rb +2 -2
  85. data/lib/aruba/platforms/unix_environment_variables.rb +2 -4
  86. data/lib/aruba/platforms/unix_platform.rb +23 -23
  87. data/lib/aruba/platforms/unix_which.rb +2 -2
  88. data/lib/aruba/platforms/windows_command_string.rb +2 -2
  89. data/lib/aruba/platforms/windows_environment_variables.rb +3 -2
  90. data/lib/aruba/platforms/windows_platform.rb +7 -7
  91. data/lib/aruba/platforms/windows_which.rb +8 -4
  92. data/lib/aruba/processes/basic_process.rb +4 -4
  93. data/lib/aruba/processes/debug_process.rb +5 -3
  94. data/lib/aruba/processes/in_process.rb +10 -8
  95. data/lib/aruba/processes/spawn_process.rb +28 -25
  96. data/lib/aruba/rspec.rb +30 -20
  97. data/lib/aruba/runtime.rb +16 -9
  98. data/lib/aruba/setup.rb +25 -12
  99. data/lib/aruba/version.rb +1 -1
  100. metadata +77 -88
  101. data/.cucumberproignore +0 -3
  102. data/.document +0 -5
  103. data/.github/ISSUE_TEMPLATE.md +0 -48
  104. data/.github/PULL_REQUEST_TEMPLATE.md +0 -41
  105. data/.gitignore +0 -38
  106. data/.rspec +0 -3
  107. data/.rubocop.yml +0 -31
  108. data/.rubocop_todo.yml +0 -262
  109. data/.simplecov +0 -36
  110. data/.travis.yml +0 -62
  111. data/.yardopts +0 -11
  112. data/Dockerfile +0 -67
  113. data/Gemfile +0 -12
  114. data/Rakefile +0 -80
  115. data/TODO.md +0 -13
  116. data/appveyor.yml +0 -29
  117. data/aruba.gemspec +0 -54
  118. data/bin/console +0 -7
  119. data/bin/test +0 -9
  120. data/config/.gitignore +0 -1
  121. data/cucumber.yml +0 -6
  122. data/docker-compose.yml +0 -26
  123. data/fixtures/cli-app/.gitignore +0 -9
  124. data/fixtures/cli-app/.rspec +0 -2
  125. data/fixtures/cli-app/README.md +0 -39
  126. data/fixtures/cli-app/Rakefile +0 -1
  127. data/fixtures/cli-app/bin/aruba-test-cli +0 -6
  128. data/fixtures/cli-app/cli-app.gemspec +0 -25
  129. data/fixtures/cli-app/features/support/aruba.rb +0 -1
  130. data/fixtures/cli-app/features/support/env.rb +0 -1
  131. data/fixtures/cli-app/lib/cli/app.rb +0 -9
  132. data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +0 -15
  133. data/fixtures/cli-app/lib/cli/app/version.rb +0 -5
  134. data/fixtures/cli-app/script/console +0 -14
  135. data/fixtures/cli-app/spec/spec_helper.rb +0 -7
  136. data/fixtures/cli-app/spec/support/aruba.rb +0 -1
  137. data/fixtures/copy/file.txt +0 -1
  138. data/fixtures/empty-app/.gitignore +0 -9
  139. data/fixtures/empty-app/.rspec +0 -2
  140. data/fixtures/empty-app/README.md +0 -24
  141. data/fixtures/empty-app/Rakefile +0 -1
  142. data/fixtures/empty-app/cli-app.gemspec +0 -25
  143. data/fixtures/empty-app/lib/cli/app.rb +0 -7
  144. data/fixtures/empty-app/lib/cli/app/version.rb +0 -5
  145. data/fixtures/getting-started-app/.gitignore +0 -4
  146. data/fixtures/getting-started-app/Gemfile +0 -4
  147. data/fixtures/getting-started-app/README.md +0 -3
  148. data/fixtures/getting-started-app/features/support/env.rb +0 -1
  149. data/lib/aruba/extensions/string/strip.rb +0 -25
  150. data/lib/aruba/tasks/docker_helpers.rb +0 -154
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
@@ -1,11 +0,0 @@
1
- --output doc/yard
2
- --exclude features/
3
- --exclude bin/bootstrap
4
- --exclude bin/test
5
- --exclude license
6
- --verbose
7
- --markup-provider kramdown
8
- --markup markdown
9
- -
10
- LICENSE
11
- README.md
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,12 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Use dependencies from gemspec
4
- gemspec
5
-
6
- # Load local Gemfile
7
- load File.expand_path('Gemfile.local', __dir__) if File.file? File.expand_path('Gemfile.local', __dir__)
8
-
9
- unless RUBY_PLATFORM.include?('java')
10
- gem 'byebug', '~> 11.0'
11
- gem 'pry-byebug', '~> 3.4'
12
- end
data/Rakefile DELETED
@@ -1,80 +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 = Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
57
- docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
58
-
59
- builder = Aruba::DockerBuildCommandLineBuilder.new(
60
- docker_run_instance,
61
- cache: args[:cache],
62
- version: args[:version]
63
- )
64
-
65
- sh builder.to_cli
66
- end
67
-
68
- desc 'Run docker container'
69
- task :run, :command do |_, args|
70
- docker_compose_file = Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
71
- docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
72
-
73
- builder = Aruba::DockerRunCommandLineBuilder.new(
74
- docker_run_instance,
75
- command: args[:command] || docker_run_instance.command
76
- )
77
-
78
- sh builder.to_cli
79
- end
80
- 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,29 +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
- - still
10
-
11
- # Disable normal Windows builds in favor of our test script.
12
- build: off
13
-
14
- install:
15
- - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
16
- - ruby --version
17
- - gem --version
18
- - bundler --version
19
- - bundle install
20
-
21
- test_script:
22
- - bundle exec rake spec --trace
23
-
24
- environment:
25
- matrix:
26
- - ruby_version: '24'
27
- - ruby_version: '25'
28
- - ruby_version: '26'
29
- # Note: ruby version 2.7 is not available as of 2019-12-31
data/aruba.gemspec DELETED
@@ -1,54 +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 = 'Extension for popular TDD and BDD frameworks like "Cucumber", "RSpec" and "Minitest",
10
- to make testing commandline applications meaningful, easy and fun.'
11
- spec.summary = "aruba-#{spec.version}"
12
- spec.license = 'MIT'
13
- spec.email = 'cukes@googlegroups.com'
14
- spec.homepage = 'https://github.com/cucumber/aruba'
15
-
16
- spec.metadata = {
17
- 'bug_tracker_uri' => 'https://github.com/cucumber/aruba/issues',
18
- 'changelog_uri' => 'https://www.rubydoc.info/gems/aruba/file/CHANGELOG.md',
19
- 'documentation_uri' => 'https://www.rubydoc.info/gems/aruba',
20
- 'homepage_uri' => spec.homepage,
21
- 'source_code_uri' => 'https://github.com/cucumber/aruba'
22
- }
23
-
24
- spec.add_runtime_dependency 'childprocess', '~> 3.0'
25
- spec.add_runtime_dependency 'contracts', '~> 0.16.0'
26
- spec.add_runtime_dependency 'cucumber', ['>= 2.4', '< 4.0']
27
- spec.add_runtime_dependency 'ffi', '~> 1.9'
28
- spec.add_runtime_dependency 'rspec-expectations', '~> 3.4'
29
- spec.add_runtime_dependency 'thor', '~> 1.0'
30
-
31
- spec.add_development_dependency 'json', '~> 2.1'
32
- spec.add_development_dependency 'license_finder', '~> 6.0'
33
- spec.add_development_dependency 'minitest', '~> 5.10'
34
- spec.add_development_dependency 'pry-doc', '~> 1.0'
35
- spec.add_development_dependency 'rake', '~> 13.0'
36
- spec.add_development_dependency 'rspec', '~> 3.6'
37
- spec.add_development_dependency 'rubocop', '~> 0.79.0'
38
- spec.add_development_dependency 'rubocop-performance', '~> 1.5'
39
- spec.add_development_dependency 'simplecov', '~> 0.18.0'
40
- spec.add_development_dependency 'yard-junk', '~> 0.0.7'
41
-
42
- spec.rubygems_version = '>= 1.6.1'
43
- spec.required_ruby_version = '>= 2.4'
44
-
45
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
46
- f.match(%r{^(test|spec|features)/})
47
- end
48
-
49
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
50
- spec.rdoc_options = ['--charset', 'UTF-8', '--main', 'README.md']
51
- spec.extra_rdoc_files = ['CHANGELOG.md', 'CONTRIBUTING.md', 'README.md', 'LICENSE']
52
- spec.bindir = 'exe'
53
- spec.require_paths = ['lib']
54
- end
data/bin/console DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
4
-
5
- require 'aruba/console'
6
-
7
- Aruba::Console.new.start
data/bin/test DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- : ${RUN_IN_DOCKER:='0'}
4
-
5
- if [ "$RUN_IN_DOCKER" == '1' ]; then
6
- bundle exec rake "docker:run[$*]"
7
- else
8
- bundle exec rake test $*
9
- fi
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
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
@@ -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
-