Sha256: 41e6b66360a2b0ba904bd6153d72331f5c5b9b73890bf4f6b4dad5a5d6c13082
Contents?: true
Size: 482 Bytes
Versions: 10
Compression:
Stored size: 482 Bytes
Contents
require 'pathname' require 'rubygems' require 'addressable/uri' require 'spec' require 'ruby-debug' Debugger.start require 'dm-core' def path_to(gem_name, version=nil) version = version ? Gem::Requirement.create(version) : Gem::Requirement.default specs = Gem.source_index.find_name(gem_name, version) paths = specs.map do |spec| spec_path = spec.loaded_from expanded_path = File.join(File.dirname(spec_path), '..', 'gems', "#{spec.name}-#{spec.version}") end end
Version data entries
10 entries across 10 versions & 1 rubygems