rscout 0.0.6 → 0.0.7

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: c71034692c4f3910e62633e47960fb9b82c45c42
4
- data.tar.gz: 8d9ec03d7715a9d05aa43ff0608a8f12dabd981f
3
+ metadata.gz: f99db4dc314b86a999f18358e0b0b00443d72fed
4
+ data.tar.gz: a48d9e65ffa1138de4233062f246c560691d5e74
5
5
  SHA512:
6
- metadata.gz: c80f4fc90e00622644aa8824081c3524b5f91b31b51a446a164ab61bc3b15117c3541c5aadd0be09caa00997c92b8008472db8a674c53310cb225736253a7a0b
7
- data.tar.gz: 84e274bdea3c8e516979c21e9a6422229b2f20663d38b756da346f73dba9a8023da81aba45a40d5c8ffcb122df67b308b15a92788dc3d5e735512d144f94ae34
6
+ metadata.gz: 5f865c5c520d4981b433226734e80fad990525a521f013cfd6bfc65b1a91dfbdd6f96deceb90b916a230da576b4a25d931a7155a57c7aa1e785e2f2fd54f065a
7
+ data.tar.gz: 7065eb96ad0b9403c6b9158b8c79e3b4e6ae4691bf94f7e891ea058540134bf1960b9b526e2db3d2cb9e8c6e1f7a6b9a631baea5f3979c0d4dba4a5fa32399da
data/lib/rscout.rb CHANGED
@@ -156,7 +156,12 @@ module RScout
156
156
  def capture_stdout(&block)
157
157
  previous_stdout, $stdout = $stdout, StringIO.new
158
158
  yield
159
- $stdout.string
159
+ if $stdout.respond_to?(:string)
160
+ $stdout.string
161
+ else
162
+ logger.warn "Test suite hijacked our STDOUT capture."
163
+ nil
164
+ end
160
165
  ensure
161
166
  $stdout = previous_stdout
162
167
  end
@@ -1,3 +1,3 @@
1
1
  module Rscout
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hammond (@andrhamm)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-16 00:00:00.000000000 Z
11
+ date: 2014-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json