Sha256: 16acd388ed1ae3727f77d2f35247c42bb7b726ee3b55098f8d23fb86ffba3dcd
Contents?: true
Size: 561 Bytes
Versions: 3
Compression:
Stored size: 561 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 or CANON is truthy in ENV # 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} # Specify your gem's dependencies in ripar.gemspec gemspec
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ripar-0.0.3 | Gemfile |
ripar-0.0.2 | Gemfile |
ripar-0.0.1 | Gemfile |