aruba 0.7.4 → 0.8.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.nav +12 -0
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +12 -0
  6. data/.simplecov +2 -0
  7. data/.travis.yml +5 -6
  8. data/Gemfile +53 -26
  9. data/History.md +17 -0
  10. data/LICENSE +1 -1
  11. data/README.md +45 -19
  12. data/Rakefile +12 -2
  13. data/TODO.md +3 -0
  14. data/aruba.gemspec +19 -8
  15. data/cucumber.yml +1 -1
  16. data/features/api/cd.feature +119 -0
  17. data/features/api/command/run.feature +37 -0
  18. data/features/api/command/which.feature +37 -0
  19. data/features/api/environment/append_environment_variable.feature +118 -0
  20. data/features/api/environment/prepend_environment_variable.feature +118 -0
  21. data/features/api/environment/set_environment_variable.feature +252 -0
  22. data/features/configuration/exit_timeout.feature +51 -0
  23. data/features/configuration/fixtures_directories.feature +31 -0
  24. data/features/configuration/fixtures_path_prefix.feature +24 -0
  25. data/features/configuration/io_timeout.feature +31 -0
  26. data/features/configuration/keep_ansi.feature +31 -0
  27. data/features/configuration/root_directory.feature +31 -0
  28. data/features/configuration/working_directory.feature +32 -0
  29. data/features/fixtures/cli-app/.gitignore +9 -0
  30. data/features/fixtures/cli-app/.rspec +2 -0
  31. data/features/fixtures/cli-app/README.md +34 -0
  32. data/features/fixtures/cli-app/Rakefile +1 -0
  33. data/features/fixtures/cli-app/bin/cli +6 -0
  34. data/features/fixtures/cli-app/cli-app.gemspec +26 -0
  35. data/features/fixtures/cli-app/features/support/env.rb +1 -0
  36. data/features/fixtures/cli-app/lib/cli/app.rb +13 -0
  37. data/features/fixtures/cli-app/lib/cli/app/version.rb +5 -0
  38. data/features/fixtures/cli-app/script/console +14 -0
  39. data/features/fixtures/cli-app/spec/cli/app_spec.rb +7 -0
  40. data/features/fixtures/cli-app/spec/spec_helper.rb +10 -0
  41. data/features/fixtures/copy/file.txt +1 -1
  42. data/features/hooks/after/command.feature +34 -0
  43. data/features/hooks/before/command.feature +61 -0
  44. data/features/matchers/directory/have_sub_directory.feature +110 -0
  45. data/features/matchers/file/be_existing_file.feature +82 -0
  46. data/features/matchers/file/have_file_content.feature +123 -0
  47. data/features/matchers/file/have_file_size.feature +107 -0
  48. data/features/matchers/path/be_an_absolute_path.feature +74 -0
  49. data/features/matchers/path/be_an_existing_path.feature +97 -0
  50. data/features/matchers/path/have_permissions.feature +118 -0
  51. data/features/matchers/timeouts.feature +48 -0
  52. data/features/step_definitions/aruba_dev_steps.rb +69 -1
  53. data/features/steps/commands/exit_statuses.feature +136 -0
  54. data/features/steps/commands/in_process.feature +129 -0
  55. data/features/steps/commands/run.feature +36 -0
  56. data/features/steps/environment/home_variable.feature +49 -0
  57. data/features/steps/environment/set_environment_variable.feature +34 -0
  58. data/features/support/aruba.rb +5 -0
  59. data/features/support/env.rb +8 -4
  60. data/lib/aruba.rb +20 -8
  61. data/lib/aruba/announcer.rb +1 -0
  62. data/lib/aruba/api.rb +18 -1179
  63. data/lib/aruba/api/command.rb +351 -0
  64. data/lib/aruba/api/core.rb +141 -0
  65. data/lib/aruba/api/deprecated.rb +549 -0
  66. data/lib/aruba/api/environment.rb +61 -0
  67. data/lib/aruba/api/filesystem.rb +305 -0
  68. data/lib/aruba/api/rvm.rb +39 -0
  69. data/lib/aruba/aruba_path.rb +75 -0
  70. data/lib/aruba/basic_configuration.rb +208 -0
  71. data/lib/aruba/basic_configuration/option.rb +25 -0
  72. data/lib/aruba/config.rb +43 -30
  73. data/lib/aruba/config/jruby.rb +14 -0
  74. data/lib/aruba/config_wrapper.rb +17 -0
  75. data/lib/aruba/contracts/relative_path.rb +13 -0
  76. data/lib/aruba/creators/aruba_file_creator.rb +32 -0
  77. data/lib/aruba/creators/aruba_fixed_size_file_creator.rb +32 -0
  78. data/lib/aruba/cucumber.rb +87 -53
  79. data/lib/aruba/cucumber/hooks.rb +65 -10
  80. data/lib/aruba/environment.rb +121 -0
  81. data/lib/aruba/errors.rb +3 -0
  82. data/lib/aruba/extensions/string/strip.rb +24 -0
  83. data/lib/aruba/hooks.rb +54 -0
  84. data/lib/aruba/jruby.rb +4 -9
  85. data/lib/aruba/matchers/command.rb +1 -79
  86. data/lib/aruba/matchers/command/be_successfully_executed.rb +30 -0
  87. data/lib/aruba/matchers/command/have_exit_status.rb +47 -0
  88. data/lib/aruba/matchers/command/have_finished_in_time.rb +42 -0
  89. data/lib/aruba/matchers/directory.rb +1 -59
  90. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +34 -0
  91. data/lib/aruba/matchers/directory/have_sub_directory.rb +49 -0
  92. data/lib/aruba/matchers/file.rb +1 -177
  93. data/lib/aruba/matchers/file/be_an_existing_file.rb +34 -0
  94. data/lib/aruba/matchers/file/have_file_content.rb +58 -0
  95. data/lib/aruba/matchers/file/have_file_size.rb +43 -0
  96. data/lib/aruba/matchers/file/have_same_file_content.rb +44 -0
  97. data/lib/aruba/matchers/path.rb +1 -99
  98. data/lib/aruba/matchers/path/a_path_matching_pattern.rb +21 -0
  99. data/lib/aruba/matchers/path/be_an_absolute_path.rb +32 -0
  100. data/lib/aruba/matchers/path/be_an_existing_path.rb +33 -0
  101. data/lib/aruba/matchers/path/have_permissions.rb +60 -0
  102. data/lib/aruba/matchers/path/match_path_pattern.rb +41 -0
  103. data/lib/aruba/matchers/rspec.rb +0 -0
  104. data/lib/aruba/matchers/rspec_matcher_include_regexp.rb +1 -1
  105. data/lib/aruba/platform.rb +230 -0
  106. data/lib/aruba/process_monitor.rb +23 -5
  107. data/lib/aruba/processes/basic_process.rb +35 -1
  108. data/lib/aruba/processes/debug_process.rb +26 -15
  109. data/lib/aruba/processes/in_process.rb +21 -9
  110. data/lib/aruba/processes/spawn_process.rb +29 -19
  111. data/lib/aruba/reporting.rb +2 -0
  112. data/lib/aruba/rspec.rb +61 -13
  113. data/lib/aruba/runtime.rb +33 -0
  114. data/script/bootstrap +4 -6
  115. data/spec/aruba/api/runtime_spec.rb +28 -0
  116. data/spec/aruba/api_spec.rb +129 -126
  117. data/spec/aruba/aruba_path_spec.rb +65 -0
  118. data/spec/aruba/basic_configuration_spec.rb +5 -0
  119. data/spec/aruba/config_wrapper_spec.rb +25 -0
  120. data/spec/aruba/configuration_spec.rb +5 -0
  121. data/spec/aruba/jruby_spec.rb +34 -18
  122. data/spec/aruba/matchers/directory_spec.rb +6 -7
  123. data/spec/aruba/matchers/file_spec.rb +16 -20
  124. data/spec/aruba/matchers/path_spec.rb +14 -11
  125. data/spec/aruba/rspec_spec.rb +15 -0
  126. data/spec/aruba/runtime_spec.rb +29 -0
  127. data/spec/aruba/spawn_process_spec.rb +2 -2
  128. data/spec/spec_helper.rb +10 -2
  129. data/spec/support/configs/rspec.rb +1 -1
  130. data/spec/support/matchers/option.rb +35 -0
  131. data/spec/support/shared_contexts/aruba.rb +10 -8
  132. data/spec/support/shared_examples/configuration.rb +116 -0
  133. metadata +182 -33
  134. data/.rvmrc +0 -1
  135. data/features/before_cmd_hooks.feature +0 -61
  136. data/features/command_environment_variables.feature +0 -31
  137. data/features/custom_ruby_process.feature +0 -12
  138. data/features/exit_statuses.feature +0 -30
  139. data/features/support/custom_main.rb +0 -28
  140. data/lib/aruba/matchers/mode.rb +0 -52
  141. data/lib/aruba/utils.rb +0 -21
