Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bundle install fails to install my gem fork on GitHub

On GitHub, I made a fork of a gem adammck-rubygsm. My fork is here https://github.com/khwang1/rubygsm.

I want to switch my application from the original to my forked gem. So, in Gemfile I changed the line

gem 'adammck-rubygsm'

to

gem 'adammck-rubygsm', :git => "git://github.com/khwang1/rubygsm.git"

When I run "bundle install", I get the following failure

$ bundle install
Updating git://github.com/khwang1/rubygsm.git
Fetching source index for http://rubygems.org/
Could not find gem 'adammck-rubygsm (>= 0)' in git://github.com/khwang1/rubygsm.git (at master).
Source does not contain any versions of 'adammck-rubygsm (>= 0)'

Any ideas why?

like image 520
Karen W Avatar asked Nov 05 '22 06:11

Karen W


1 Answers

The git directive has to be specified with https, as in:

gem 'resque', :require => "resque/server", git: 'https://github.com/defunkt/resque.git'
like image 86
fuzzyalej Avatar answered Nov 09 '22 06:11

fuzzyalej