David Chelimsky
2/28/2007 2:15:00 PM
On 2/27/07, Eric Hodel <drbrain@segment7.net> wrote:
> On Feb 22, 2007, at 09:31, David Chelimsky wrote:
> > On 2/22/07, Ryan Davis <ryand-ruby@zenspider.com> wrote:
> >>
> >> On Feb 22, 2007, at 10:46 AM, David Chelimsky wrote:
> >>
> >> > How can I run an unpublished gem in tinderbox?
> >>
> >> Untested: Create a tinderbox/cache directory and drop your gem in
> >> there. Run tinderbox_gem_build.
> >
> > Thanks Ryan - I had tried that, but I get into an infinite loop
> > (output below), so I thought perhaps I was on the wrong path.
> >
> > I'm on mac os 10.4, ruby 1.8.5,
> >
> > Here's the output. If anything strikes you off the bat, please help.
> > If not, I'll keep digging.
> >
> > $ tinderbox_gem_build rspec 0.8.0
> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/open-uri.rb:7: warning:
> > discarding old open_uri_original_open
>
> Revert to rubygems 0.9.1. 0.9.2 reintroduced breakage when open-uri
> is required.
OK - I reverted to 0.9.1 and now I get something different. I placed
the gem in tinderbox/cache, per Ryan's suggestion. I ran
"tinderbox_gem_build rspec '0.8.0'", got an error AND discovered that
the process had actually removed the gem from tinderbox/cache. Session
below.
Looking at gem_runner.rb, it uses a Gem::RemoteInstaller, which
(logically) appears to only work from a remote location. So I think
that this will need to be addressed explicitly to get it to work.
Unless there's a way I can trick rubygems into believing my local box
is a remote repository. Can anybody help me to do that?
Thanks,
David
$ ls -al tinderbox/cache/
total 192
drwxr-xr-x 3 david david 102 Feb 28 14:06 .
drwxr-xr-x 4 david david 136 Feb 28 14:04 ..
-rw-r--r-- 1 david david 96768 Feb 28 14:06 rspec-0.8.0.gem
[david@chelimac ruby]$ tinderbox_gem_build rspec '0.8.0'
/usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_runner.rb:113:in
`install': Installation of rspec-0.8.0 failed
(Gem::GemNotFoundException): (Tinderbox::InstallError)
Could not find rspec (= 0.8.0) in any repository from
/usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/lib/tinderbox/gem_runner.rb:262:in
`run'
from /usr/local/lib/ruby/gems/1.8/gems/tinderbox-1.0.0/bin/tinderbox_gem_build:9
from /usr/local/bin/tinderbox_gem_build:16:in `load'
from /usr/local/bin/tinderbox_gem_build:16
[david@chelimac ruby]$ ls -al tinderbox/cache/
total 0
drwxr-xr-x 2 david david 68 Feb 28 14:06 .
drwxr-xr-x 4 david david 136 Feb 28 14:06 ..