Sha256: 88f141f47b3cc1fcff71821aea2ccdabec464873ae4da94e00b9282f634509eb
Contents?: true
Size: 377 Bytes
Versions: 39
Compression:
Stored size: 377 Bytes
Contents
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
39 entries across 39 versions & 13 rubygems