@@ -11,5 +11,5 @@ RSpec.configure do |config|
11
11
  end
12
12
 
13
13
  config.include Aruba::Api
14
- config.before(:each) { clean_current_directory }
14
+ config.before(:each) { setup_aruba }
15
15
  end
@@ -0,0 +1,35 @@
1
+ RSpec::Matchers.define :be_valid_option do |_|
2
+ match do |actual|
3
+ subject.option?(actual)
4
+ end
5
+
6
+ failure_message do |actual|
7
+ format("expected that \"%s\" is a valid option", actual)
8
+ end
9
+
10
+ failure_message_when_negated do |actual|
11
+ format("expected that \"%s\" is not a valid option", actual)
12
+ end
13
+ end
14
+
15
+ RSpec::Matchers.define :have_option_value do |expected|
16
+ match do |actual|
17
+ @old_actual = actual
18
+ @actual = if RUBY_VERSION < '1.9'
19
+ subject.send(actual.to_sym)
20
+ else
21
+ subject.public_send(actual.to_sym)
22
+ end
23
+ values_match? expected, @actual
24
+ end
25
+
26
+ diffable
27
+
28
+ failure_message do |_actual|
29
+ format(%(expected that option "%s" has value "%s"), @old_actual, expected)
30
+ end
31
+
32
+ failure_message_when_negated do |_actual|
33
+ format(%(expected that option "%s" does not have value "%s"), @old_actual, expected)
34
+ end
35
+ end
@@ -1,3 +1,5 @@
1
+ require 'fileutils'
2
+
1
3
  RSpec.shared_context 'uses aruba API' do
