Skip to content

Instantly share code, notes, and snippets.

@oliveira-andre
Last active November 22, 2022 20:15
Show Gist options
  • Select an option

  • Save oliveira-andre/70aba6ed711b34fbf8571b795c34b746 to your computer and use it in GitHub Desktop.

Select an option

Save oliveira-andre/70aba6ed711b34fbf8571b795c34b746 to your computer and use it in GitHub Desktop.
gem management ruby

build the spec file

gem build gemname.spec

extract gem files to current path

gem unpack 

install local gem in console

gem install --local gem_name.gem

set your gem is local

bundle config local.mygem /path/to/mygem

suposing your gem is my-gem.1.0.1.gem

gem 'my-gem', '1.0.1'

delete your local config for local gem

bundle config --delete local.mygem

install local gem in gemfile

gem 'gem_name', 'gem_version', path: './path_of_gem-version'

adding linux compatibility to Gemfile.lock

bundle lock --add-platform x86_64-linux-musl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment