Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the latest commit of public git repo in my gemfile?

in my gemfile i have the following

gem 'simple_form'

I want to grab the latest commit of simple_form. The current release version 2.1.0. But there are things in the latest commit that I would like to use.

like image 225
Ervin E Avatar asked Oct 23 '25 15:10

Ervin E


1 Answers

In Gemfile you can point a gem to its github path, something like this:

gem 'simple_form', git: 'git://github.com/plataformatec/simple_form.git'

This way it'll point to the master branch, you can also define a specific branch with

gem 'simple_form', git: 'git://github.com/plataformatec/simple_form.git', branch: 'some_branch'
like image 132
Miguelgraz Avatar answered Oct 25 '25 05:10

Miguelgraz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!