2
4
  def random_string(options = {})
3
5
  options[:prefix].to_s + SecureRandom.hex + options[:suffix].to_s
@@ -26,15 +28,9 @@ RSpec.shared_context 'uses aruba API' do
26
28
 
27
29
  @file_name = "test.txt"
28
30
  @file_size = 256
29
- @file_path = File.join(@aruba.current_directory, @file_name)
31
+ @file_path = @aruba.expand_path(@file_name)
30
32
 
31
- (@aruba.dirs.length - 1).times do |depth| #Ensure all parent dirs exists
32
- dir = File.join(*@aruba.dirs[0..depth])
33
- Dir.mkdir(dir) unless File.exist?(dir)
34
- end
35
- raise "We must work with relative paths, everything else is dangerous" if ?/ == @aruba.current_directory[0]
36
- FileUtils.rm_rf(@aruba.current_directory)
37
- Dir.mkdir(@aruba.current_directory)
33
+ raise "We must work with relative paths, everything else is dangerous" if ?/ == @aruba.aruba.current_directory[0]
38
34
  end
39
35
  end
40
36
 
@@ -43,3 +39,9 @@ RSpec.shared_context 'needs to expand paths' do
43
39
  @aruba.expand_path(*args)
44
40
  end
45
41
  end
42
+
43
+ RSpec.shared_context 'needs to run with environment' do
44
+ def with_environment(*args, &block)
45
+ @aruba.with_environment(*args, &block)
46
+ end
47
+ end
@@ -0,0 +1,116 @@
1
+ RSpec.shared_examples 'a basic configuration' do
2
+ subject(:config) do
3
+ Class.new(described_class) do
4
+ option_accessor :use_test, :contract => { Contracts::Bool => Contracts::Bool }, :default => false
5
+ end.new
6
+ end
7
+
8
+ it { expect(config).not_to be_nil }
9
+
10
+ describe '.option_reader' do
11
+ let(:config_klass) { Class.new(described_class) }
12
+
13
+ subject(:config) { config_klass.new }
14
+
15
+ before :each do
16
+ config_klass.option_reader :new_opt, :contract => { Contracts::Num => Contracts::Num }, :default => 1
17
+ end
18
+
19
+ context 'when value is read' do
20
+ it { expect(config.new_opt).to eq 1 }
21
+ end
22
+
23
+ context 'when one tries to write a value' do
24
+ it { expect{ config.new_opt = 1}.to raise_error NoMethodError }
25
+ end
26
+
27
+ context 'when block is defined' do
28
+ before :each do
29
+ config_klass.option_reader :new_opt2, :contract => { Contracts::Num => Contracts::Num } do |c|
30
+ c.new_opt.value + 1
31
+ end
32
+ end
33
+
34
+ it { expect(config.new_opt2).to eq 2 }
35
+ end
36
+
37
+ context 'when block and default value is defined' do
38
+ it do
39
+ expect do
40
+ config_klass.option_accessor :new_opt2, :contract => { Contracts::Num => Contracts::Num }, :default => 2 do |c|
41
+ c.new_opt.value + 1
42
+ end
43
+ end.to raise_error ArgumentError, 'Either use block or default value'
44
+ end
45
+ end
46
+ end
47
+
48
+ describe '.option_accessor' do
49
+ let(:config_klass) { Class.new(described_class) }
50
+
51
+ subject(:config) { config_klass.new }
52
+
53
+ before :each do
54
+ config_klass.option_accessor :new_opt, :contract => { Contracts::Num => Contracts::Num }, :default => 1
55
+ end
56
+
57
+ context 'when default is used' do
58
+ it { expect(config.new_opt).to eq 1 }
59
+ end
60
+
61
+ context 'when is modified' do
62
+ before(:each) { config.new_opt = 2 }
63
+
64
+ it { expect(config.new_opt).to eq 2 }
65
+ end
66
+
67
+ context 'when block is defined' do
68
+ before :each do
69
+ config_klass.option_accessor :new_opt2, :contract => { Contracts::Num => Contracts::Num } do |c|
70
+ c.new_opt.value + 1
71
+ end
72
+ end
73
+
74
+ it { expect(config.new_opt2).to eq 2 }
75
+ end
76
+
77
+ context 'when block and default value is defined' do
78
+ it do
79
+ expect do
80
+ config_klass.option_accessor :new_opt2, :contract => { Contracts::Num => Contracts::Num }, :default => 2 do |c|
81
+ c.new_opt1 + 1
82
+ end
83
+ end.to raise_error ArgumentError, 'Either use block or default value'
84
+ end
85
+ end
86
+ end
87
+
88
+ describe 'option?' do
89
+ let(:name) { :use_test }
90
+
91
+ context 'when valid option' do
92
+ it { expect(name).to be_valid_option }
93
+ end
94
+
95
+ context 'when invalid_option' do
96
+ let(:name) { :blub }
97
+ it { expect(name).not_to be_valid_option }
98
+ end
99
+ end
100
+
101
+ describe 'set_if_option' do
102
+ let(:name) { :use_test }
103
+ let(:value) { true }
104
+
105
+ context 'when valid option' do
106
+ before(:each) { config.set_if_option(name, value) }
107
+ it { expect(name).to have_option_value true }
108
+ end
109
+
110
+ context 'when invalid_option' do
111
+ let(:name) { :blub }
112
+
113
+ it { expect { config.set_if_option(name, value) }.not_to raise_error }
114
+ end
115
+ end
116
+ end
metadata CHANGED
@@ -1,60 +1,76 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aruba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  - David Chelimsky
9
9
  - Mike Sassak
10
10
  - Matt Wynne
11
+ - Jarl Friis
12
+ - Dennis Günnewig
11
13
  autorequire:
12
14
  bindir: bin
13
15
  cert_chain: []
14
- date: 2015-07-05 00:00:00.000000000 Z
16
+ date: 2015-07-09 00:00:00.000000000 Z
15
17
  dependencies:
16
18
  - !ruby/object:Gem::Dependency
17
19
  name: cucumber
18
20
  requirement: !ruby/object:Gem::Requirement
19
21
  requirements:
20
- - - ">="
22
+ - - "~>"
21
23
  - !ruby/object:Gem::Version
22
- version: 1.1.1
24
+ version: 1.3.19
23
25
  type: :runtime
24
26
  prerelease: false
25
27
  version_requirements: !ruby/object:Gem::Requirement
26
28
  requirements:
27
- - - ">="
29
+ - - "~>"
28
30
  - !ruby/object:Gem::Version
29
- version: 1.1.1
31
+ version: 1.3.19
30
32
  - !ruby/object:Gem::Dependency
31
33
  name: childprocess
32
34
  requirement: !ruby/object:Gem::Requirement
33
35
  requirements:
34
- - - ">="
36
+ - - "~>"
35
37
  - !ruby/object:Gem::Version
36
- version: 0.3.6
38
+ version: 0.5.6
37
39
  type: :runtime
38
40
  prerelease: false
