aws-sdk 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/aws/base_client.rb +1 -1
- data/lib/aws/common.rb +1 -1
- data/lib/aws/configuration.rb +2 -2
- data/lib/aws/s3/bucket_collection.rb +12 -3
- data/lib/aws/s3/presigned_post.rb +2 -1
- metadata +11 -11
data/lib/aws/base_client.rb
CHANGED
@@ -438,7 +438,7 @@ module AWS
|
|
438
438
|
module_eval('module XML; end')
|
439
439
|
|
440
440
|
name = :"#{service_ruby_name}_client"
|
441
|
-
needs = [:signer, :http_handler]
|
441
|
+
needs = [:signer, :http_handler, "#{service_ruby_name}_endpoint"]
|
442
442
|
create_block = lambda {|config| new(:config => config) }
|
443
443
|
|
444
444
|
Configuration.add_option_with_needs(name, needs, &create_block)
|
data/lib/aws/common.rb
CHANGED
data/lib/aws/configuration.rb
CHANGED
@@ -212,7 +212,7 @@ module AWS
|
|
212
212
|
if supplied == values
|
213
213
|
self # nothing changed
|
214
214
|
else
|
215
|
-
self.class.new(values.merge(:__created__ => @created))
|
215
|
+
self.class.new(values.merge(:__created__ => @created.dup))
|
216
216
|
end
|
217
217
|
|
218
218
|
end
|
@@ -279,7 +279,7 @@ module AWS
|
|
279
279
|
needed = needs.collect{|need| send(need) }
|
280
280
|
|
281
281
|
unless @created.key?(name) and @created[name][:needed] == needed
|
282
|
-
@created[name]
|
282
|
+
@created[name] = {}
|
283
283
|
@created[name][:object] = create_block.call(self)
|
284
284
|
@created[name][:needed] = needed
|
285
285
|
end
|
@@ -62,9 +62,18 @@ module AWS
|
|
62
62
|
#
|
63
63
|
# @param [String] bucket_name
|
64
64
|
# @param [Hash] options
|
65
|
-
#
|
66
|
-
#
|
67
|
-
#
|
65
|
+
#
|
66
|
+
# @option options [String] :location_constraint (nil) The
|
67
|
+
# location where the bucket should be created. Defaults to
|
68
|
+
# the classic US region; however, if you configure a regional
|
69
|
+
# endpoint for Amazon S3 this option will default to the
|
70
|
+
# appropriate location constraint for the endpoint. For
|
71
|
+
# example:
|
72
|
+
#
|
73
|
+
# s3 = AWS::S3.new(:s3_endpoint => "s3-us-west-1.amazonaws.com")
|
74
|
+
# bucket = s3.buckets.create("my-us-west-bucket")
|
75
|
+
# bucket.location_constraint # => "us-west-1"
|
76
|
+
#
|
68
77
|
# @option options [String] :acl (:private) Sets the ACL of the bucket
|
69
78
|
# you are creating. Valid Values include :private, :public_read,
|
70
79
|
# :public_read_write, :authenticated_read, :bucket_owner_read and
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,12 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-08-
|
12
|
+
date: 2011-08-23 00:00:00.000000000 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: uuidtools
|
17
|
-
requirement: &
|
17
|
+
requirement: &2156434360 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '2.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2156434360
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: httparty
|
28
|
-
requirement: &
|
28
|
+
requirement: &2156425740 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0.7'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2156425740
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: nokogiri
|
39
|
-
requirement: &
|
39
|
+
requirement: &2156377800 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 1.4.4
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2156377800
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: json
|
50
|
-
requirement: &
|
50
|
+
requirement: &2156352360 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '1.4'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2156352360
|
59
59
|
description: AWS SDK for Ruby
|
60
60
|
email:
|
61
61
|
executables: []
|
@@ -326,7 +326,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
326
326
|
version: '0'
|
327
327
|
segments:
|
328
328
|
- 0
|
329
|
-
hash: -
|
329
|
+
hash: -2569645432290229505
|
330
330
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
331
331
|
none: false
|
332
332
|
requirements:
|