Posted 12 months ago. Visible to the public. Repeats.

How to use a local gem in your Gemfile

You can use local copies of gems in your Gemfile like this:

Copy
gem 'spreewald', :path => '~/gems/spreewald'

As soon as you have bundled your project with the local copy of the gem, all code changes in the copy will be available on your project. So you can for example set a debugger (or add console output) in the gem and use it from your project.
If you checked out the gem using git (or any other versioning tool), you can easily reset your changes afterwards or make a pull request for the gem if you improved it.

Once an application no longer requires constant development, it needs periodic maintenance for stable and secure operation. makandra offers monthly maintenance contracts that let you focus on your business while we make sure the lights stay on.

Owner of this card:

Avatar
Judith Roth
Last edit:
12 months ago
by Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Judith Roth to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more