39
41
  version_requirements: !ruby/object:Gem::Requirement
40
42
  requirements:
41
- - - ">="
43
+ - - "~>"
42
44
  - !ruby/object:Gem::Version
43
- version: 0.3.6
45
+ version: 0.5.6
44
46
  - !ruby/object:Gem::Dependency
45
47
  name: rspec-expectations
46
48
  requirement: !ruby/object:Gem::Requirement
47
49
  requirements:
48
- - - ">="
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '3.3'
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '3.3'
60
+ - !ruby/object:Gem::Dependency
61
+ name: contracts
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
49
65
  - !ruby/object:Gem::Version
50
- version: 2.7.0
66
+ version: '0.9'
51
67
  type: :runtime
52
68
  prerelease: false
53
69
  version_requirements: !ruby/object:Gem::Requirement
54
70
  requirements:
55
- - - ">="
71
+ - - "~>"
56
72
  - !ruby/object:Gem::Version
57
- version: 2.7.0
73
+ version: '0.9'
58
74
  - !ruby/object:Gem::Dependency
59
75
  name: bundler
60
76
  requirement: !ruby/object:Gem::Requirement
@@ -69,7 +85,8 @@ dependencies:
69
85
  - - "~>"
70
86
  - !ruby/object:Gem::Version
71
87
  version: 1.10.2
72
- description: CLI Steps for Cucumber, hand-crafted for you in Aruba
88
+ description: Extension for popular TDD and BDD frameworks like "Cucumber" and "RSpec"
89
+ to make testing commandline applications meaningful, easy and fun.
73
90
  email: cukes@googlegroups.com
74
91
  executables: []
75
92
  extensions: []
@@ -77,9 +94,9 @@ extra_rdoc_files: []
77
94
  files:
78
95
  - ".document"
79
96
  - ".gitignore"
97
+ - ".nav"
80
98
  - ".rspec"
81
99
  - ".rubocop.yml"
82
- - ".rvmrc"
83
100
  - ".simplecov"
84
101
  - ".travis.yml"
85
102
  - ".yardopts"
@@ -89,25 +106,62 @@ files:
89
106
  - LICENSE
90
107
  - README.md
91
108
  - Rakefile
109
+ - TODO.md
92
110
  - aruba.gemspec
93
111
  - config/.gitignore
94
112
  - cucumber.yml
95
113
  - doc/dependency_decisions.yml
96
- - features/before_cmd_hooks.feature
97
- - features/command_environment_variables.feature
98
- - features/custom_ruby_process.feature
114
+ - features/api/cd.feature
115
+ - features/api/command/run.feature
116
+ - features/api/command/which.feature
117
+ - features/api/environment/append_environment_variable.feature
118
+ - features/api/environment/prepend_environment_variable.feature
119
+ - features/api/environment/set_environment_variable.feature
120
+ - features/configuration/exit_timeout.feature
121
+ - features/configuration/fixtures_directories.feature
122
+ - features/configuration/fixtures_path_prefix.feature
123
+ - features/configuration/io_timeout.feature
124
+ - features/configuration/keep_ansi.feature
125
+ - features/configuration/root_directory.feature
126
+ - features/configuration/working_directory.feature
99
127
  - features/debug.feature
100
- - features/exit_statuses.feature
101
128
  - features/file_system_commands.feature
129
+ - features/fixtures/cli-app/.gitignore
130
+ - features/fixtures/cli-app/.rspec
131
+ - features/fixtures/cli-app/README.md
132
+ - features/fixtures/cli-app/Rakefile
133
+ - features/fixtures/cli-app/bin/cli
134
+ - features/fixtures/cli-app/cli-app.gemspec
135
+ - features/fixtures/cli-app/features/support/env.rb
136
+ - features/fixtures/cli-app/lib/cli/app.rb
137
+ - features/fixtures/cli-app/lib/cli/app/version.rb
138
+ - features/fixtures/cli-app/script/console
139
+ - features/fixtures/cli-app/spec/cli/app_spec.rb
140
+ - features/fixtures/cli-app/spec/spec_helper.rb
102
141
  - features/fixtures/copy/file.txt
103
142
  - features/fixtures/fixtures-app/test.txt
104
143
  - features/fixtures/spawn_process/stderr.sh
105
144
  - features/flushing.feature
145
+ - features/hooks/after/command.feature
146
+ - features/hooks/before/command.feature
106
147
  - features/interactive.feature
148
+ - features/matchers/directory/have_sub_directory.feature
149
+ - features/matchers/file/be_existing_file.feature
150
+ - features/matchers/file/have_file_content.feature
151
+ - features/matchers/file/have_file_size.feature
152
+ - features/matchers/path/be_an_absolute_path.feature
153
+ - features/matchers/path/be_an_existing_path.feature
154
+ - features/matchers/path/have_permissions.feature
155
+ - features/matchers/timeouts.feature
107
156
  - features/no_clobber.feature
108
157
  - features/output.feature
109
158
  - features/step_definitions/aruba_dev_steps.rb
110
- - features/support/custom_main.rb
159
+ - features/steps/commands/exit_statuses.feature
160
+ - features/steps/commands/in_process.feature
161
+ - features/steps/commands/run.feature
162
+ - features/steps/environment/home_variable.feature
163
+ - features/steps/environment/set_environment_variable.feature
164
+ - features/support/aruba.rb
111
165
  - features/support/env.rb
112
166
  - features/support/jruby.rb
113
167
  - features/support/simplecov_setup.rb
@@ -115,18 +169,50 @@ files:
115
169
  - lib/aruba.rb
116
170
  - lib/aruba/announcer.rb
117
171
  - lib/aruba/api.rb
172
+ - lib/aruba/api/command.rb
173
+ - lib/aruba/api/core.rb
174
+ - lib/aruba/api/deprecated.rb
175
+ - lib/aruba/api/environment.rb
176
+ - lib/aruba/api/filesystem.rb
177
+ - lib/aruba/api/rvm.rb
178
+ - lib/aruba/aruba_path.rb
179
+ - lib/aruba/basic_configuration.rb
180
+ - lib/aruba/basic_configuration/option.rb
118
181
  - lib/aruba/config.rb
182
+ - lib/aruba/config/jruby.rb
183
+ - lib/aruba/config_wrapper.rb
184
+ - lib/aruba/contracts/relative_path.rb
185
+ - lib/aruba/creators/aruba_file_creator.rb
186
+ - lib/aruba/creators/aruba_fixed_size_file_creator.rb
119
187
  - lib/aruba/cucumber.rb
120
188
  - lib/aruba/cucumber/hooks.rb
189
+ - lib/aruba/environment.rb
121
190
  - lib/aruba/errors.rb
191
+ - lib/aruba/extensions/string/strip.rb
192
+ - lib/aruba/hooks.rb
122
193
  - lib/aruba/in_process.rb
123
194
  - lib/aruba/jruby.rb
124
195
  - lib/aruba/matchers/command.rb
196
+ - lib/aruba/matchers/command/be_successfully_executed.rb
197
+ - lib/aruba/matchers/command/have_exit_status.rb
198
+ - lib/aruba/matchers/command/have_finished_in_time.rb
125
199
  - lib/aruba/matchers/directory.rb
200
+ - lib/aruba/matchers/directory/be_an_existing_directory.rb
201
+ - lib/aruba/matchers/directory/have_sub_directory.rb
126
202
  - lib/aruba/matchers/file.rb
127
- - lib/aruba/matchers/mode.rb
203
+ - lib/aruba/matchers/file/be_an_existing_file.rb
204
+ - lib/aruba/matchers/file/have_file_content.rb
205
+ - lib/aruba/matchers/file/have_file_size.rb
206
+ - lib/aruba/matchers/file/have_same_file_content.rb
128
207
  - lib/aruba/matchers/path.rb
208
+ - lib/aruba/matchers/path/a_path_matching_pattern.rb
209
+ - lib/aruba/matchers/path/be_an_absolute_path.rb
210
+ - lib/aruba/matchers/path/be_an_existing_path.rb
211
+ - lib/aruba/matchers/path/have_permissions.rb
212
+ - lib/aruba/matchers/path/match_path_pattern.rb
213
+ - lib/aruba/matchers/rspec.rb
129
214
  - lib/aruba/matchers/rspec_matcher_include_regexp.rb
215
+ - lib/aruba/platform.rb
130
216
  - lib/aruba/process_monitor.rb
131
217
  - lib/aruba/processes/basic_process.rb
132
218
  - lib/aruba/processes/debug_process.rb
@@ -134,18 +220,25 @@ files:
134
220
  - lib/aruba/processes/spawn_process.rb
135
221
  - lib/aruba/reporting.rb
136
222
  - lib/aruba/rspec.rb
