aruba 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,9 @@
1
+ == 0.3.7
2
+
3
+ * Make Aruba::Api#get_process return the last executed process with passed cmd (Potapov Sergey)
4
+ * Replace announce with puts to comply with cucumber 0.10.6 (Aslak Hellesøy)
5
+ * Fix childprocess STDIN to be synchronous (#40, #71 Tim Ekl)
6
+
1
7
  == 0.3.6
2
8
 
3
9
  * Changed default value of @aruba_timeout_seconds from 1 to 3. (Aslak Hellesøy)
data/README.rdoc CHANGED
@@ -41,6 +41,11 @@ If you want to change this behaviour put this into your <tt>features/support/env
41
41
  @dirs = ["somewhere/else"]
42
42
  end
43
43
 
44
+ If testing an executable in your project's `bin` directory, it might not be in the path Aruba
45
+ uses. An easy way to set it is to put the following in <tt>features/support/env.rb</tt>:
46
+
47
+ ENV['PATH'] = "#{File.expand_path(File.dirname(__FILE__) + '/../../bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
48
+
44
49
  Set <tt>@aruba_timeout_seconds</tt> to control the amount of time Aruba will wait for a process to
45
50
  finish running before terminating it:
46
51
 
data/aruba.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'aruba'
5
- s.version = '0.3.6'
5
+ s.version = '0.3.7'
6
6
  s.authors = ["Aslak Hellesøy", "David Chelimsky", "Mike Sassak"]
7
7
  s.description = 'CLI Steps for Cucumber, hand-crafted for you in Aruba'
8
8
  s.summary = "aruba-#{s.version}"
9
9
  s.email = 'cukes@googlegroups.com'
10
10
  s.homepage = 'http://github.com/aslakhellesoy/aruba'
11
11
 
12
- s.add_dependency 'cucumber', '>= 0.10.0'
13
- s.add_dependency 'childprocess', '>= 0.1.7'
14
- s.add_dependency 'rspec', '>= 2.5.0'
12
+ s.add_dependency 'cucumber', '>= 0.10.5'
13
+ s.add_dependency 'childprocess', '>= 0.1.9'
14
+ s.add_dependency 'rspec', '>= 2.6.0'
15
15
 
16
16
  s.rubygems_version = ">= 1.6.1"
17
17
  s.files = `git ls-files`.split("\n")
@@ -203,3 +203,11 @@ Feature: Output
203
203
 
204
204
  @wip
205
205
  Scenario: Detect output from named source with custom name
206
+
207
+ Scenario: Detect second output from named source with custom name
208
+ When I set env varibable "ARUBA_TEST_VAR" to "first"
209
+ And I run `ruby -e 'puts ENV[%q(ARUBA_TEST_VAR)]'`
210
+ Then the output from "ruby -e 'puts ENV[%q(ARUBA_TEST_VAR)]'" should contain "first"
211
+ When I set env varibable "ARUBA_TEST_VAR" to "second"
212
+ And I run `ruby -e 'puts ENV[%q(ARUBA_TEST_VAR)]'`
213
+ Then the output from "ruby -e 'puts ENV[%q(ARUBA_TEST_VAR)]'" should contain "second"
@@ -11,6 +11,10 @@ When /^sleep (\d+)$/ do |time|
11
11
  sleep time.to_i
12
12
  end
13
13
 
14
+ When /^I set env varibable "(\w+)" to "([^"]*)"$/ do |var, value|
15
+ ENV[var] = value
16
+ end
17
+
14
18
  Then /^aruba should fail with "([^"]*)"$/ do |error_message|
15
19
  @aruba_exception.message.should include(unescape(error_message))
16
20
  end
data/lib/aruba/api.rb CHANGED
@@ -193,7 +193,7 @@ module Aruba
193
193
  end
194
194
 
195
195
  def get_process(wanted)
196
- processes.find{ |name, _| name == wanted }[-1]
196
+ processes.reverse.find{ |name, _| name == wanted }[-1]
197
197
  end
198
198
 
199
199
  def only_processes
@@ -260,9 +260,9 @@ module Aruba
260
260
 
261
261
  def announce_or_puts(msg)
262
262
  if(@puts)
263
- puts(msg)
263
+ Kernel.puts(msg)
264
264
  else
265
- announce(msg)
265
+ puts(msg)
266
266
  end
267
267
  end
268
268
 
data/lib/aruba/process.rb CHANGED
@@ -25,6 +25,7 @@ module Aruba
25
25
 
26
26
  def stdin
27
27
  wait_for_io do
28
+ @process.io.stdin.sync = true
28
29
  @process.io.stdin
29
30
  end
30
31
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: aruba
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.6
5
+ version: 0.3.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Aslak Helles\xC3\xB8y"
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2011-04-13 00:00:00 +01:00
15
+ date: 2011-06-06 00:00:00 +01:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 0.10.0
25
+ version: 0.10.5
26
26
  type: :runtime
27
27
  prerelease: false
28
28
  version_requirements: *id001
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirements:
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.1.7
36
+ version: 0.1.9
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: *id002
@@ -44,7 +44,7 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.0
47
+ version: 2.6.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: *id003
@@ -97,7 +97,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
99
99
  - !ruby/object:Gem::Version
100
- hash: 2534243452653753448
100
+ hash: -1963139940840157959
101
101
  segments:
102
102
  - 0
103
103
  version: "0"
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- hash: 2534243452653753448
109
+ hash: -1963139940840157959
110
110
  segments:
111
111
  - 0
112
112
  version: "0"
@@ -116,7 +116,7 @@ rubyforge_project:
116
116
  rubygems_version: 1.6.2
117
117
  signing_key:
118
118
  specification_version: 3
119
- summary: aruba-0.3.6
119
+ summary: aruba-0.3.7
120
120
  test_files:
121
121
  - features/exit_statuses.feature
122
122
  - features/file_system_commands.feature