cog-rb 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 085d788c6aa8b12e85f39eef44318fe46eb3a6b6
4
- data.tar.gz: 56d0d6d2e2137f05461a245747a8d01a942fc1c6
3
+ metadata.gz: a9627fde94c9865e063c5f49cf0de68751f7e9de
4
+ data.tar.gz: c8c652c3ced6dc6d9b5dea11b8103b1629a743d3
5
5
  SHA512:
6
- metadata.gz: e00e4960ca30076bcb01e4a5c4232614a9640a5a281d3e87a6e5e77209649ebc23f45bea1d02cc2f3040ce70d60c0b882b6cde261f48eb4f1627210ed8c45e1f
7
- data.tar.gz: 6a41cd905dca14cee141829067e5355133304d4179bc045dc572134f152668400b6c5472fad0891117fd943650870d13a9a7aace2d984e6c7275d4511c18f595
6
+ metadata.gz: 4c1f0360004b838e0ffd3002b1cdd56c52ef3b6816e9530bb23e0cff73d68ae56b41f40110839a7c407abd862774c0bfbf55ecb8a4e749227b437e3924d04e8d
7
+ data.tar.gz: 8522d05aa0c2c5b9c6d471b75f0af6fc36fdf3d11d34e972a13bde62f815dbdb33b2eb0ed9588243b32d7ff4e08134addd6dd17c365dd9ca11395e137cd3f054
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.4
2
+
3
+ * Bugfix for rspec tests for commands that take a single input
4
+
1
5
  ## 0.3.3
2
6
 
3
7
  * Bugfix to allow rspec support to work with current Cog::Bundle API
data/lib/cog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Cog
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
@@ -63,11 +63,12 @@ module Cog::RSpec::Setup
63
63
  options.each{|k,v| ENV["COG_OPT_#{k.upcase}"] = v.to_s}
64
64
  end
65
65
 
66
- # TODO: receive a single input on STDIN, multiple for :fetch_input
66
+ # TODO: receive a single input on request(:input) and
67
+ # multiple for :fetch_input
67
68
 
68
- # Expose previous inputs on STDIN
69
+ # Expose previous inputs on request.input
69
70
  # We use allow because not all commands receive input
70
- allow(STDIN).to receive(:read).and_return(cog_env.to_json)
71
+ allow(command.request).to receive(:input).and_return(cog_env)
71
72
 
72
73
  # Use allow because not all commands will need to do this
73
74
  allow(command).to receive(:fetch_input).and_return(cog_env)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cog-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Imbriaco