Sha256: 8d1e9ba15ce0b0289491e6e069c6f2be09e9137bf95c39f1f5e7255cd38ba83c
Contents?: true
Size: 825 Bytes
Versions: 2
Compression:
Stored size: 825 Bytes
Contents
raise "You need >= ruby-2.3 (or maybe a Queue with close would work)" unless RUBY_VERSION >= '2.3.0' # TODO this is for older versions of bundler 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} # Specify your gem's dependencies in wyrm.gemspec gemspec if Pathname('/usr/include/mysql').exist? # version is for mysql streaming result sets gem "mysql2", '>= 0.3.12' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wyrm-0.4.1 | Gemfile |
wyrm-0.4.0 | Gemfile |