Skip to content
Browse files

URI seems to be included in some rubies, and not in others.

  • Loading branch information...
1 parent d66a4b1 commit a698c37fefa593034eba8745dc9132727493bed2 @grempe committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/AWS.rb
View
8 lib/AWS.rb
@@ -8,7 +8,13 @@
# Home:: http://github.com/grempe/amazon-ec2/tree/master
#++
-%w[ base64 cgi openssl digest/sha1 net/https net/http rexml/document time ostruct URI ].each { |f| require f }
+%w[ base64 cgi openssl digest/sha1 net/https net/http rexml/document time ostruct ].each { |f| require f }
+
+begin
+ require 'URI' unless defined? URI
+rescue Exception => e
+ # nothing
+end
begin
require 'xmlsimple' unless defined? XmlSimple

0 comments on commit a698c37

Please sign in to comment.
Something went wrong with that request. Please try again.