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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6bee36fb1dea4254f77d5b2d55c45a027dee038
4
- data.tar.gz: bc1abfc09c2576d0f3a14c93071b049922148903
3
+ metadata.gz: faeb6069d7f9b70746c1d9909c7d5e39cf35950f
4
+ data.tar.gz: a8eacb5cf9beba15ae7e14d5dbce9e8e2f23ac86
5
5
  SHA512:
6
- metadata.gz: eca8db2c4367a4a5c1566d962beb4c3933f78a95f3a460043b68f74475d9ea47b112af7065520a5ba1273f39da92cf7c7d26687ec86424cfec5df80602bf47f9
7
- data.tar.gz: ca8a3701aba1af16b053d724b421df95f5df26fbc2969ee4c5a50d7d2bd2cd19e4a88c8f7131ef5627006f1069c5b2c30207495a8233845f7898d61f894339f7
6
+ metadata.gz: f7c97d70a816dc5cd30e2b5d912e5f822e18e41bab6dd89d77c1379266e4ac5cfc3bf2b333302f381284d6a0732fb64ee0b409733fd966e471ad16254955baaf
7
+ data.tar.gz: abf35a08734aea72dda99941c48a5042c6d74bdc9c07592855c68b7f79dfb6982cacee12c37887379d4250ee2fec083961a11707458fe39e6ee6299566182581
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Cancun
2
+ [![Build Status](https://travis-ci.org/bonzofenix/cancun.png?branch=master)](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
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -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
- allow(HighLine).to receive(:new).and_return(@high_line)
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)
@@ -1,3 +1,3 @@
1
1
  class Cancun
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/spec/dummy/foo.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'highline'
2
2
 
3
3
  class Foo
4
- :q
5
4
  def salute
6
5
  h = HighLine.new
7
6
  name = h.ask 'what is your name?'
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.5
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-03 00:00:00.000000000 Z
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