Sha256: 8638b4632c5164c6cad81031079163306a49767c9e6ff93b67e1e87efc17b9f2

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

#!/usr/bin/env ruby

require 'fileutils'
require 'test/yaml_data'

module Utilities
  def make_gemhome(path)
    FileUtils.mkdir_p path
  end

  def make_cache_area(path, *uris)
    make_gemhome(path)
    fn = File.join(path, 'source_cache')
    open(fn, 'w') do |f| f.write Marshal.dump(cache_hash(*uris)) end
  end

  extend self
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubygems-update-0.8.10 test/gemutilities.rb
rubygems-update-0.8.5 test/gemutilities.rb
rubygems-update-0.8.8 test/gemutilities.rb
rubygems-update-0.8.6 test/gemutilities.rb