Sha256: 91d5708b2b0d110cea89ae43f23223ccc3ad341be54cac0667f800d2248f8344
Contents?: true
Size: 329 Bytes
Versions: 3
Compression:
Stored size: 329 Bytes
Contents
require 'bundler' module Natives class GemfileViewer def initialize(gemfile_path) @gemfile_path = gemfile_path @lockfile_path = "#{gemfile_path}.lock" end def gem_names lockfile = Bundler::LockfileParser.new(Bundler.read_file(@lockfile_path)) lockfile.specs.map(&:name) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
natives-0.5.5 | lib/natives/gemfile_viewer.rb |
natives-0.5.4 | lib/natives/gemfile_viewer.rb |
natives-0.5.3 | lib/natives/gemfile_viewer.rb |