Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blank? is a Rails' method, not Ruby's #13

Closed
nikolay opened this issue Jul 29, 2010 · 5 comments
Closed

blank? is a Rails' method, not Ruby's #13

nikolay opened this issue Jul 29, 2010 · 5 comments

Comments

@nikolay
Copy link

nikolay commented Jul 29, 2010

/usr/lib/ruby/gems/1.8/gems/aws-2.3.20/lib/awsbase/right_awsbase.rb:321:in `init': undefined method `blank?' for "AWS Access Key ID goes here":String (NoMethodError)
    from /usr/lib/ruby/gems/1.8/gems/aws-2.3.20/lib/sdb/right_sdb_interface.rb:81:in `initialize'
@mattmanning
Copy link

I'm having this problem too. I have the activesupport gem installed and aws requires it. I can't figure out why this error is happening.

@nikolay
Copy link
Author

nikolay commented Oct 25, 2010

The vote for the issue, please!

@mattmanning
Copy link

I was finally able to get this working by commenting out the line:

unless defined? ActiveSupport

and it's corresponding end in lib/awsbase/support.rb. This forces the gem to use its own monkeypatches instead of relying on ActiveSupport. For some reason ActiveSupport's methods don't show up even though it's present and gets required.

Is this some kind of problem with ActiveSupport versions > 3?

@treeder
Copy link
Member

treeder commented Mar 13, 2011

Are you guys still having this issue? I haven't noticed it.

@mattmanning
Copy link

It's was fixed. I suggested a patch and you guys put it in.

The problem was in lib/awsbase/right_awsbase.rb

It had the line:

require 'active_support'

That only works for ActiveSupport versions < 3. For >= 3 you have to
give it a submodule like 'active_support/core_ext' or
'active_support/all', etc.

It looks like that line is now in lib/awsbase/awsbase.rb and is
commented out, so I'm not sure if you guys removed the dependency on
ActiveSupport or what. I haven't had any more problems, though.

-Matt

On Sun, Mar 13, 2011 at 7:02 PM, treeder
reply@reply.github.com
wrote:

Are you guys still having this issue? I haven't noticed it.

#13 (comment)

@treeder treeder closed this as completed Apr 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants