fog 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/fog.gemspec +1 -1
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/storage.rb +2 -2
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/fog.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
## If your rubyforge_project name is different, then edit it and comment out
|
8
8
|
## the sub! line in the Rakefile
|
9
9
|
s.name = 'fog'
|
10
|
-
s.version = '0.3.
|
10
|
+
s.version = '0.3.5'
|
11
11
|
s.date = '2010-09-24'
|
12
12
|
s.rubyforge_project = 'fog'
|
13
13
|
|
data/lib/fog.rb
CHANGED
data/lib/fog/aws/storage.rb
CHANGED
@@ -91,7 +91,7 @@ module Fog
|
|
91
91
|
|
92
92
|
def initialize(options={})
|
93
93
|
@aws_access_key_id = options[:aws_access_key_id]
|
94
|
-
|
94
|
+
options[:region] ||= 'us-east-1'
|
95
95
|
@host = options[:host] || case options[:region]
|
96
96
|
when 'eu-west-1'
|
97
97
|
's3-eu-west-1.amazonaws.com'
|
@@ -104,7 +104,7 @@ module Fog
|
|
104
104
|
else
|
105
105
|
raise ArgumentError, "Unknown region: #{options[:region].inspect}"
|
106
106
|
end
|
107
|
-
@data = self.class.data[
|
107
|
+
@data = self.class.data[options[:region]][@aws_access_key_id]
|
108
108
|
end
|
109
109
|
|
110
110
|
def signature(params)
|