aruba 0.4.1 → 0.4.2
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.
- data/Gemfile.lock +1 -1
- data/History.md +4 -0
- data/aruba.gemspec +1 -1
- data/features/file_system_commands.feature +5 -0
- data/lib/aruba/api.rb +1 -0
- data/lib/aruba/cucumber.rb +4 -0
- metadata +6 -8
data/Gemfile.lock
CHANGED
data/History.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## [v0.4.2](https://github.com/cucumber/aruba/compare/v0.4.1...v0.4.2)
|
2
|
+
|
3
|
+
* Appending to a file creates the parent directory if it doesn't exist. (Aslak Hellesøy)
|
4
|
+
|
1
5
|
## [v0.4.1](https://github.com/cucumber/aruba/compare/v0.4.0...v0.4.1)
|
2
6
|
|
3
7
|
* Move more logic into Aruba::Api (Aslak Hellesøy)
|
data/aruba.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'aruba'
|
5
|
-
s.version = '0.4.
|
5
|
+
s.version = '0.4.2'
|
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}"
|
@@ -45,6 +45,11 @@ Feature: file system commands
|
|
45
45
|
Then the stdout should contain "hello world"
|
46
46
|
And the stdout should contain "this was appended"
|
47
47
|
|
48
|
+
Scenario: Append to a new file
|
49
|
+
When I append to "thedir/thefile" with "x"
|
50
|
+
And I append to "thedir/thefile" with "y"
|
51
|
+
Then the file "thedir/thefile" should contain "xy"
|
52
|
+
|
48
53
|
Scenario: clean up files generated in previous scenario
|
49
54
|
When I run `ruby foo/bar/example.rb`
|
50
55
|
Then the exit status should be 1
|
data/lib/aruba/api.rb
CHANGED
data/lib/aruba/cucumber.rb
CHANGED
@@ -32,6 +32,10 @@ When /^I append to "([^"]*)" with:$/ do |file_name, file_content|
|
|
32
32
|
append_to_file(file_name, file_content)
|
33
33
|
end
|
34
34
|
|
35
|
+
When /^I append to "([^"]*)" with "([^"]*)"$/ do |file_name, file_content|
|
36
|
+
append_to_file(file_name, file_content)
|
37
|
+
end
|
38
|
+
|
35
39
|
When /^I remove the file "([^"]*)"$/ do |file_name|
|
36
40
|
remove_file(file_name)
|
37
41
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: aruba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Aslak Helles\xC3\xB8y"
|
@@ -12,8 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2011-06-
|
16
|
-
default_executable:
|
15
|
+
date: 2011-06-20 00:00:00 Z
|
17
16
|
dependencies:
|
18
17
|
- !ruby/object:Gem::Dependency
|
19
18
|
name: cucumber
|
@@ -117,7 +116,6 @@ files:
|
|
117
116
|
- templates/js/filesystem.js
|
118
117
|
- templates/js/jquery-1.6.1.min.js
|
119
118
|
- templates/main.erb
|
120
|
-
has_rdoc: true
|
121
119
|
homepage: http://github.com/aslakhellesoy/aruba
|
122
120
|
licenses: []
|
123
121
|
|
@@ -131,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
129
|
requirements:
|
132
130
|
- - ">="
|
133
131
|
- !ruby/object:Gem::Version
|
134
|
-
hash:
|
132
|
+
hash: -2316163156739878685
|
135
133
|
segments:
|
136
134
|
- 0
|
137
135
|
version: "0"
|
@@ -140,17 +138,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
138
|
requirements:
|
141
139
|
- - ">="
|
142
140
|
- !ruby/object:Gem::Version
|
143
|
-
hash:
|
141
|
+
hash: -2316163156739878685
|
144
142
|
segments:
|
145
143
|
- 0
|
146
144
|
version: "0"
|
147
145
|
requirements: []
|
148
146
|
|
149
147
|
rubyforge_project:
|
150
|
-
rubygems_version: 1.
|
148
|
+
rubygems_version: 1.8.5
|
151
149
|
signing_key:
|
152
150
|
specification_version: 3
|
153
|
-
summary: aruba-0.4.
|
151
|
+
summary: aruba-0.4.2
|
154
152
|
test_files:
|
155
153
|
- features/exit_statuses.feature
|
156
154
|
- features/file_system_commands.feature
|