Sha256: 31781c799423ac0e3ebf1ddb40f9cc03a85806e0b95ec18d6c3f896fbd8e0345
Contents?: true
Size: 436 Bytes
Versions: 3
Compression:
Stored size: 436 Bytes
Contents
module Gem class << self public :set_paths end end path = File.expand_path(File.join(File.dirname(__FILE__), 'gems')) Gem.set_paths(path) Dir.glob(File.join(path, '*')).each do |p| full_gem_name = File.basename(p) version = full_gem_name.match(/([\d\.?]+)/).to_s gem_name = full_gem_name.gsub("-#{version}", '') $:.unshift(File.join(p, 'lib')) begin gem gem_name, "~> #{version}" rescue Gem::LoadError end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mack-encryption-0.8.3 | lib/gems.rb |
mack-encryption-0.8.2 | lib/gems.rb |
mack-encryption-0.8.3.1 | lib/gems.rb |