aruba 0.9.0.pre → 0.9.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +8 -3
- data/History.md +61 -19
- data/README.md +10 -6
- data/TODO.md +6 -1
- data/cucumber.yml +10 -6
- data/features/.nav +72 -0
- data/features/announce.feature +203 -0
- data/features/api/command/extract_text.feature +10 -0
- data/features/api/command/run.feature +6 -6
- data/features/api/command/stop_all_commands.feature +53 -0
- data/features/api/command/terminate_all_commands.feature +53 -0
- data/features/api/command/unescape_text.feature +12 -0
- data/features/api/command/which.feature +3 -3
- data/features/api/core/expand_path.feature +4 -4
- data/features/api/environment/append_environment_variable.feature +18 -8
- data/features/api/environment/prepend_environment_variable.feature +18 -8
- data/features/api/environment/set_environment_variable.feature +33 -16
- data/features/api/filesystem/cd.feature +23 -13
- data/features/api/filesystem/create_directory.feature +2 -2
- data/features/api/filesystem/disk_usage.feature +7 -6
- data/features/api/filesystem/does_exist.feature +2 -2
- data/features/api/filesystem/is_absolute.feature +2 -2
- data/features/api/filesystem/is_directory.feature +2 -2
- data/features/api/filesystem/is_file.feature +2 -2
- data/features/api/filesystem/is_relative.feature +2 -2
- data/features/api/filesystem/move.feature +119 -0
- data/features/cli/console.feature +3 -3
- data/features/commands/debug_command.feature +93 -0
- data/features/commands/environment_variables.feature +64 -0
- data/features/commands/flushing.feature +74 -0
- data/features/commands/interactive.feature +90 -0
- data/features/commands/output/all_output.feature +445 -0
- data/features/commands/output/stdout.feature +66 -0
- data/features/configuration/exit_timeout.feature +5 -5
- data/features/configuration/fixtures_directories.feature +3 -3
- data/features/configuration/fixtures_path_prefix.feature +1 -1
- data/features/configuration/home_directory.feature +4 -4
- data/features/configuration/io_timeout.feature +2 -2
- data/features/configuration/keep_ansi.feature +2 -2
- data/features/configuration/log_level.feature +3 -3
- data/features/configuration/physical_block_size.feature +3 -3
- data/features/configuration/usage.feature +159 -0
- data/features/core/cleanup_aruba_directory.feature +52 -0
- data/features/development/build.feature +16 -0
- data/features/development/test.feature +24 -0
- data/features/file_system_commands.feature +12 -12
- data/features/getting_started/supported_programming_languages.feature +89 -0
- data/features/hooks/after/command.feature +1 -1
- data/features/hooks/before/command.feature +2 -2
- data/features/matchers/collection/include_an_object.feature +72 -0
- data/features/matchers/timeouts.feature +2 -2
- data/features/output.feature +60 -181
- data/features/step_definitions/aruba_dev_steps.rb +17 -10
- data/features/step_definitions/hooks.rb +11 -0
- data/features/steps/commands/exit_statuses.feature +3 -3
- data/features/steps/commands/run.feature +0 -15
- data/features/steps/filesystem/copy.feature +45 -0
- data/features/steps/filesystem/create_directory.feature +47 -0
- data/features/steps/filesystem/create_file.feature +53 -0
- data/features/steps/filesystem/file_content.feature +1 -1
- data/features/steps/filesystem/move.feature +45 -0
- data/features/steps/filesystem/overwrite_file.feature +72 -0
- data/features/steps/filesystem/use_fixture.feature +77 -0
- data/features/usage/install.feature +8 -0
- data/{features/fixtures → fixtures}/cli-app/.gitignore +0 -0
- data/{features/fixtures → fixtures}/cli-app/.rspec +0 -0
- data/{features/fixtures → fixtures}/cli-app/README.md +0 -0
- data/{features/fixtures → fixtures}/cli-app/Rakefile +0 -0
- data/{features/fixtures → fixtures}/cli-app/bin/cli +0 -0
- data/{features/fixtures → fixtures}/cli-app/cli-app.gemspec +0 -0
- data/{features/fixtures → fixtures}/cli-app/features/support/env.rb +0 -0
- data/{features/fixtures → fixtures}/cli-app/lib/cli/app.rb +0 -0
- data/fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb +15 -0
- data/{features/fixtures → fixtures}/cli-app/lib/cli/app/version.rb +0 -0
- data/{features/fixtures/empty-app → fixtures/cli-app}/script/console +3 -3
- data/{features/fixtures → fixtures}/cli-app/spec/spec_helper.rb +0 -0
- data/{features/fixtures → fixtures}/cli-app/spec/support/aruba.rb +0 -0
- data/{features/fixtures → fixtures}/copy/file.txt +0 -0
- data/{features/fixtures → fixtures}/empty-app/.gitignore +0 -0
- data/{features/fixtures → fixtures}/empty-app/.rspec +0 -0
- data/{features/fixtures → fixtures}/empty-app/README.md +0 -0
- data/{features/fixtures → fixtures}/empty-app/Rakefile +0 -0
- data/{features/fixtures → fixtures}/empty-app/bin/cli +0 -0
- data/{features/fixtures → fixtures}/empty-app/cli-app.gemspec +0 -0
- data/{features/fixtures → fixtures}/empty-app/lib/cli/app.rb +0 -0
- data/{features/fixtures → fixtures}/empty-app/lib/cli/app/version.rb +0 -0
- data/{features/fixtures/cli-app → fixtures/empty-app}/script/console +3 -3
- data/{features/fixtures → fixtures}/empty-app/spec/spec_helper.rb +0 -0
- data/{features/fixtures → fixtures}/fixtures-app/test.txt +0 -0
- data/fixtures/getting-started-app/.gitignore +4 -0
- data/fixtures/getting-started-app/Gemfile +4 -0
- data/fixtures/getting-started-app/README.md +3 -0
- data/fixtures/getting-started-app/features/support/env.rb +1 -0
- data/{features/fixtures → fixtures}/spawn_process/stderr.sh +0 -0
- data/lib/aruba/announcer.rb +6 -2
- data/lib/aruba/api.rb +0 -16
- data/lib/aruba/api/command.rb +64 -266
- data/lib/aruba/api/core.rb +24 -26
- data/lib/aruba/api/deprecated.rb +370 -12
- data/lib/aruba/api/filesystem.rb +64 -15
- data/lib/aruba/aruba_path.rb +4 -0
- data/lib/aruba/config.rb +1 -1
- data/lib/aruba/cucumber.rb +5 -449
- data/lib/aruba/cucumber/command.rb +378 -0
- data/lib/aruba/cucumber/core.rb +29 -0
- data/lib/aruba/cucumber/environment.rb +30 -0
- data/lib/aruba/cucumber/file.rb +210 -0
- data/lib/aruba/cucumber/hooks.rb +11 -14
- data/lib/aruba/cucumber/rvm.rb +3 -0
- data/lib/aruba/matchers/base/base_matcher.rb +94 -0
- data/lib/aruba/matchers/collection.rb +1 -0
- data/lib/aruba/matchers/collection/all_objects.rb +2 -0
- data/lib/aruba/matchers/collection/include_an_object.rb +120 -0
- data/lib/aruba/matchers/command/be_successfully_executed.rb +3 -3
- data/lib/aruba/matchers/command/have_exit_status.rb +2 -11
- data/lib/aruba/matchers/command/have_finished_in_time.rb +5 -5
- data/lib/aruba/matchers/command/have_output.rb +46 -0
- data/lib/aruba/matchers/command/have_output_on_stderr.rb +42 -0
- data/lib/aruba/matchers/command/have_output_on_stdout.rb +42 -0
- data/lib/aruba/matchers/command/have_output_size.rb +28 -0
- data/lib/aruba/matchers/directory/be_an_existing_directory.rb +1 -1
- data/lib/aruba/matchers/file/be_an_existing_file.rb +1 -1
- data/lib/aruba/matchers/file/have_file_content.rb +1 -1
- data/lib/aruba/matchers/file/have_file_size.rb +2 -2
- data/lib/aruba/matchers/file/have_same_file_content.rb +1 -1
- data/lib/aruba/matchers/path/have_permissions.rb +1 -1
- data/lib/aruba/platforms/aruba_file_creator.rb +2 -3
- data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +2 -3
- data/lib/aruba/platforms/determine_disk_usage.rb +23 -0
- data/lib/aruba/platforms/determine_file_size.rb +13 -0
- data/lib/aruba/platforms/disk_usage_calculator.rb +11 -0
- data/lib/aruba/platforms/local_environment.rb +15 -0
- data/lib/aruba/platforms/unix_environment_variables.rb +1 -1
- data/lib/aruba/platforms/unix_platform.rb +35 -14
- data/lib/aruba/process_monitor.rb +53 -7
- data/lib/aruba/processes/basic_process.rb +25 -5
- data/lib/aruba/processes/debug_process.rb +27 -25
- data/lib/aruba/processes/in_process.rb +7 -22
- data/lib/aruba/processes/spawn_process.rb +74 -31
- data/lib/aruba/rspec.rb +1 -6
- data/lib/aruba/version.rb +1 -1
- data/script/console +0 -1
- data/spec/aruba/api/environment/restore_env_spec.rb +65 -0
- data/spec/aruba/api/environment/set_env_spec.rb +42 -0
- data/spec/aruba/api/filesystem/file_size_spec.rb +28 -0
- data/spec/aruba/api_spec.rb +10 -7
- data/spec/aruba/matchers/command/have_output_size_spec.rb +25 -0
- data/spec/aruba/matchers/command_spec.rb +135 -4
- data/spec/aruba/spawn_process_spec.rb +1 -1
- metadata +107 -65
- data/.nav +0 -12
- data/features/debug.feature +0 -15
- data/features/fixtures/cli-app/spec/cli/app_spec.rb +0 -7
- data/features/flushing.feature +0 -26
- data/features/interactive.feature +0 -66
- data/features/no_clobber.feature +0 -25
- data/lib/aruba/disk_usage_calculator.rb +0 -7
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Filesystem Api' do
|
4
|
+
include_context 'uses aruba API'
|
5
|
+
|
6
|
+
def expand_path(*args)
|
7
|
+
@aruba.expand_path(*args)
|
8
|
+
end
|
9
|
+
|
10
|
+
describe '#file_size' do
|
11
|
+
let(:name) { @file_name }
|
12
|
+
let(:path) { @file_path }
|
13
|
+
let(:size) { file_size(name) }
|
14
|
+
|
15
|
+
context 'when file exist' do
|
16
|
+
before :each do
|
17
|
+
File.open(path, 'w') { |f| f.print 'a' }
|
18
|
+
end
|
19
|
+
|
20
|
+
it { expect(size).to eq 1 }
|
21
|
+
end
|
22
|
+
|
23
|
+
context 'when file does not exist' do
|
24
|
+
let(:name) { 'non_existing_file' }
|
25
|
+
it { expect { size }.to raise_error }
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/aruba/api_spec.rb
CHANGED
@@ -1096,10 +1096,11 @@ describe Aruba::Api do
|
|
1096
1096
|
|
1097
1097
|
describe 'tags' do
|
1098
1098
|
describe '@announce_stdout' do
|
1099
|
-
after(:each){@aruba.
|
1099
|
+
after(:each) { @aruba.all_commands.each { |c| c.stop(@aruba.announcer) } }
|
1100
|
+
|
1100
1101
|
context 'enabled' do
|
1101
1102
|
before :each do
|
1102
|
-
@aruba.
|
1103
|
+
@aruba.announcer.activate(:stdout)
|
1103
1104
|
end
|
1104
1105
|
|
1105
1106
|
it "should announce to stdout exactly once" do
|
@@ -1127,7 +1128,7 @@ describe Aruba::Api do
|
|
1127
1128
|
|
1128
1129
|
describe "#assert_not_matching_output" do
|
1129
1130
|
before(:each){ @aruba.run_simple("echo foo", false) }
|
1130
|
-
after(:each){ @aruba.
|
1131
|
+
after(:each) { @aruba.all_commands.each { |c| c.stop(@aruba.announcer) } }
|
1131
1132
|
|
1132
1133
|
it "passes when the output doesn't match a regexp" do
|
1133
1134
|
@aruba.assert_not_matching_output "bar", @aruba.all_output
|
@@ -1141,7 +1142,7 @@ describe Aruba::Api do
|
|
1141
1142
|
|
1142
1143
|
describe '#run' do
|
1143
1144
|
before(:each){@aruba.run "cat"}
|
1144
|
-
after(:each){@aruba.
|
1145
|
+
after(:each) { @aruba.all_commands.each { |c| c.stop(@aruba.announcer) } }
|
1145
1146
|
it "respond to input" do
|
1146
1147
|
@aruba.type "Hello"
|
1147
1148
|
@aruba.type ""
|
@@ -1164,7 +1165,7 @@ describe Aruba::Api do
|
|
1164
1165
|
|
1165
1166
|
describe "#run_simple" do
|
1166
1167
|
before(:each){@aruba.run_simple "true"}
|
1167
|
-
after(:each){@aruba.
|
1168
|
+
after(:each) { @aruba.all_commands.each { |c| c.stop(@aruba.announcer) } }
|
1168
1169
|
describe "get_process" do
|
1169
1170
|
it "returns a process" do
|
1170
1171
|
expect(@aruba.get_process("true")).not_to be(nil)
|
@@ -1194,14 +1195,16 @@ describe Aruba::Api do
|
|
1194
1195
|
|
1195
1196
|
describe "#set_environment_variable" do
|
1196
1197
|
after(:each) do
|
1197
|
-
@aruba.
|
1198
|
+
@aruba.all_commands.each { |c| c.stop(@aruba.announcer) }
|
1198
1199
|
@aruba.restore_env
|
1199
1200
|
end
|
1201
|
+
|
1200
1202
|
it "set environment variable" do
|
1201
1203
|
@aruba.set_env 'LONG_LONG_ENV_VARIABLE', 'true'
|
1202
1204
|
@aruba.run "env"
|
1203
1205
|
expect(@aruba.all_output).to include("LONG_LONG_ENV_VARIABLE=true")
|
1204
1206
|
end
|
1207
|
+
|
1205
1208
|
it "overwrites environment variable" do
|
1206
1209
|
@aruba.set_env 'LONG_LONG_ENV_VARIABLE', 'true'
|
1207
1210
|
@aruba.set_env 'LONG_LONG_ENV_VARIABLE', 'false'
|
@@ -1211,7 +1214,7 @@ describe Aruba::Api do
|
|
1211
1214
|
end
|
1212
1215
|
|
1213
1216
|
describe "#restore_env" do
|
1214
|
-
after(:each){@aruba.
|
1217
|
+
after(:each) { @aruba.all_commands.each { |c| c.stop(@aruba.announcer) } }
|
1215
1218
|
it "restores environment variable" do
|
1216
1219
|
@aruba.set_env 'LONG_LONG_ENV_VARIABLE', 'true'
|
1217
1220
|
@aruba.restore_env
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe 'Output Matchers' do
|
4
|
+
include_context 'uses aruba API'
|
5
|
+
|
6
|
+
def expand_path(*args)
|
7
|
+
@aruba.expand_path(*args)
|
8
|
+
end
|
9
|
+
|
10
|
+
describe '#to_have_output_size' do
|
11
|
+
let(:obj) { 'string' }
|
12
|
+
|
13
|
+
context 'when has size' do
|
14
|
+
context 'when is string' do
|
15
|
+
it { expect(obj).to have_output_size 6 }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'when does not have size' do
|
20
|
+
let(:obj) { 'string' }
|
21
|
+
|
22
|
+
it { expect(obj).not_to have_output_size(-1) }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -17,12 +17,12 @@ RSpec.describe 'Command Matchers' do
|
|
17
17
|
before(:each) { run(cmd) }
|
18
18
|
|
19
19
|
context 'when has exit 0' do
|
20
|
-
it { expect(
|
20
|
+
it { expect(last_command_started).to have_exit_status 0 }
|
21
21
|
end
|
22
22
|
|
23
23
|
context 'when has exit 0' do
|
24
24
|
let(:cmd) { 'false' }
|
25
|
-
it { expect(
|
25
|
+
it { expect(last_command_started).not_to have_exit_status 0 }
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
@@ -32,12 +32,143 @@ RSpec.describe 'Command Matchers' do
|
|
32
32
|
before(:each) { run(cmd) }
|
33
33
|
|
34
34
|
context 'when has exit 0' do
|
35
|
-
it { expect(
|
35
|
+
it { expect(last_command_started).to be_successfully_executed }
|
36
36
|
end
|
37
37
|
|
38
38
|
context 'when has exit 0' do
|
39
39
|
let(:cmd) { 'false' }
|
40
|
-
it { expect(
|
40
|
+
it { expect(last_command_started).not_to be_successfully_executed }
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '#to_have_output' do
|
45
|
+
let(:cmd) { "echo #{output}" }
|
46
|
+
let(:output) { 'hello world' }
|
47
|
+
|
48
|
+
context 'when have output hello world on stdout' do
|
49
|
+
before(:each) { run(cmd) }
|
50
|
+
it { expect(last_command_started).to have_output output }
|
51
|
+
end
|
52
|
+
|
53
|
+
context 'when multiple commands output hello world on stdout' do
|
54
|
+
context 'and all comands must have the output' do
|
55
|
+
before(:each) do
|
56
|
+
run(cmd)
|
57
|
+
run(cmd)
|
58
|
+
end
|
59
|
+
|
60
|
+
it { expect(all_commands).to all have_output output }
|
61
|
+
end
|
62
|
+
|
63
|
+
context 'and any comand can have the output' do
|
64
|
+
before(:each) do
|
65
|
+
run(cmd)
|
66
|
+
run('echo hello universe')
|
67
|
+
end
|
68
|
+
|
69
|
+
it { expect(all_commands).to include have_output(output) }
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
context 'when have output hello world on stderr' do
|
74
|
+
before :each do
|
75
|
+
string = <<-EOS.strip_heredoc
|
76
|
+
#!/usr/bin/env bash
|
77
|
+
|
78
|
+
echo $* >&2
|
79
|
+
EOS
|
80
|
+
|
81
|
+
File.open(expand_path('cmd.sh'), 'w') { |f| f.puts string }
|
82
|
+
|
83
|
+
File.chmod 0755, expand_path('cmd.sh')
|
84
|
+
prepend_environment_variable 'PATH', "#{expand_path('.')}:"
|
85
|
+
end
|
86
|
+
|
87
|
+
let(:cmd) { "cmd.sh #{output}" }
|
88
|
+
|
89
|
+
before(:each) { run(cmd) }
|
90
|
+
|
91
|
+
it { expect(last_command_started).to have_output output }
|
92
|
+
end
|
93
|
+
|
94
|
+
context 'when not has output' do
|
95
|
+
before(:each) { run(cmd) }
|
96
|
+
|
97
|
+
it { expect(last_command_started).not_to have_output 'hello universe' }
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe '#to_have_output_on_stdout' do
|
102
|
+
let(:cmd) { "echo #{output}" }
|
103
|
+
let(:output) { 'hello world' }
|
104
|
+
|
105
|
+
context 'when have output hello world on stdout' do
|
106
|
+
before(:each) { run(cmd) }
|
107
|
+
it { expect(last_command_started).to have_output_on_stdout output }
|
108
|
+
end
|
109
|
+
|
110
|
+
context 'when have output hello world on stderr' do
|
111
|
+
before :each do
|
112
|
+
string = <<-EOS.strip_heredoc
|
113
|
+
#!/usr/bin/env bash
|
114
|
+
|
115
|
+
echo $* >&2
|
116
|
+
EOS
|
117
|
+
|
118
|
+
File.open(expand_path('cmd.sh'), 'w') { |f| f.puts string }
|
119
|
+
|
120
|
+
File.chmod 0755, expand_path('cmd.sh')
|
121
|
+
prepend_environment_variable 'PATH', "#{expand_path('.')}:"
|
122
|
+
end
|
123
|
+
|
124
|
+
let(:cmd) { "cmd.sh #{output}" }
|
125
|
+
|
126
|
+
before(:each) { run(cmd) }
|
127
|
+
|
128
|
+
it { expect(last_command_started).not_to have_output_on_stdout output }
|
129
|
+
end
|
130
|
+
|
131
|
+
context 'when not has output' do
|
132
|
+
before(:each) { run(cmd) }
|
133
|
+
|
134
|
+
it { expect(last_command_started).not_to have_output_on_stdout 'hello universe' }
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
describe '#to_have_output_on_stderr' do
|
139
|
+
let(:cmd) { "echo #{output}" }
|
140
|
+
let(:output) { 'hello world' }
|
141
|
+
|
142
|
+
context 'when have output hello world on stdout' do
|
143
|
+
before(:each) { run(cmd) }
|
144
|
+
it { expect(last_command_started).not_to have_output_on_stderr output }
|
145
|
+
end
|
146
|
+
|
147
|
+
context 'when have output hello world on stderr' do
|
148
|
+
before :each do
|
149
|
+
string = <<-EOS.strip_heredoc
|
150
|
+
#!/usr/bin/env bash
|
151
|
+
|
152
|
+
echo $* >&2
|
153
|
+
EOS
|
154
|
+
|
155
|
+
File.open(expand_path('cmd.sh'), 'w') { |f| f.puts string }
|
156
|
+
|
157
|
+
File.chmod 0755, expand_path('cmd.sh')
|
158
|
+
prepend_environment_variable 'PATH', "#{expand_path('.')}:"
|
159
|
+
end
|
160
|
+
|
161
|
+
let(:cmd) { "cmd.sh #{output}" }
|
162
|
+
|
163
|
+
before(:each) { run(cmd) }
|
164
|
+
|
165
|
+
it { expect(last_command_started).to have_output_on_stderr output }
|
166
|
+
end
|
167
|
+
|
168
|
+
context 'when not has output' do
|
169
|
+
before(:each) { run(cmd) }
|
170
|
+
|
171
|
+
it { expect(last_command_started).not_to have_output_on_stderr 'hello universe' }
|
41
172
|
end
|
42
173
|
end
|
43
174
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aruba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.0.
|
4
|
+
version: 0.9.0.pre2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2015-08-
|
16
|
+
date: 2015-08-15 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: cucumber
|
@@ -123,7 +123,6 @@ extra_rdoc_files: []
|
|
123
123
|
files:
|
124
124
|
- ".document"
|
125
125
|
- ".gitignore"
|
126
|
-
- ".nav"
|
127
126
|
- ".rspec"
|
128
127
|
- ".rubocop.yml"
|
129
128
|
- ".simplecov"
|
@@ -142,8 +141,12 @@ files:
|
|
142
141
|
- config/.gitignore
|
143
142
|
- cucumber.yml
|
144
143
|
- doc/dependency_decisions.yml
|
144
|
+
- features/.nav
|
145
|
+
- features/announce.feature
|
145
146
|
- features/api/command/extract_text.feature
|
146
147
|
- features/api/command/run.feature
|
148
|
+
- features/api/command/stop_all_commands.feature
|
149
|
+
- features/api/command/terminate_all_commands.feature
|
147
150
|
- features/api/command/unescape_text.feature
|
148
151
|
- features/api/command/which.feature
|
149
152
|
- features/api/core/expand_path.feature
|
@@ -158,7 +161,14 @@ files:
|
|
158
161
|
- features/api/filesystem/is_directory.feature
|
159
162
|
- features/api/filesystem/is_file.feature
|
160
163
|
- features/api/filesystem/is_relative.feature
|
164
|
+
- features/api/filesystem/move.feature
|
161
165
|
- features/cli/console.feature
|
166
|
+
- features/commands/debug_command.feature
|
167
|
+
- features/commands/environment_variables.feature
|
168
|
+
- features/commands/flushing.feature
|
169
|
+
- features/commands/interactive.feature
|
170
|
+
- features/commands/output/all_output.feature
|
171
|
+
- features/commands/output/stdout.feature
|
162
172
|
- features/configuration/console_history_file.feature
|
163
173
|
- features/configuration/exit_timeout.feature
|
164
174
|
- features/configuration/fixtures_directories.feature
|
@@ -170,40 +180,17 @@ files:
|
|
170
180
|
- features/configuration/physical_block_size.feature
|
171
181
|
- features/configuration/remove_ansi_escape_sequences.feature
|
172
182
|
- features/configuration/root_directory.feature
|
183
|
+
- features/configuration/usage.feature
|
173
184
|
- features/configuration/working_directory.feature
|
174
|
-
- features/
|
185
|
+
- features/core/cleanup_aruba_directory.feature
|
186
|
+
- features/development/build.feature
|
187
|
+
- features/development/test.feature
|
175
188
|
- features/file_system_commands.feature
|
176
|
-
- features/
|
177
|
-
- features/fixtures/cli-app/.rspec
|
178
|
-
- features/fixtures/cli-app/README.md
|
179
|
-
- features/fixtures/cli-app/Rakefile
|
180
|
-
- features/fixtures/cli-app/bin/cli
|
181
|
-
- features/fixtures/cli-app/cli-app.gemspec
|
182
|
-
- features/fixtures/cli-app/features/support/env.rb
|
183
|
-
- features/fixtures/cli-app/lib/cli/app.rb
|
184
|
-
- features/fixtures/cli-app/lib/cli/app/version.rb
|
185
|
-
- features/fixtures/cli-app/script/console
|
186
|
-
- features/fixtures/cli-app/spec/cli/app_spec.rb
|
187
|
-
- features/fixtures/cli-app/spec/spec_helper.rb
|
188
|
-
- features/fixtures/cli-app/spec/support/aruba.rb
|
189
|
-
- features/fixtures/copy/file.txt
|
190
|
-
- features/fixtures/empty-app/.gitignore
|
191
|
-
- features/fixtures/empty-app/.rspec
|
192
|
-
- features/fixtures/empty-app/README.md
|
193
|
-
- features/fixtures/empty-app/Rakefile
|
194
|
-
- features/fixtures/empty-app/bin/cli
|
195
|
-
- features/fixtures/empty-app/cli-app.gemspec
|
196
|
-
- features/fixtures/empty-app/lib/cli/app.rb
|
197
|
-
- features/fixtures/empty-app/lib/cli/app/version.rb
|
198
|
-
- features/fixtures/empty-app/script/console
|
199
|
-
- features/fixtures/empty-app/spec/spec_helper.rb
|
200
|
-
- features/fixtures/fixtures-app/test.txt
|
201
|
-
- features/fixtures/spawn_process/stderr.sh
|
202
|
-
- features/flushing.feature
|
189
|
+
- features/getting_started/supported_programming_languages.feature
|
203
190
|
- features/hooks/after/command.feature
|
204
191
|
- features/hooks/before/command.feature
|
205
192
|
- features/integration/rspec/getting_started.feature
|
206
|
-
- features/
|
193
|
+
- features/matchers/collection/include_an_object.feature
|
207
194
|
- features/matchers/directory/have_sub_directory.feature
|
208
195
|
- features/matchers/file/be_existing_file.feature
|
209
196
|
- features/matchers/file/have_file_content.feature
|
@@ -212,20 +199,57 @@ files:
|
|
212
199
|
- features/matchers/path/be_an_existing_path.feature
|
213
200
|
- features/matchers/path/have_permissions.feature
|
214
201
|
- features/matchers/timeouts.feature
|
215
|
-
- features/no_clobber.feature
|
216
202
|
- features/output.feature
|
217
203
|
- features/step_definitions/aruba_dev_steps.rb
|
204
|
+
- features/step_definitions/hooks.rb
|
218
205
|
- features/steps/commands/exit_statuses.feature
|
219
206
|
- features/steps/commands/in_process.feature
|
220
207
|
- features/steps/commands/run.feature
|
221
208
|
- features/steps/environment/home_variable.feature
|
222
209
|
- features/steps/environment/set_environment_variable.feature
|
210
|
+
- features/steps/filesystem/copy.feature
|
211
|
+
- features/steps/filesystem/create_directory.feature
|
212
|
+
- features/steps/filesystem/create_file.feature
|
223
213
|
- features/steps/filesystem/file_content.feature
|
214
|
+
- features/steps/filesystem/move.feature
|
215
|
+
- features/steps/filesystem/overwrite_file.feature
|
216
|
+
- features/steps/filesystem/use_fixture.feature
|
224
217
|
- features/support/aruba.rb
|
225
218
|
- features/support/env.rb
|
226
219
|
- features/support/jruby.rb
|
227
220
|
- features/support/simplecov_setup.rb
|
221
|
+
- features/usage/install.feature
|
228
222
|
- features/utf-8.feature
|
223
|
+
- fixtures/cli-app/.gitignore
|
224
|
+
- fixtures/cli-app/.rspec
|
225
|
+
- fixtures/cli-app/README.md
|
226
|
+
- fixtures/cli-app/Rakefile
|
227
|
+
- fixtures/cli-app/bin/cli
|
228
|
+
- fixtures/cli-app/cli-app.gemspec
|
229
|
+
- fixtures/cli-app/features/support/env.rb
|
230
|
+
- fixtures/cli-app/lib/cli/app.rb
|
231
|
+
- fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb
|
232
|
+
- fixtures/cli-app/lib/cli/app/version.rb
|
233
|
+
- fixtures/cli-app/script/console
|
234
|
+
- fixtures/cli-app/spec/spec_helper.rb
|
235
|
+
- fixtures/cli-app/spec/support/aruba.rb
|
236
|
+
- fixtures/copy/file.txt
|
237
|
+
- fixtures/empty-app/.gitignore
|
238
|
+
- fixtures/empty-app/.rspec
|
239
|
+
- fixtures/empty-app/README.md
|
240
|
+
- fixtures/empty-app/Rakefile
|
241
|
+
- fixtures/empty-app/bin/cli
|
242
|
+
- fixtures/empty-app/cli-app.gemspec
|
243
|
+
- fixtures/empty-app/lib/cli/app.rb
|
244
|
+
- fixtures/empty-app/lib/cli/app/version.rb
|
245
|
+
- fixtures/empty-app/script/console
|
246
|
+
- fixtures/empty-app/spec/spec_helper.rb
|
247
|
+
- fixtures/fixtures-app/test.txt
|
248
|
+
- fixtures/getting-started-app/.gitignore
|
249
|
+
- fixtures/getting-started-app/Gemfile
|
250
|
+
- fixtures/getting-started-app/README.md
|
251
|
+
- fixtures/getting-started-app/features/support/env.rb
|
252
|
+
- fixtures/spawn_process/stderr.sh
|
229
253
|
- lib/aruba.rb
|
230
254
|
- lib/aruba/announcer.rb
|
231
255
|
- lib/aruba/api.rb
|
@@ -251,18 +275,30 @@ files:
|
|
251
275
|
- lib/aruba/contracts/is_power_of_two.rb
|
252
276
|
- lib/aruba/contracts/relative_path.rb
|
253
277
|
- lib/aruba/cucumber.rb
|
278
|
+
- lib/aruba/cucumber/command.rb
|
279
|
+
- lib/aruba/cucumber/core.rb
|
280
|
+
- lib/aruba/cucumber/environment.rb
|
281
|
+
- lib/aruba/cucumber/file.rb
|
254
282
|
- lib/aruba/cucumber/hooks.rb
|
255
|
-
- lib/aruba/
|
283
|
+
- lib/aruba/cucumber/rvm.rb
|
256
284
|
- lib/aruba/errors.rb
|
257
285
|
- lib/aruba/extensions/string/strip.rb
|
258
286
|
- lib/aruba/file_size.rb
|
259
287
|
- lib/aruba/hooks.rb
|
260
288
|
- lib/aruba/in_process.rb
|
261
289
|
- lib/aruba/jruby.rb
|
290
|
+
- lib/aruba/matchers/base/base_matcher.rb
|
291
|
+
- lib/aruba/matchers/collection.rb
|
292
|
+
- lib/aruba/matchers/collection/all_objects.rb
|
293
|
+
- lib/aruba/matchers/collection/include_an_object.rb
|
262
294
|
- lib/aruba/matchers/command.rb
|
263
295
|
- lib/aruba/matchers/command/be_successfully_executed.rb
|
264
296
|
- lib/aruba/matchers/command/have_exit_status.rb
|
265
297
|
- lib/aruba/matchers/command/have_finished_in_time.rb
|
298
|
+
- lib/aruba/matchers/command/have_output.rb
|
299
|
+
- lib/aruba/matchers/command/have_output_on_stderr.rb
|
300
|
+
- lib/aruba/matchers/command/have_output_on_stdout.rb
|
301
|
+
- lib/aruba/matchers/command/have_output_size.rb
|
266
302
|
- lib/aruba/matchers/directory.rb
|
267
303
|
- lib/aruba/matchers/directory/be_an_existing_directory.rb
|
268
304
|
- lib/aruba/matchers/directory/have_sub_directory.rb
|
@@ -283,6 +319,10 @@ files:
|
|
283
319
|
- lib/aruba/platform.rb
|
284
320
|
- lib/aruba/platforms/aruba_file_creator.rb
|
285
321
|
- lib/aruba/platforms/aruba_fixed_size_file_creator.rb
|
322
|
+
- lib/aruba/platforms/determine_disk_usage.rb
|
323
|
+
- lib/aruba/platforms/determine_file_size.rb
|
324
|
+
- lib/aruba/platforms/disk_usage_calculator.rb
|
325
|
+
- lib/aruba/platforms/local_environment.rb
|
286
326
|
- lib/aruba/platforms/simple_table.rb
|
287
327
|
- lib/aruba/platforms/unix_command_string.rb
|
288
328
|
- lib/aruba/platforms/unix_environment_variables.rb
|
@@ -305,6 +345,9 @@ files:
|
|
305
345
|
- script/bootstrap
|
306
346
|
- script/console
|
307
347
|
- script/test
|
348
|
+
- spec/aruba/api/environment/restore_env_spec.rb
|
349
|
+
- spec/aruba/api/environment/set_env_spec.rb
|
350
|
+
- spec/aruba/api/filesystem/file_size_spec.rb
|
308
351
|
- spec/aruba/api/runtime_spec.rb
|
309
352
|
- spec/aruba/api_spec.rb
|
310
353
|
- spec/aruba/aruba_path_spec.rb
|
@@ -313,6 +356,7 @@ files:
|
|
313
356
|
- spec/aruba/configuration_spec.rb
|
314
357
|
- spec/aruba/hooks_spec.rb
|
315
358
|
- spec/aruba/jruby_spec.rb
|
359
|
+
- spec/aruba/matchers/command/have_output_size_spec.rb
|
316
360
|
- spec/aruba/matchers/command_spec.rb
|
317
361
|
- spec/aruba/matchers/directory_spec.rb
|
318
362
|
- spec/aruba/matchers/file_spec.rb
|
@@ -379,10 +423,13 @@ rubyforge_project:
|
|
379
423
|
rubygems_version: 2.4.5
|
380
424
|
signing_key:
|
381
425
|
specification_version: 4
|
382
|
-
summary: aruba-0.9.0.
|
426
|
+
summary: aruba-0.9.0.pre2
|
383
427
|
test_files:
|
428
|
+
- features/announce.feature
|
384
429
|
- features/api/command/extract_text.feature
|
385
430
|
- features/api/command/run.feature
|
431
|
+
- features/api/command/stop_all_commands.feature
|
432
|
+
- features/api/command/terminate_all_commands.feature
|
386
433
|
- features/api/command/unescape_text.feature
|
387
434
|
- features/api/command/which.feature
|
388
435
|
- features/api/core/expand_path.feature
|
@@ -397,7 +444,14 @@ test_files:
|
|
397
444
|
- features/api/filesystem/is_directory.feature
|
398
445
|
- features/api/filesystem/is_file.feature
|
399
446
|
- features/api/filesystem/is_relative.feature
|
447
|
+
- features/api/filesystem/move.feature
|
400
448
|
- features/cli/console.feature
|
449
|
+
- features/commands/debug_command.feature
|
450
|
+
- features/commands/environment_variables.feature
|
451
|
+
- features/commands/flushing.feature
|
452
|
+
- features/commands/interactive.feature
|
453
|
+
- features/commands/output/all_output.feature
|
454
|
+
- features/commands/output/stdout.feature
|
401
455
|
- features/configuration/console_history_file.feature
|
402
456
|
- features/configuration/exit_timeout.feature
|
403
457
|
- features/configuration/fixtures_directories.feature
|
@@ -409,40 +463,17 @@ test_files:
|
|
409
463
|
- features/configuration/physical_block_size.feature
|
410
464
|
- features/configuration/remove_ansi_escape_sequences.feature
|
411
465
|
- features/configuration/root_directory.feature
|
466
|
+
- features/configuration/usage.feature
|
412
467
|
- features/configuration/working_directory.feature
|
413
|
-
- features/
|
468
|
+
- features/core/cleanup_aruba_directory.feature
|
469
|
+
- features/development/build.feature
|
470
|
+
- features/development/test.feature
|
414
471
|
- features/file_system_commands.feature
|
415
|
-
- features/
|
416
|
-
- features/fixtures/cli-app/.rspec
|
417
|
-
- features/fixtures/cli-app/README.md
|
418
|
-
- features/fixtures/cli-app/Rakefile
|
419
|
-
- features/fixtures/cli-app/bin/cli
|
420
|
-
- features/fixtures/cli-app/cli-app.gemspec
|
421
|
-
- features/fixtures/cli-app/features/support/env.rb
|
422
|
-
- features/fixtures/cli-app/lib/cli/app.rb
|
423
|
-
- features/fixtures/cli-app/lib/cli/app/version.rb
|
424
|
-
- features/fixtures/cli-app/script/console
|
425
|
-
- features/fixtures/cli-app/spec/cli/app_spec.rb
|
426
|
-
- features/fixtures/cli-app/spec/spec_helper.rb
|
427
|
-
- features/fixtures/cli-app/spec/support/aruba.rb
|
428
|
-
- features/fixtures/copy/file.txt
|
429
|
-
- features/fixtures/empty-app/.gitignore
|
430
|
-
- features/fixtures/empty-app/.rspec
|
431
|
-
- features/fixtures/empty-app/README.md
|
432
|
-
- features/fixtures/empty-app/Rakefile
|
433
|
-
- features/fixtures/empty-app/bin/cli
|
434
|
-
- features/fixtures/empty-app/cli-app.gemspec
|
435
|
-
- features/fixtures/empty-app/lib/cli/app.rb
|
436
|
-
- features/fixtures/empty-app/lib/cli/app/version.rb
|
437
|
-
- features/fixtures/empty-app/script/console
|
438
|
-
- features/fixtures/empty-app/spec/spec_helper.rb
|
439
|
-
- features/fixtures/fixtures-app/test.txt
|
440
|
-
- features/fixtures/spawn_process/stderr.sh
|
441
|
-
- features/flushing.feature
|
472
|
+
- features/getting_started/supported_programming_languages.feature
|
442
473
|
- features/hooks/after/command.feature
|
443
474
|
- features/hooks/before/command.feature
|
444
475
|
- features/integration/rspec/getting_started.feature
|
445
|
-
- features/
|
476
|
+
- features/matchers/collection/include_an_object.feature
|
446
477
|
- features/matchers/directory/have_sub_directory.feature
|
447
478
|
- features/matchers/file/be_existing_file.feature
|
448
479
|
- features/matchers/file/have_file_content.feature
|
@@ -451,20 +482,30 @@ test_files:
|
|
451
482
|
- features/matchers/path/be_an_existing_path.feature
|
452
483
|
- features/matchers/path/have_permissions.feature
|
453
484
|
- features/matchers/timeouts.feature
|
454
|
-
- features/no_clobber.feature
|
455
485
|
- features/output.feature
|
456
486
|
- features/step_definitions/aruba_dev_steps.rb
|
487
|
+
- features/step_definitions/hooks.rb
|
457
488
|
- features/steps/commands/exit_statuses.feature
|
458
489
|
- features/steps/commands/in_process.feature
|
459
490
|
- features/steps/commands/run.feature
|
460
491
|
- features/steps/environment/home_variable.feature
|
461
492
|
- features/steps/environment/set_environment_variable.feature
|
493
|
+
- features/steps/filesystem/copy.feature
|
494
|
+
- features/steps/filesystem/create_directory.feature
|
495
|
+
- features/steps/filesystem/create_file.feature
|
462
496
|
- features/steps/filesystem/file_content.feature
|
497
|
+
- features/steps/filesystem/move.feature
|
498
|
+
- features/steps/filesystem/overwrite_file.feature
|
499
|
+
- features/steps/filesystem/use_fixture.feature
|
463
500
|
- features/support/aruba.rb
|
464
501
|
- features/support/env.rb
|
465
502
|
- features/support/jruby.rb
|
466
503
|
- features/support/simplecov_setup.rb
|
504
|
+
- features/usage/install.feature
|
467
505
|
- features/utf-8.feature
|
506
|
+
- spec/aruba/api/environment/restore_env_spec.rb
|
507
|
+
- spec/aruba/api/environment/set_env_spec.rb
|
508
|
+
- spec/aruba/api/filesystem/file_size_spec.rb
|
468
509
|
- spec/aruba/api/runtime_spec.rb
|
469
510
|
- spec/aruba/api_spec.rb
|
470
511
|
- spec/aruba/aruba_path_spec.rb
|
@@ -473,6 +514,7 @@ test_files:
|
|
473
514
|
- spec/aruba/configuration_spec.rb
|
474
515
|
- spec/aruba/hooks_spec.rb
|
475
516
|
- spec/aruba/jruby_spec.rb
|
517
|
+
- spec/aruba/matchers/command/have_output_size_spec.rb
|
476
518
|
- spec/aruba/matchers/command_spec.rb
|
477
519
|
- spec/aruba/matchers/directory_spec.rb
|
478
520
|
- spec/aruba/matchers/file_spec.rb
|