aruba 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aruba (0.4.1)
4
+ aruba (0.4.2)
5
5
  bcat (>= 0.6.1)
6
6
  childprocess (>= 0.1.9)
7
7
  cucumber (>= 0.10.7)
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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'aruba'
5
- s.version = '0.4.1'
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
@@ -46,6 +46,7 @@ module Aruba
46
46
 
47
47
  def append_to_file(file_name, file_content)
48
48
  in_current_dir do
49
+ _mkdir(File.dirname(file_name))
49
50
  File.open(file_name, 'a') { |f| f << file_content }
50
51
  end
51
52
  end
@@ -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.1
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-17 00:00:00 +01:00
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: 2933985755347301009
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: 2933985755347301009
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.6.2
148
+ rubygems_version: 1.8.5
151
149
  signing_key:
152
150
  specification_version: 3
153
- summary: aruba-0.4.1
151
+ summary: aruba-0.4.2
154
152
  test_files:
155
153
  - features/exit_statuses.feature
156
154
  - features/file_system_commands.feature