Sha256: fe292e96512ccbd9f0fc585c5f43e86183d5f58ae55f57e3cc4d2db42b04e32c

Contents?: true

Size: 361 Bytes

Versions: 37

Compression:

Stored size: 361 Bytes

Contents

$LOAD_PATH.unshift 'lib'
require 'ruco'
require 'timeout'

require 'tempfile'
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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
ruco-0.0.52 spec/spec_helper.rb
ruco-0.0.51 spec/spec_helper.rb
ruco-0.0.50 spec/spec_helper.rb
ruco-0.0.49 spec/spec_helper.rb
ruco-0.0.48 spec/spec_helper.rb
ruco-0.0.47 spec/spec_helper.rb
ruco-0.0.46 spec/spec_helper.rb
ruco-0.0.45 spec/spec_helper.rb
ruco-0.0.44 spec/spec_helper.rb
ruco-0.0.43 spec/spec_helper.rb
ruco-0.0.42 spec/spec_helper.rb
ruco-0.0.41 spec/spec_helper.rb
ruco-0.0.40 spec/spec_helper.rb
ruco-0.0.39 spec/spec_helper.rb
ruco-0.0.38 spec/spec_helper.rb
ruco-0.0.37 spec/spec_helper.rb
ruco-0.0.36 spec/spec_helper.rb