Sha256: 8207a8662425d7abcae3da0612dc771e43e0d4f9339bc65e6391415f6a1b766f

Contents?: true

Size: 185 Bytes

Versions: 44

Compression:

Stored size: 185 Bytes

Contents

module Recording
  def self.stderr
    $stderr = recorder = StringIO.new
    begin
      yield
    ensure
      $stderr = STDERR
    end
    recorder.rewind
    recorder.read
  end
end

Version data entries

44 entries across 44 versions & 6 rubygems

Version Path
relevance-tarantula-0.2.0 lib/relevance/tarantula/recording.rb
relevance-tarantula-0.2.1 lib/relevance/tarantula/recording.rb
relevance-tarantula-0.3.2 lib/relevance/tarantula/recording.rb
relevance-tarantula-0.3.3 lib/relevance/tarantula/recording.rb
romanbsd-tarantula-0.1.8 lib/relevance/tarantula/recording.rb
romanbsd-tarantula-0.2.0 lib/relevance/tarantula/recording.rb
codez-tarantula-0.5.3 lib/relevance/tarantula/recording.rb
codez-tarantula-0.5.1 lib/relevance/tarantula/recording.rb
codez-tarantula-0.5.0 lib/relevance/tarantula/recording.rb
tarantula-0.5.1 lib/relevance/tarantula/recording.rb
tarantula-0.5.0 lib/relevance/tarantula/recording.rb
tarantula-0.4.3 lib/relevance/tarantula/recording.rb
tarantula-0.4.2 lib/relevance/tarantula/recording.rb
tarantula-0.4.1 lib/relevance/tarantula/recording.rb
tarantula-0.4.0 lib/relevance/tarantula/recording.rb
tarantula-rails3-0.3.3 lib/relevance/tarantula/recording.rb
panmind-tarantula-0.3.3 lib/relevance/tarantula/recording.rb
tarantula-0.3.3 lib/relevance/tarantula/recording.rb
tarantula-0.0.5 lib/relevance/tarantula/recording.rb
tarantula-0.0.8.1 lib/relevance/tarantula/recording.rb