Permalink
Browse files

Don't restrict SES to a single end point

It explicitly uses us-east-1 which means it's plausible Amazon will
add more regions later, and limiting the selection here would go counter
to this library's aims.
  • Loading branch information...
1 parent c0e7f89 commit c1dbcd5c600820c2ae71089e5457761a4c3ab80e Jason Roelofs committed Mar 22, 2012
Showing with 0 additions and 11 deletions.
  1. +0 −5 lib/simple_aws/ses.rb
  2. +0 −6 test/simple_aws/ses.rb
View
@@ -20,11 +20,6 @@ class SES < API
version "2010-12-01"
default_region "us-east-1"
- # SES only has one HTTP endpoint
- def initialize(key, secret)
- super(key, secret)
- end
-
include CallTypes::ActionParam
include Signing::Version3
end
View
@@ -7,12 +7,6 @@
@api = SimpleAWS::SES.new "key", "secret"
end
- it "only works on one endpoint" do
- lambda {
- SimpleAWS::SES.new "key", "secret", "us-west-1"
- }.must_raise ArgumentError
- end
-
it "points to the endpoint" do
@api.uri.must_equal "https://email.us-east-1.amazonaws.com"
end

0 comments on commit c1dbcd5

Please sign in to comment.