The chunk of code I provided is enough to generate the error. Shoes.setup do gem 'right_aws' end
require 'right_aws' There appears to be a conflict between shoes and right_aws. I just don't have any idea how to solve it. As I said in the previous message all of the other applications I have written using right_aws work just fine. The problem only presented itself when I tried to start using the shoes library. --- On Thu, 4/9/09, Seth Thomas Rasmussen <[email protected]> wrote: > From: Seth Thomas Rasmussen <[email protected]> > Subject: Re: shoes and the right_aws library > To: [email protected] > Date: Thursday, April 9, 2009, 12:47 PM > Hey Jon, > > On Thu, Apr 9, 2009 at 1:40 PM, Jon Brandenburg <[email protected]> > wrote: > > > > I'm new to ruby/shoes/right_aws, so the following > question may (hopefully?) have a simple answer. I'm using > shoes2 on ubuntu (I've also tried directly from the current > build via git) and am building a small application to use > amazon web services using the right_aws library. I have > the following code in my app: > > > > Shoes.setup do > > gem 'right_aws' > > end > > > > require 'right_aws' > > > > > > which causes shoes to throw the following error: > > > > Error in /tmp/selfgz15528/lib/shoes.rb line 394 | Thu > Apr 09 11:35:02 -0600 2009 > > ! undefined method `new' for Digest:Module. > > > > I'm currently using the right_aws (v1.10) / ruby > (v1.8.7) library successfully for other applications that I > have written, but when I try to integrate it into shoes it > falls on its face. I've done a diff between the digest.rb > file embedded in shoes against the digest.rb file in my > local ruby library and they are identical. > > > > Any suggestions? > > Are you calling Digest.new in your Shoes app? I don't think > that's > valid. Digest is a module, so you can't instantiate > instances of it. > Perhaps some code meant to call new on a type of digest > like > Digest::MD5? > > -- > Seth Thomas Rasmussen > http://greatseth.com >
