aruba 0.2.6 → 0.2.7

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.
@@ -1,3 +1,14 @@
1
+ == 0.2.7
2
+
3
+ === New Features
4
+ * Upgrade to Cucumber 0.10.0. (Aslak Hellesøy)
5
+
6
+ === Changed Features
7
+ * require 'aruba' does nothing - you have to require 'aruba/cucumber' now. This is to prevent bundler from loading it when we don't want to. (Aslak Hellesøy)
8
+
9
+ === Bug fixes
10
+ * Outputting a lot of data causes process to time out (#30 Mike Sassak)
11
+
1
12
  == 0.2.6
2
13
 
3
14
  === New Features
@@ -26,6 +26,15 @@ Aruba has several tags you can use to get more information. You can put these ta
26
26
  * <tt>@announce-env</tt> - See environment variables set by Aruba
27
27
  * <tt>@announce</tt> - Does all of the above
28
28
 
29
+ == Configuring the working directory
30
+
31
+ Per default Aruba will create a directory <tt>tmp/aruba</tt> where it performs it's file operations.
32
+ If you want to change this behaviour put this into your <tt>features/support/env.rb</tt>:
33
+
34
+ Before do
35
+ @dirs = ["somewhere/else"]
36
+ end
37
+
29
38
  == Note on Patches/Pull Requests
30
39
 
31
40
  * Fork the project.
@@ -2,14 +2,14 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'aruba'
5
- s.version = "0.2.6"
5
+ s.version = '0.2.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.9.4'
12
+ s.add_dependency 'cucumber', '~> 0.10.0'
13
13
  s.add_dependency 'background_process' # Can't specify a version - bundler/rubygems chokes on '2.1'
14
14
  s.add_development_dependency 'rspec', '~> 2.0.1'
15
15
 
@@ -14,10 +14,11 @@ Feature: Flushing output
14
14
  When I run "ruby -e 'puts :a.to_s * 65536'"
15
15
  Then the output should contain "a"
16
16
  And the output should be 65536 bytes long
17
- # And the exit status should be 0
17
+ And the exit status should be 0
18
18
 
19
19
  Scenario: Tons of interactive output
20
20
  When I run "ruby -e 'len = gets.chomp; puts :a.to_s * len.to_i'" interactively
21
21
  And I type "65536"
22
22
  Then the output should contain "a"
23
23
  And the output should be 65536 bytes long
24
+ # And the exit status should be 0
@@ -1,5 +1,5 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
2
- require 'aruba'
2
+ require 'aruba/cucumber'
3
3
  require 'fileutils'
4
4
 
5
5
  begin
@@ -1 +1 @@
1
- require 'aruba/cucumber'
1
+ # Load nothing - just keep the file here to keep bundler happy.
@@ -1,6 +1,5 @@
1
1
  require 'fileutils'
2
2
  require 'rbconfig'
3
-
4
3
  require 'aruba/process'
5
4
 
6
5
  module Aruba
@@ -251,8 +250,8 @@ module Aruba
251
250
  end
252
251
 
253
252
  def use_clean_gemset(gemset)
254
- run(%{rvm gemset create "#{gemset}"}, true)
255
- if @last_stdout =~ /'#{gemset}' gemset created \((.*)\)\./
253
+ run_simple(%{rvm gemset create "#{gemset}"}, true)
254
+ if all_stdout =~ /'#{gemset}' gemset created \((.*)\)\./
256
255
  gem_home = $1
257
256
  set_env('GEM_HOME', gem_home)
258
257
  set_env('GEM_PATH', gem_home)
@@ -262,9 +261,9 @@ module Aruba
262
261
  paths.unshift(File.join(gem_home, 'bin'))
263
262
  set_env('PATH', paths.uniq.join(File::PATH_SEPARATOR))
264
263
 
265
- run("gem install bundler", true)
264
+ run_simple("gem install bundler", true)
266
265
  else
267
- raise "I didn't understand rvm's output: #{@last_stdout}"
266
+ raise "I didn't understand rvm's output: #{all_stdout}"
268
267
  end
269
268
  end
270
269
 
@@ -38,6 +38,7 @@ module Aruba
38
38
 
39
39
  def stop
40
40
  if @process
41
+ stdout && stderr # flush output
41
42
  status = @process.wait(@timeout)
42
43
  status && status.exitstatus
43
44
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 6
9
- version: 0.2.6
8
+ - 7
9
+ version: 0.2.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Aslak Helles\xC3\xB8y"
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-13 00:00:00 +00:00
19
+ date: 2010-12-07 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -28,9 +28,9 @@ dependencies:
28
28
  - !ruby/object:Gem::Version
29
29
  segments:
30
30
  - 0
31
- - 9
32
- - 4
33
- version: 0.9.4
31
+ - 10
32
+ - 0
33
+ version: 0.10.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: *id001
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- hash: -1582580386571401091
113
+ hash: 4224427538675420032
114
114
  segments:
115
115
  - 0
116
116
  version: "0"
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- hash: -1582580386571401091
122
+ hash: 4224427538675420032
123
123
  segments:
124
124
  - 0
125
125
  version: "0"
@@ -129,7 +129,7 @@ rubyforge_project:
129
129
  rubygems_version: 1.3.7
130
130
  signing_key:
131
131
  specification_version: 3
132
- summary: aruba-0.2.6
132
+ summary: aruba-0.2.7
133
133
  test_files:
134
134
  - features/exit_statuses.feature
135
135
  - features/file_system_commands.feature