Sha256: ba9642ca22efc2488c353437f483da97b4c10ae4253cc7720655bc097e407bdb
Contents?: true
Size: 624 Bytes
Versions: 9
Compression:
Stored size: 624 Bytes
Contents
$LOAD_PATH.unshift 'lib' $ruco_colors = true require 'ruco' require 'timeout' require 'tempfile' silence_warnings do Ruco::Editor::Colors::DEFAULT_THEME = 'spec/fixtures/test.tmTheme' Ruco::OLD_VERSION = Ruco::VERSION Ruco::VERSION = '0.0.0' # so tests dont fail if version gets longer end class Tempfile def self.string_as_file(data) result = nil Tempfile.open('foo') do |f| f.print data f.close result = yield(f.path) end result end end class Time def self.benchmark t = Time.now.to_f yield Time.now.to_f - t end end def log(text) puts "LOG: #{text}" end
Version data entries
9 entries across 9 versions & 1 rubygems