Repository is archived
No commit activity in last 3 years
No release in over 3 years
A tool to interpret the Gemfile without installing it
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 0
~> 3.0

Runtime

~> 1.0
 Project Readme

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'