aruba 1.0.0.pre.alpha.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.github/PULL_REQUEST_TEMPLATE.md +2 -1
- data/.rspec +0 -1
- data/.rubocop.yml +46 -182
- data/.rubocop_todo.yml +216 -0
- data/.simplecov +7 -5
- data/.travis.yml +56 -40
- data/.yardopts +3 -0
- data/CHANGELOG.md +1312 -0
- data/CONTRIBUTING.md +175 -83
- data/Gemfile +5 -69
- data/LICENSE +1 -1
- data/README.md +58 -21
- data/Rakefile +27 -54
- data/appveyor.yml +7 -10
- data/aruba.gemspec +38 -19
- data/bin/console +3 -12
- data/cucumber.yml +4 -22
- data/exe/aruba +1 -1
- data/fixtures/cli-app/README.md +1 -1
- data/fixtures/cli-app/Rakefile +1 -1
- data/fixtures/cli-app/bin/aruba-test-cli +1 -1
- data/fixtures/cli-app/cli-app.gemspec +4 -4
- data/fixtures/cli-app/lib/cli/app.rb +1 -1
- data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +3 -3
- data/fixtures/cli-app/lib/cli/app/version.rb +1 -1
- data/fixtures/cli-app/spec/spec_helper.rb +3 -2
- data/fixtures/empty-app/Rakefile +1 -1
- data/fixtures/empty-app/cli-app.gemspec +4 -4
- data/fixtures/empty-app/lib/cli/app.rb +0 -2
- data/fixtures/empty-app/lib/cli/app/version.rb +1 -1
- data/fixtures/getting-started-app/Gemfile +1 -1
- data/lib/aruba/api.rb +8 -15
- data/lib/aruba/api/bundler.rb +16 -0
- data/lib/aruba/api/commands.rb +272 -0
- data/lib/aruba/api/core.rb +82 -43
- data/lib/aruba/api/environment.rb +24 -7
- data/lib/aruba/api/filesystem.rb +66 -64
- data/lib/aruba/api/text.rb +17 -11
- data/lib/aruba/aruba_path.rb +25 -111
- data/lib/aruba/basic_configuration.rb +8 -25
- data/lib/aruba/basic_configuration/option.rb +2 -2
- data/lib/aruba/cli.rb +4 -1
- data/lib/aruba/colorizer.rb +10 -99
- data/lib/aruba/command.rb +4 -0
- data/lib/aruba/config/jruby.rb +15 -5
- data/lib/aruba/config_wrapper.rb +17 -2
- data/lib/aruba/configuration.rb +107 -0
- data/lib/aruba/console.rb +5 -7
- data/lib/aruba/console/help.rb +5 -2
- data/lib/aruba/contracts/absolute_path.rb +3 -3
- data/lib/aruba/contracts/is_power_of_two.rb +2 -2
- data/lib/aruba/contracts/relative_path.rb +3 -3
- data/lib/aruba/cucumber.rb +0 -3
- data/lib/aruba/cucumber/command.rb +227 -190
- data/lib/aruba/cucumber/environment.rb +1 -1
- data/lib/aruba/cucumber/file.rb +56 -50
- data/lib/aruba/cucumber/hooks.rb +10 -63
- data/lib/aruba/cucumber/testing_frameworks.rb +76 -50
- data/lib/aruba/event_bus.rb +4 -2
- data/lib/aruba/event_bus/name_resolver.rb +10 -10
- data/lib/aruba/events.rb +2 -1
- data/lib/aruba/hooks.rb +3 -5
- data/lib/aruba/in_config_wrapper.rb +10 -3
- data/lib/aruba/initializer.rb +40 -34
- data/lib/aruba/matchers/base/base_matcher.rb +2 -11
- data/lib/aruba/matchers/base/message_indenter.rb +19 -0
- data/lib/aruba/matchers/base/object_formatter.rb +2 -7
- data/lib/aruba/matchers/collection/include_an_object.rb +11 -13
- data/lib/aruba/matchers/command/be_successfully_executed.rb +8 -4
- data/lib/aruba/matchers/command/have_exit_status.rb +16 -4
- data/lib/aruba/matchers/command/have_finished_in_time.rb +5 -5
- data/lib/aruba/matchers/command/have_output.rb +12 -5
- data/lib/aruba/matchers/command/have_output_on_stderr.rb +4 -2
- data/lib/aruba/matchers/command/have_output_on_stdout.rb +4 -2
- data/lib/aruba/matchers/command/have_output_size.rb +2 -2
- data/lib/aruba/matchers/directory/be_an_existing_directory.rb +5 -7
- data/lib/aruba/matchers/directory/have_sub_directory.rb +10 -7
- data/lib/aruba/matchers/file/be_a_command_found_in_path.rb +2 -4
- data/lib/aruba/matchers/file/be_an_existing_executable.rb +4 -6
- data/lib/aruba/matchers/file/be_an_existing_file.rb +5 -7
- data/lib/aruba/matchers/file/have_file_content.rb +4 -4
- data/lib/aruba/matchers/file/have_file_size.rb +8 -8
- data/lib/aruba/matchers/file/have_same_file_content.rb +9 -12
- data/lib/aruba/matchers/path/a_path_matching_pattern.rb +2 -4
- data/lib/aruba/matchers/path/be_an_absolute_path.rb +3 -5
- data/lib/aruba/matchers/path/be_an_existing_path.rb +4 -6
- data/lib/aruba/matchers/path/have_permissions.rb +8 -8
- data/lib/aruba/matchers/string/include_output_string.rb +8 -10
- data/lib/aruba/matchers/string/match_output_string.rb +9 -11
- data/lib/aruba/matchers/string/output_string_eq.rb +7 -9
- data/lib/aruba/platform.rb +0 -8
- data/lib/aruba/platforms/announcer.rb +60 -85
- data/lib/aruba/platforms/aruba_file_creator.rb +4 -2
- data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +8 -3
- data/lib/aruba/platforms/aruba_logger.rb +22 -2
- data/lib/aruba/platforms/command_monitor.rb +15 -102
- data/lib/aruba/platforms/determine_disk_usage.rb +56 -19
- data/lib/aruba/platforms/filesystem_status.rb +9 -9
- data/lib/aruba/platforms/local_environment.rb +2 -2
- data/lib/aruba/platforms/simple_table.rb +3 -11
- data/lib/aruba/platforms/unix_command_string.rb +7 -4
- data/lib/aruba/platforms/unix_environment_variables.rb +19 -26
- data/lib/aruba/platforms/unix_platform.rb +18 -39
- data/lib/aruba/platforms/unix_which.rb +3 -2
- data/lib/aruba/platforms/windows_command_string.rb +20 -7
- data/lib/aruba/platforms/windows_environment_variables.rb +42 -30
- data/lib/aruba/platforms/windows_platform.rb +4 -0
- data/lib/aruba/platforms/windows_which.rb +9 -4
- data/lib/aruba/processes/basic_process.rb +21 -27
- data/lib/aruba/processes/debug_process.rb +16 -5
- data/lib/aruba/processes/in_process.rb +20 -9
- data/lib/aruba/processes/spawn_process.rb +64 -36
- data/lib/aruba/rspec.rb +28 -31
- data/lib/aruba/runtime.rb +16 -7
- data/lib/aruba/setup.rb +32 -17
- data/lib/aruba/tasks/docker_helpers.rb +4 -2
- data/lib/aruba/version.rb +1 -1
- metadata +194 -64
- data/History.md +0 -612
- data/bin/bootstrap +0 -34
- data/bin/build +0 -3
- data/bin/release +0 -3
- data/fixtures/spawn_process/stderr.sh +0 -3
- data/lib/aruba/api/command.rb +0 -309
- data/lib/aruba/api/deprecated.rb +0 -895
- data/lib/aruba/api/rvm.rb +0 -44
- data/lib/aruba/config.rb +0 -101
- data/lib/aruba/cucumber/rvm.rb +0 -3
- data/lib/aruba/in_process.rb +0 -14
- data/lib/aruba/jruby.rb +0 -4
- data/lib/aruba/matchers/path/match_path_pattern.rb +0 -41
- data/lib/aruba/matchers/rspec_matcher_include_regexp.rb +0 -25
- data/lib/aruba/platforms/disk_usage_calculator.rb +0 -20
- data/lib/aruba/spawn_process.rb +0 -11
data/Rakefile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
$LOAD_PATH << File.expand_path(
|
|
1
|
+
$LOAD_PATH << File.expand_path(__dir__)
|
|
2
2
|
|
|
3
3
|
require 'aruba/tasks/docker_helpers'
|
|
4
4
|
require 'aruba/platform'
|
|
@@ -6,83 +6,55 @@ require 'aruba/platform'
|
|
|
6
6
|
require 'bundler'
|
|
7
7
|
Bundler.setup
|
|
8
8
|
|
|
9
|
-
task :
|
|
9
|
+
task default: %w(spec cucumber cucumber:wip lint)
|
|
10
10
|
|
|
11
|
-
desc 'Run
|
|
12
|
-
task :
|
|
11
|
+
desc 'Run all linters.'
|
|
12
|
+
task lint: %w(lint:coding_guidelines lint:licenses)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Rake::Task['test:cucumber'].invoke
|
|
17
|
-
end
|
|
14
|
+
desc 'Run the whole test suite.'
|
|
15
|
+
task test: %w(spec cucumber cucumber:wip)
|
|
18
16
|
|
|
19
|
-
task
|
|
20
|
-
|
|
21
|
-
Rake::Task['test:cucumber_wip'].invoke
|
|
22
|
-
end
|
|
17
|
+
require 'cucumber/rake/task'
|
|
18
|
+
require 'rspec/core/rake_task'
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Rake::Task['test:rspec'].invoke
|
|
20
|
+
Cucumber::Rake::Task.new do |t|
|
|
21
|
+
t.cucumber_opts = %w(--format progress)
|
|
27
22
|
end
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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'
|
|
32
29
|
end
|
|
33
30
|
|
|
34
|
-
|
|
35
|
-
desc 'Run cucumber tests'
|
|
36
|
-
task :cucumber do
|
|
37
|
-
sh 'bundle exec cucumber'
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
desc 'Run cucumber tests which are "WORK IN PROGRESS" and are allowed to fail'
|
|
41
|
-
task :cucumber_wip do
|
|
42
|
-
sh 'bundle exec cucumber -p wip'
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
desc 'Run rspec tests'
|
|
46
|
-
task :rspec do
|
|
47
|
-
sh 'bundle exec rspec'
|
|
48
|
-
end
|
|
49
|
-
end
|
|
31
|
+
RSpec::Core::RakeTask.new
|
|
50
32
|
|
|
51
33
|
namespace :lint do
|
|
52
|
-
desc 'Lint our .travis.yml'
|
|
53
|
-
task :travis do
|
|
54
|
-
begin
|
|
55
|
-
require 'travis/yaml'
|
|
56
|
-
|
|
57
|
-
puts 'Linting .travis.yml ... No output is good!'
|
|
58
|
-
Travis::Yaml.parse! File.read('.travis.yml')
|
|
59
|
-
rescue LoadError => e
|
|
60
|
-
$stderr.puts "You ruby is not supported for linting the .travis.yml: #{e.message}"
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
34
|
desc 'Lint our code with "rubocop"'
|
|
65
35
|
task :coding_guidelines do
|
|
66
|
-
sh 'bundle exec rubocop
|
|
36
|
+
sh 'bundle exec rubocop'
|
|
67
37
|
end
|
|
68
38
|
|
|
69
39
|
desc 'Check for relevant licenses in project'
|
|
70
40
|
task :licenses do
|
|
71
41
|
sh 'bundle exec license_finder'
|
|
72
42
|
end
|
|
73
|
-
end
|
|
74
43
|
|
|
75
|
-
|
|
76
|
-
|
|
44
|
+
require 'yard-junk/rake'
|
|
45
|
+
YardJunk::Rake.define_task
|
|
77
46
|
end
|
|
78
47
|
|
|
48
|
+
Bundler::GemHelper.install_tasks
|
|
49
|
+
|
|
79
50
|
namespace :docker do
|
|
80
51
|
desc 'Build docker image'
|
|
81
52
|
task :build, :cache, :version do |_, args|
|
|
82
|
-
args.with_defaults(:
|
|
83
|
-
args.with_defaults(:
|
|
53
|
+
args.with_defaults(version: 'latest')
|
|
54
|
+
args.with_defaults(cache: true)
|
|
84
55
|
|
|
85
|
-
docker_compose_file =
|
|
56
|
+
docker_compose_file =
|
|
57
|
+
Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
|
|
86
58
|
docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
|
|
87
59
|
|
|
88
60
|
builder = Aruba::DockerBuildCommandLineBuilder.new(
|
|
@@ -96,7 +68,8 @@ namespace :docker do
|
|
|
96
68
|
|
|
97
69
|
desc 'Run docker container'
|
|
98
70
|
task :run, :command do |_, args|
|
|
99
|
-
docker_compose_file =
|
|
71
|
+
docker_compose_file =
|
|
72
|
+
Aruba::DockerComposeFile.new(File.expand_path('docker-compose.yml', __dir__))
|
|
100
73
|
docker_run_instance = Aruba::DockerRunInstance.new(docker_compose_file, :base)
|
|
101
74
|
|
|
102
75
|
builder = Aruba::DockerRunCommandLineBuilder.new(
|
data/appveyor.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
version: "{build}"
|
|
2
2
|
|
|
3
|
-
# This will build all PRs
|
|
3
|
+
# This will build all PRs targeting matching branches.
|
|
4
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
|
|
5
|
+
# and once for the merge commit that github creates for each mergeable PR.
|
|
6
6
|
branches:
|
|
7
7
|
only:
|
|
8
8
|
- master
|
|
@@ -14,18 +14,15 @@ install:
|
|
|
14
14
|
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
|
15
15
|
- ruby --version
|
|
16
16
|
- gem --version
|
|
17
|
-
- gem install bundler
|
|
18
17
|
- bundler --version
|
|
19
18
|
- bundle install
|
|
20
|
-
- cinst ansicon
|
|
21
19
|
|
|
22
20
|
test_script:
|
|
23
|
-
- bundle exec rake
|
|
21
|
+
- bundle exec rake spec --trace
|
|
24
22
|
|
|
25
23
|
environment:
|
|
26
24
|
matrix:
|
|
27
|
-
- ruby_version: '
|
|
28
|
-
- ruby_version: '
|
|
29
|
-
- ruby_version: '
|
|
30
|
-
|
|
31
|
-
|
|
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
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
1
|
lib = ::File.expand_path('../lib', __FILE__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require 'aruba/version'
|
|
@@ -6,33 +5,53 @@ require 'aruba/version'
|
|
|
6
5
|
Gem::Specification.new do |spec|
|
|
7
6
|
spec.name = 'aruba'
|
|
8
7
|
spec.version = Aruba::VERSION
|
|
9
|
-
spec.author =
|
|
10
|
-
spec.description =
|
|
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
|
|
11
13
|
spec.summary = "aruba-#{spec.version}"
|
|
12
14
|
spec.license = 'MIT'
|
|
13
15
|
spec.email = 'cukes@googlegroups.com'
|
|
14
|
-
spec.homepage = '
|
|
16
|
+
spec.homepage = 'https://github.com/cucumber/aruba'
|
|
15
17
|
|
|
16
|
-
spec.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
}
|
|
22
25
|
|
|
23
|
-
spec.
|
|
24
|
-
spec.
|
|
25
|
-
spec.
|
|
26
|
+
spec.add_runtime_dependency 'childprocess', '~> 3.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'
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
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.84.0'
|
|
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'
|
|
29
47
|
|
|
30
48
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
31
49
|
f.match(%r{^(test|spec|features)/})
|
|
32
50
|
end
|
|
33
51
|
|
|
34
|
-
spec.executables
|
|
35
|
-
spec.rdoc_options
|
|
36
|
-
spec.
|
|
37
|
-
spec.
|
|
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']
|
|
38
57
|
end
|
data/bin/console
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
|
|
3
|
-
$LOAD_PATH.unshift File.expand_path('
|
|
3
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
|
4
4
|
|
|
5
|
-
require '
|
|
5
|
+
require 'aruba/console'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
module Aruba
|
|
10
|
-
class MyConsole
|
|
11
|
-
include Aruba::Api
|
|
12
|
-
end
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
include Aruba
|
|
16
|
-
Pry.start MyConsole.new
|
|
7
|
+
Aruba::Console.new.start
|
data/cucumber.yml
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
<%
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
require 'ffi'
|
|
5
|
-
|
|
6
|
-
java_version = (RUBY_DESCRIPTION.match(/.*?on.*?(1\.[\d]\..*? )/))[1] if defined?(JRUBY_VERSION)
|
|
7
|
-
|
|
8
|
-
std_opts = "--format pretty --color --exclude features/fixtures --require features --tags ~@unsupported-on"
|
|
9
|
-
java_default_opts = "--tags ~@wip-jruby-java-1.6" if defined?(JRUBY_VERSION) && (java_version < '1.7.0')
|
|
10
|
-
java_wip_opts = "--tags @wip-jruby-java-1.6:3" if defined?(JRUBY_VERSION) && (java_version < '1.7.0')
|
|
11
|
-
|
|
12
|
-
ignore_opts = []
|
|
13
|
-
ignore_opts << '--tags ~@ignore'
|
|
14
|
-
ignore_opts << '--tags ~@unsupported-on-platform-java' if RUBY_PLATFORM.include? 'java'
|
|
15
|
-
ignore_opts << '--tags ~@unsupported-on-platform-mri' if !RUBY_PLATFORM.include? 'java'
|
|
16
|
-
ignore_opts << '--tags ~@unsupported-on-platform-windows' if FFI::Platform.windows?
|
|
17
|
-
ignore_opts << '--tags ~@unsupported-on-platform-unix' if FFI::Platform.unix?
|
|
18
|
-
ignore_opts << '--tags ~@unsupported-on-platform-mac' if FFI::Platform.mac?
|
|
19
|
-
ignore_opts << '--tags ~@unsupported-on-ruby-older-2' if RUBY_VERSION < '2'
|
|
20
|
-
ignore_opts << '--tags ~@requires-aruba-version-1' if Aruba::VERSION < '1'
|
|
21
|
-
ignore_opts = ignore_opts.join(' ')
|
|
2
|
+
std_opts = "--format pretty --color --exclude features/fixtures --require features --tags 'not @unsupported-on'"
|
|
3
|
+
ignore_opts = "--tags 'not @ignore'"
|
|
22
4
|
%>
|
|
23
|
-
default: <%= std_opts %> --tags
|
|
24
|
-
wip: <%= std_opts %> --wip --tags @wip:3 <%=
|
|
5
|
+
default: <%= std_opts %> --tags 'not @wip' <%= ignore_opts %>
|
|
6
|
+
wip: <%= std_opts %> --wip --tags @wip:3 <%= ignore_opts %>
|
data/exe/aruba
CHANGED
data/fixtures/cli-app/README.md
CHANGED
data/fixtures/cli-app/Rakefile
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'bundler/gem_tasks'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require 'cli/app/version'
|
|
5
4
|
|
|
@@ -16,11 +15,12 @@ Gem::Specification.new do |spec|
|
|
|
16
15
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
17
16
|
# delete this section to allow pushing this gem to any host.
|
|
18
17
|
|
|
19
|
-
spec.files = `git ls-files -z`.split("\x0")
|
|
18
|
+
spec.files = `git ls-files -z`.split("\x0")
|
|
19
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
20
20
|
spec.bindir = 'exe'
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ['lib']
|
|
23
23
|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
26
26
|
end
|
|
@@ -2,12 +2,12 @@ module SimpleCov
|
|
|
2
2
|
module Formatter
|
|
3
3
|
class HTMLFormatter
|
|
4
4
|
def format(result)
|
|
5
|
-
Dir[File.join(File.dirname(__FILE__),
|
|
5
|
+
Dir[File.join(File.dirname(__FILE__), '../public/*')].each do |path|
|
|
6
6
|
FileUtils.cp_r(path, asset_output_path)
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
File.open(File.join(output_path,
|
|
10
|
-
file.puts template(
|
|
9
|
+
File.open(File.join(output_path, 'index.html'), 'wb') do |file|
|
|
10
|
+
file.puts template('layout').result(binding)
|
|
11
11
|
end
|
|
12
12
|
end
|
|
13
13
|
end
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
$LOAD_PATH.unshift File.expand_path('
|
|
1
|
+
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
|
|
2
2
|
|
|
3
3
|
require 'cli/app'
|
|
4
4
|
|
|
5
5
|
require_relative 'support/aruba'
|
|
6
6
|
|
|
7
|
-
::Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__))
|
|
7
|
+
::Dir.glob(::File.expand_path('../support/**/*.rb', __FILE__))
|
|
8
|
+
.each { |f| require_relative f }
|
data/fixtures/empty-app/Rakefile
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'bundler/gem_tasks'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require 'cli/app/version'
|
|
5
4
|
|
|
@@ -16,11 +15,12 @@ Gem::Specification.new do |spec|
|
|
|
16
15
|
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
17
16
|
# delete this section to allow pushing this gem to any host.
|
|
18
17
|
|
|
19
|
-
spec.files = `git ls-files -z`.split("\x0")
|
|
18
|
+
spec.files = `git ls-files -z`.split("\x0")
|
|
19
|
+
.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
20
20
|
spec.bindir = 'exe'
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
22
|
spec.require_paths = ['lib']
|
|
23
23
|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
|
25
|
-
spec.add_development_dependency 'rake', '~>
|
|
25
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
26
26
|
end
|
data/lib/aruba/api.rb
CHANGED
|
@@ -6,16 +6,12 @@ require 'aruba/extensions/string/strip'
|
|
|
6
6
|
|
|
7
7
|
require 'aruba/platform'
|
|
8
8
|
require 'aruba/api/core'
|
|
9
|
-
require 'aruba/api/
|
|
10
|
-
|
|
11
|
-
if Aruba::VERSION <= '1.1.0'
|
|
12
|
-
require 'aruba/api/deprecated'
|
|
13
|
-
end
|
|
9
|
+
require 'aruba/api/commands'
|
|
14
10
|
|
|
15
11
|
require 'aruba/api/environment'
|
|
16
12
|
require 'aruba/api/filesystem'
|
|
17
13
|
require 'aruba/api/text'
|
|
18
|
-
require 'aruba/api/
|
|
14
|
+
require 'aruba/api/bundler'
|
|
19
15
|
|
|
20
16
|
Aruba.platform.require_matching_files('../matchers/**/*.rb', __FILE__)
|
|
21
17
|
|
|
@@ -23,14 +19,11 @@ Aruba.platform.require_matching_files('../matchers/**/*.rb', __FILE__)
|
|
|
23
19
|
module Aruba
|
|
24
20
|
# Api
|
|
25
21
|
module Api
|
|
26
|
-
include
|
|
27
|
-
include
|
|
28
|
-
include
|
|
29
|
-
include
|
|
30
|
-
include
|
|
31
|
-
|
|
32
|
-
include Aruba::Api::Deprecated
|
|
33
|
-
end
|
|
34
|
-
include Aruba::Api::Text
|
|
22
|
+
include Core
|
|
23
|
+
include Commands
|
|
24
|
+
include Environment
|
|
25
|
+
include Filesystem
|
|
26
|
+
include Text
|
|
27
|
+
include Bundler
|
|
35
28
|
end
|
|
36
29
|
end
|