appoxy / aws

Amazon Web Services (AWS) Ruby Gem
https://rubygems.org/gems/aws
236 stars 87 forks source link

We've been using my version of require_relative (overwriting yours via config/preinitializer.rb) for a while now with no problems. #98

Closed ctm closed 12 years ago

ctm commented 13 years ago

I've tested this version in our own code and it seems to work fine.

lovitt commented 13 years ago

I believe ctm is fixing the numerous already initialized constant warnings that appear in some installs:

$ script/console 
Loading development environment (Rails 2.3.8)
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:105: warning: already initialized constant HEX
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:107: warning: already initialized constant TO_REMEMBER
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/utils.rb:108: warning: already initialized constant ASCII
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/errors.rb:128: warning: already initialized constant DEFAULT_CLOSE_ON_4XX_PROBABILITY
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/parsers.rb:47: warning: already initialized constant DEFAULT_XML_LIBRARY
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:66: warning: already initialized constant AMAZON_PROBLEMS
/Users/mlovitt/.rvm/gems/ree-1.8.7-2010.02@sbn/gems/aws-2.5.6/lib/ses/../awsbase/awsbase.rb:86: warning: already initialized constant DEFAULT_SIGNATURE_VERSION
ree-1.8.7-2010.02 :001 >

This patch fixes it for me, too.

os0x commented 12 years ago

+1