cancun 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/README.md +2 -0
- data/Rakefile +5 -0
- data/lib/cancun/highline.rb +6 -1
- data/lib/cancun/version.rb +1 -1
- data/spec/dummy/foo.rb +0 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: faeb6069d7f9b70746c1d9909c7d5e39cf35950f
|
|
4
|
+
data.tar.gz: a8eacb5cf9beba15ae7e14d5dbce9e8e2f23ac86
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7c97d70a816dc5cd30e2b5d912e5f822e18e41bab6dd89d77c1379266e4ac5cfc3bf2b333302f381284d6a0732fb64ee0b409733fd966e471ad16254955baaf
|
|
7
|
+
data.tar.gz: abf35a08734aea72dda99941c48a5042c6d74bdc9c07592855c68b7f79dfb6982cacee12c37887379d4250ee2fec083961a11707458fe39e6ee6299566182581
|
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Cancun
|
|
2
|
+
[](https://travis-ci.org/bonzofenix/cancun)
|
|
2
3
|
|
|
3
4
|
DSL for testing command line applications in ruby
|
|
4
5
|
|
|
@@ -51,6 +52,7 @@ describe Foo do
|
|
|
51
52
|
execute do
|
|
52
53
|
Foo.new.salute
|
|
53
54
|
end.and_type 'bonzo'
|
|
55
|
+
expect(output).to include('Hi bonzo')
|
|
54
56
|
end
|
|
55
57
|
```
|
|
56
58
|
|
data/Rakefile
CHANGED
data/lib/cancun/highline.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
require 'timeout'
|
|
2
2
|
require 'sourcify'
|
|
3
|
+
require 'highline'
|
|
3
4
|
|
|
4
5
|
class Cancun
|
|
5
6
|
module Highline
|
|
@@ -10,7 +11,11 @@ class Cancun
|
|
|
10
11
|
@input_read, @input_write = IO.pipe
|
|
11
12
|
@output_read, @output_write = IO.pipe
|
|
12
13
|
@high_line = HighLine.new(@input_read, @output_write)
|
|
13
|
-
|
|
14
|
+
|
|
15
|
+
HighLine.stub(:new).and_return(@high_line)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def high_line
|
|
14
19
|
end
|
|
15
20
|
|
|
16
21
|
def execute(&cmd)
|
data/lib/cancun/version.rb
CHANGED
data/spec/dummy/foo.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cancun
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bonzofenix
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-02-
|
|
11
|
+
date: 2014-02-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sourcify
|
|
@@ -104,6 +104,7 @@ extra_rdoc_files: []
|
|
|
104
104
|
files:
|
|
105
105
|
- .gitignore
|
|
106
106
|
- .rspec
|
|
107
|
+
- .travis.yml
|
|
107
108
|
- Gemfile
|
|
108
109
|
- LICENSE.txt
|
|
109
110
|
- README.md
|