223
+ - lib/aruba/runtime.rb
137
224
  - lib/aruba/spawn_process.rb
138
- - lib/aruba/utils.rb
139
225
  - script/bootstrap
140
226
  - script/console
141
227
  - script/test
228
+ - spec/aruba/api/runtime_spec.rb
142
229
  - spec/aruba/api_spec.rb
230
+ - spec/aruba/aruba_path_spec.rb
231
+ - spec/aruba/basic_configuration_spec.rb
232
+ - spec/aruba/config_wrapper_spec.rb
233
+ - spec/aruba/configuration_spec.rb
143
234
  - spec/aruba/hooks_spec.rb
144
235
  - spec/aruba/jruby_spec.rb
145
236
  - spec/aruba/matchers/command_spec.rb
146
237
  - spec/aruba/matchers/directory_spec.rb
147
238
  - spec/aruba/matchers/file_spec.rb
148
239
  - spec/aruba/matchers/path_spec.rb
240
+ - spec/aruba/rspec_spec.rb
241
+ - spec/aruba/runtime_spec.rb
149
242
  - spec/aruba/spawn_process_spec.rb
150
243
  - spec/spec_helper.rb
151
244
  - spec/support/configs/.keep
@@ -153,9 +246,11 @@ files:
153
246
  - spec/support/helpers/.keep
154
247
  - spec/support/helpers/reporting.rb
155
248
  - spec/support/matchers/.keep
249
+ - spec/support/matchers/option.rb
156
250
  - spec/support/shared_contexts/.keep
157
251
  - spec/support/shared_contexts/aruba.rb
158
252
  - spec/support/shared_examples/.keep
253
+ - spec/support/shared_examples/configuration.rb
159
254
  - spec/support/shared_examples/directory.rb
160
255
  - spec/support/shared_examples/file.rb
161
256
  - templates/css/console.css
@@ -175,7 +270,16 @@ homepage: http://github.com/cucumber/aruba
175
270
  licenses:
176
271
  - MIT
177
272
  metadata: {}
178
- post_install_message: From aruba >= 1.0 ruby 1.9.3-support is discontinued
273
+ post_install_message: |
274
+ With aruba >= 1.0
275
+ * "ruby 1.8.7"-support is discontinued
276
+ * aruba requires "cucumber 2" for the feature steps. The rest of aruba should be usable by whatever testing framework you are using
277
+ * Overwriting methods for configuration is discontinued. You need to use `aruba.config.<variable>` or `Aruba.configure { |config| config.<variable>` instead
278
+ * "aruba/reporting" will be removed. Please use `@debug`-tag + `byebug`, `debugger`, `pry` to troubleshoot your feature tests
279
+ * Set environment variables will have only effect on `#run` and the like + `#with_environment { }`
280
+ * The process environment will be fully resetted between tests. Sharing state via ENV['VAR'] = 'shared state' between tests will not be possible anymore. Please make that obvious by using explicit steps or use the aruba API for that.
281
+ * There will be a major cleanup for command execution. There will be only `run` and `run_simple` left. `run_interactive` is replaced by `run`.
282
+ * Setting the root directory of aruba via method overwrite or configuration - this should be your project root directory where the test suite is run
179
283
  rdoc_options:
180
284
  - "--charset=UTF-8"
181
285
  require_paths:
@@ -184,45 +288,88 @@ required_ruby_version: !ruby/object:Gem::Requirement
184
288
  requirements:
185
289
  - - ">="
186
290
  - !ruby/object:Gem::Version
187
- version: '0'
291
+ version: 1.8.7
188
292
  required_rubygems_version: !ruby/object:Gem::Requirement
189
293
  requirements:
190
- - - ">="
294
+ - - ">"
191
295
  - !ruby/object:Gem::Version
192
- version: '0'
296
+ version: 1.3.1
193
297
  requirements: []
194
298
  rubyforge_project:
195
299
  rubygems_version: 2.4.5
196
300
  signing_key:
197
301
  specification_version: 4
198
- summary: aruba-0.7.4
302
+ summary: aruba-0.8.0.pre
199
303
  test_files:
