aruba 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Rakefile +1 -1
- data/aruba.gemspec +1 -1
- data/features/exit_statuses.feature +1 -1
- data/lib/aruba/api.rb +3 -1
- data/lib/aruba/cucumber.rb +3 -1
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.1.6
|
2
|
+
* When /^I successfully run "(.*)"$/ now prints the combined output if exit status is not 0. (Aslak Hellesøy)
|
3
|
+
* Add bundle to list of common ruby scripts. (Aslak Hellesøy)
|
4
|
+
|
1
5
|
== 0.1.5
|
2
6
|
* Added ability to map rvm versions to a specific version with config/aruba-rvm.yml. (Aslak Hellesøy)
|
3
7
|
* Check for presence of files. (Aslak Hellesøy)
|
data/Rakefile
CHANGED
data/aruba.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{aruba}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aslak Helles\303\270y", "David Chelimsky"]
|
data/lib/aruba/api.rb
CHANGED
@@ -121,8 +121,10 @@ module Api
|
|
121
121
|
end
|
122
122
|
end
|
123
123
|
|
124
|
+
COMMON_RUBY_SCRIPTS = /^(?:bundle|cucumber|gem|jeweler|rails|rake|rspec|spec)\s/
|
125
|
+
|
124
126
|
def detect_ruby_script(cmd)
|
125
|
-
if cmd =~
|
127
|
+
if cmd =~ COMMON_RUBY_SCRIPTS
|
126
128
|
"ruby -S #{cmd}"
|
127
129
|
else
|
128
130
|
cmd
|
data/lib/aruba/cucumber.rb
CHANGED
@@ -53,7 +53,9 @@ end
|
|
53
53
|
|
54
54
|
When /^I successfully run "(.*)"$/ do |cmd|
|
55
55
|
run(unescape(cmd))
|
56
|
-
@last_exit_status
|
56
|
+
if(@last_exit_status != 0)
|
57
|
+
fail("Exit status was #{@last_exit_status}. Output:\n#{combined_output}")
|
58
|
+
end
|
57
59
|
end
|
58
60
|
|
59
61
|
Then /^I should see "([^\"]*)"$/ do |partial_output|
|