Sha256: 5013e151ccdbd1fbaf667a93575e573548cf55d74ba71ab2817c3c066431e5c0

Contents?: true

Size: 688 Bytes

Versions: 3

Compression:

Stored size: 688 Bytes

Contents

module Capybara::Poltergeist
  class Client
    private
    def redirect_stdout
      prev = STDOUT.dup
      prev.autoclose = false
      $stdout = @write_io
      STDOUT.reopen(@write_io)

      prev = STDERR.dup
      prev.autoclose = false
      $stderr = @write_io
      STDERR.reopen(@write_io)
      yield
    ensure
      STDOUT.reopen(prev)
      $stdout = STDOUT
      STDERR.reopen(prev)
      $stderr = STDERR
    end
  end
end

module Alchemy
  class WarningSuppressor
    class << self
      def write(message)
        if message =~ /QFont::setPixelSize: Pixel size <= 0/ || message =~/CoreText performance note:/ then 0 else puts(message);1;end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
alchemy_cms-3.0.0.rc7 spec/support/phantomjs_mavericks_fix.rb
alchemy_cms-3.0.0.rc6 spec/support/phantomjs_mavericks_fix.rb
alchemy_cms-3.0.0.rc5 spec/support/phantomjs_mavericks_fix.rb