Sha256: 9dfbb7eab7bc20ef7d773eaf83b71012b4182cb8452059e52e94c7f38a3035ba

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

def from_gemrc
  # auto-load from ~/.gemrc
  home_gemrc = Pathname('~/.gemrc').expand_path

  if home_gemrc.exist?
    require 'yaml'
    # use all the sources specified in .gemrc
    YAML.load_file(home_gemrc)[:sources]
  end
end

# Use the gemrc source if defined, unless CANON is set,
# otherwise just use the default.
def preferred_sources
  rv = from_gemrc unless eval(ENV['CANON']||'')
  rv ||= []
  rv << 'http://rubygems.org' if rv.empty?
  rv
end

preferred_sources.each{|src| source src}

gem 'sequel'
gem 'fastandand'

# Specify your gem's dependencies in wyrm.gemspec
gemspec

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wyrm-0.2.1 Gemfile