200
- - features/before_cmd_hooks.feature
201
- - features/command_environment_variables.feature
202
- - features/custom_ruby_process.feature
304
+ - features/api/cd.feature
305
+ - features/api/command/run.feature
306
+ - features/api/command/which.feature
307
+ - features/api/environment/append_environment_variable.feature
308
+ - features/api/environment/prepend_environment_variable.feature
309
+ - features/api/environment/set_environment_variable.feature
310
+ - features/configuration/exit_timeout.feature
311
+ - features/configuration/fixtures_directories.feature
312
+ - features/configuration/fixtures_path_prefix.feature
313
+ - features/configuration/io_timeout.feature
314
+ - features/configuration/keep_ansi.feature
315
+ - features/configuration/root_directory.feature
316
+ - features/configuration/working_directory.feature
203
317
  - features/debug.feature
204
- - features/exit_statuses.feature
205
318
  - features/file_system_commands.feature
319
+ - features/fixtures/cli-app/.gitignore
320
+ - features/fixtures/cli-app/.rspec
321
+ - features/fixtures/cli-app/README.md
322
+ - features/fixtures/cli-app/Rakefile
323
+ - features/fixtures/cli-app/bin/cli
324
+ - features/fixtures/cli-app/cli-app.gemspec
325
+ - features/fixtures/cli-app/features/support/env.rb
326
+ - features/fixtures/cli-app/lib/cli/app.rb
327
+ - features/fixtures/cli-app/lib/cli/app/version.rb
328
+ - features/fixtures/cli-app/script/console
329
+ - features/fixtures/cli-app/spec/cli/app_spec.rb
330
+ - features/fixtures/cli-app/spec/spec_helper.rb
206
331
  - features/fixtures/copy/file.txt
207
332
  - features/fixtures/fixtures-app/test.txt
208
333
  - features/fixtures/spawn_process/stderr.sh
209
334
  - features/flushing.feature
335
+ - features/hooks/after/command.feature
336
+ - features/hooks/before/command.feature
210
337
  - features/interactive.feature
338
+ - features/matchers/directory/have_sub_directory.feature
339
+ - features/matchers/file/be_existing_file.feature
340
+ - features/matchers/file/have_file_content.feature
341
+ - features/matchers/file/have_file_size.feature
342
+ - features/matchers/path/be_an_absolute_path.feature
343
+ - features/matchers/path/be_an_existing_path.feature
344
+ - features/matchers/path/have_permissions.feature
345
+ - features/matchers/timeouts.feature
211
346
  - features/no_clobber.feature
212
347
  - features/output.feature
213
348
  - features/step_definitions/aruba_dev_steps.rb
214
- - features/support/custom_main.rb
349
+ - features/steps/commands/exit_statuses.feature
350
+ - features/steps/commands/in_process.feature
351
+ - features/steps/commands/run.feature
352
+ - features/steps/environment/home_variable.feature
353
+ - features/steps/environment/set_environment_variable.feature
354
+ - features/support/aruba.rb
215
355
  - features/support/env.rb
216
356
  - features/support/jruby.rb
217
357
  - features/support/simplecov_setup.rb
218
358
  - features/utf-8.feature
359
+ - spec/aruba/api/runtime_spec.rb
219
360
  - spec/aruba/api_spec.rb
361
+ - spec/aruba/aruba_path_spec.rb
362
+ - spec/aruba/basic_configuration_spec.rb
363
+ - spec/aruba/config_wrapper_spec.rb
364
+ - spec/aruba/configuration_spec.rb
220
365
  - spec/aruba/hooks_spec.rb
221
366
  - spec/aruba/jruby_spec.rb
222
367
  - spec/aruba/matchers/command_spec.rb
223
368
  - spec/aruba/matchers/directory_spec.rb
224
369
  - spec/aruba/matchers/file_spec.rb
225
370
  - spec/aruba/matchers/path_spec.rb
371
+ - spec/aruba/rspec_spec.rb
372
+ - spec/aruba/runtime_spec.rb
226
373
  - spec/aruba/spawn_process_spec.rb
227
374
  - spec/spec_helper.rb
228
375
  - spec/support/configs/.keep
@@ -230,9 +377,11 @@ test_files:
230
377
  - spec/support/helpers/.keep
231
378
  - spec/support/helpers/reporting.rb
232
379
  - spec/support/matchers/.keep
380
+ - spec/support/matchers/option.rb
233
381
  - spec/support/shared_contexts/.keep
234
382
  - spec/support/shared_contexts/aruba.rb
235
383
  - spec/support/shared_examples/.keep
384
+ - spec/support/shared_examples/configuration.rb
236
385
  - spec/support/shared_examples/directory.rb
237
386
  - spec/support/shared_examples/file.rb
238
387
  has_rdoc: