views:

61

answers:

2

I am trying to use the instructions here to install a pre-released version of a gem with bundler.

The "bundle install" output lists the gem as getting installed, but "gem list" fails to find it.

My Gemfile:

source :gemcutter

gem 'sinatra', '1.1.0', :git => 'http://github.com/sinatra/sinatra.git'
gem 'RedCloth', '4.2.3'

Here is a gist with the rest of my sample code.

Has anyone gotten this scenario to work?

NOTE: I am also using RVM (on OS X). bundle show does list the gem (and dependencies) as existing, but I am not able to properly resolve them.

Thanks.

A: 

Bundler might have installed it locally to your app. This could vary wildly, depending on OS and whether you are using RVM.

What is the output of bundle show sinatra?

In my case, sinatra was installed here:

/home/marshall/.rvm/gems/ruby-1.8.7-p302@3846859/bundler/gems/sinatra-9cfa74a7f352

Sinatra doesn't show in the gems list, but the server launches correctly if I execute rackup.

marshally
bundle show: Gems included by the bundle: * RedCloth (4.2.3) * bundler (1.0.1) * rack (1.2.1) * sinatra (1.1.0 9cfa74a) * tilt (1.1)
Scott Watermasysk
Should have mentioned before, I am using RVM and OS X. So I guess the gem is there, the require is not properly resolving.
Scott Watermasysk
A: 

It looks their is an issue using Shotgun and Bundler (git repositories only).

If I use rackup to start up my app, all is well. I am going to investigate a little more and then file a bug with one (or both) of the projects.

Scott Watermasysk