Sha256: 439fa07283d8eb50f438be3f65cb27f7495cb356afcd47c99b3251e5a8c27e2b
Contents?: true
Size: 349 Bytes
Versions: 4
Compression:
Stored size: 349 Bytes
Contents
require "bundler" module GemHelper def source_for(name:, &block) bundle_root = Bundler.bundle_path.join('bundler/gems') path = Dir.glob(bundle_root.join("#{name}-*").to_s).first path or raise "Could not find source for #{name}, run bundle install first" block(path) rescue StandardError => e puts "[Bundler] #{e}" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rfix-1.0.15.pre.116 | lib/rfix/gem_helper.rb |
rfix-1.0.15 | lib/rfix/gem_helper.rb |
rfix-1.0.8.pre.109 | lib/rfix/gem_helper.rb |
rfix-1.0.8.pre.108 | lib/rfix/gem_helper.rb |