class Natives::GemfileViewer
Public Class Methods
new(gemfile_path)
click to toggle source
# File lib/natives/gemfile_viewer.rb, line 5 def initialize(gemfile_path) @gemfile_path = File.expand_path(gemfile_path) @lockfile_path = "#{@gemfile_path}.lock" end
Public Instance Methods
gem_names()
click to toggle source
# File lib/natives/gemfile_viewer.rb, line 10 def gem_names lockfile = Bundler::LockfileParser.new(Bundler.read_file(@lockfile_path)) lockfile.specs.map(&:name) end