0.0
No commit activity in last 3 years
No release in over 3 years
Use Gemfile and Gemfile.lock with CLI rubygems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0

Runtime

~> 1.0
 Project Readme

Rubygems::Lock

Use Gemfile and Gemfile.lock with CLI rubygem

CLI rubygems are applications too. Make sure your users have the experience you developed, with real dependency handling, free from version mismatches.

Is this sane ???

I'm not entirely sure...

Installation

# in xxxx.gemspec

# require gem
require "rubygems/lock"

# replace
....
spec.add_dependency "bundler", "~> 1.0"
spec.add_development_dependency "rake"
spec.add_development_dependency "minitest"
...

# with

spec.add_locked_dependencies
# in the Gemfile

# replace
gemspec

# with
gem "bundler", "~> 1.0"

group :development do
  gem "rake"
  gem "minitest"
  gem "rubygems-lock"    # Don't forget this! :)
end
# remove Gemfile.lock from .gitignore,
# check it in to version control
git add Gemfile.lock

# bundle like normal
bundle install

# commit everything and cut a gem
gem build xxxx.gemspec

# the gem has all the dependencies locked
# to the versions you developed and tested with
gem spec xxxx-0.0.0.gem --ruby