haiti 0.0.1 → 0.0.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/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Given('the file "$filename" "$body"') { |filename, body| Haiti::CommandLineHelpers.write_file filename, eval_curlies(body) }
|
2
2
|
Given('the file "$filename":') { |filename, body| Haiti::CommandLineHelpers.write_file filename, eval_curlies(body) }
|
3
|
-
Given('
|
4
|
-
Given('
|
3
|
+
Given('the stdin content "$content"') { |content| @stdin_data = eval_curlies(content) }
|
4
|
+
Given('the stdin content:') { |content| @stdin_data = eval_curlies(content) }
|
5
5
|
When('I run "$command"') { |command| @last_executed = Haiti::CommandLineHelpers.execute command, @stdin_data }
|
6
6
|
When("I run '$command'") { |command| @last_executed = Haiti::CommandLineHelpers.execute command, @stdin_data }
|
7
7
|
Then(/^(stderr|stdout) is:$/) { |stream_name, output| @last_executed.send(stream_name).chomp.should == eval_curlies(output) }
|
data/lib/haiti/version.rb
CHANGED
data/test/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
proving_grounds/*
|
data/test/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: haiti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Josh Cheek
|
@@ -53,6 +53,7 @@ executables: []
|
|
53
53
|
extensions: []
|
54
54
|
extra_rdoc_files: []
|
55
55
|
files:
|
56
|
+
- .gitignore
|
56
57
|
- Readme.md
|
57
58
|
- haiti.gemspec
|
58
59
|
- lib/haiti.rb
|
@@ -60,10 +61,11 @@ files:
|
|
60
61
|
- lib/haiti/config.rb
|
61
62
|
- lib/haiti/step_definitions.rb
|
62
63
|
- lib/haiti/version.rb
|
64
|
+
- test/.gitignore
|
63
65
|
- test/Gemfile
|
64
66
|
- test/Gemfile.lock
|
65
|
-
- test/features/given_i_have_stdin_content.feature
|
66
67
|
- test/features/given_the_file.feature
|
68
|
+
- test/features/given_the_stdin_content.feature
|
67
69
|
- test/features/support/env.rb
|
68
70
|
- test/features/then_exit_status_is.feature
|
69
71
|
- test/features/then_stream_is.feature
|
@@ -96,8 +98,8 @@ summary: Simple Cucumber steps for command line programs
|
|
96
98
|
test_files:
|
97
99
|
- test/Gemfile
|
98
100
|
- test/Gemfile.lock
|
99
|
-
- test/features/given_i_have_stdin_content.feature
|
100
101
|
- test/features/given_the_file.feature
|
102
|
+
- test/features/given_the_stdin_content.feature
|
101
103
|
- test/features/support/env.rb
|
102
104
|
- test/features/then_exit_status_is.feature
|
103
105
|
- test/features/then_stream_is.feature
|