Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

ThunderKey/gemfile_interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemfile_interpreter

Install

In Gemfile:

gem 'gemfile_interpreter'

Or global:

gem install gemfile_interpreter

Usage

CLI

Example for JSON output:

gemfile_interpreter /path/to/project/to/check

Example for YAML output:

gemfile_interpreter /path/to/project/to/check --yaml

See gemfile_interpreter -h

Ruby

interpreter = GemfileInterpreter.new('/path/to/project/to/check')
# => gemfile = 'Gemfile, lockfile = 'Gemfile.lock'
interpreter.parsed # => list of gems

# custom Gemfile
GemfileInterpreter.new('/path/to/project/to/check', gemfile: 'MyGemfile')
# => gemfile = 'MyGemfile, lockfile = 'MyGemfile.lock'

# custom Gemfile and Gemfile.lock
GemfileInterpreter.new('/path/to/project/to/check', gemfile: 'MyGemfile', lockfile: 'MyLockfile')
# => gemfile = 'MyGemfile, lockfile = 'MyLockfile'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages