Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify a plugin as gem from github in Gemfile

I am including 'acts_as_rateable' gem in my Gemfile like this

gem 'acts_as_rateable', :git => 'git://github.com/azabaj/acts_as_rateable.git'

and then when I do bundle install it gives me this error message!

Could not find gem 'acts_as_rateable (>= 0, runtime)' in git://github.com/azabaj/acts_as_rateable.git (at master). Source does not contain any versions of 'acts_as_rateable (>= 0, runtime)'

I am developing a plugin of my own, when I include that, even that gives the same error like this..

I assume this has something to do with the gemspec?

Please help

Rails version : 3.0.1 Rubygems version : 1.3.7 Bundler version : 1.0.3

let me know if you need any other details..

like image 821
Madhusudhan Avatar asked Nov 11 '10 15:11

Madhusudhan


People also ask

How do you install gems you added to your Gemfile?

run the command bundle install in your shell, once you have your Gemfile created. This command will look your Gemfile and install the relevant Gems on the indicated versions. The Gemfiles are installed because in your Gemfile you are pointing out the source where the gems can be downloaded from.

How do I update my gems in github?

Updating. To update to the latest version of Jekyll and associated dependencies, simply run gem update github-pages , or if you've installed via Bundler, bundle update github-pages .


1 Answers

If you want to pull a gem directly from GitHub, you can put this into your GemFile:

gem 'twitter', github: 'sferik/twitter'

Which will use the default branch. To specify the branch to use:

gem 'twitter', github: 'sferik/twitter', branch: 'branch_name'
like image 157
Richard Peck Avatar answered Sep 29 '22 03:09

Richard Peck