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.
@@ -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)
@@ -19,7 +19,7 @@ require 'aws/response_cache'
19
19
  module AWS
20
20
 
21
21
  # Current version of the AWS SDK for Ruby
22
- VERSION = "1.1.1"
22
+ VERSION = "1.1.2"
23
23
 
24
24
  class << self
25
25
 
@@ -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
- # @option options [String] :location_constraint (nil) The location
66
- # where the bucket should be created. Defaults to the classic
67
- # US region.
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
@@ -358,7 +358,8 @@ module AWS
358
358
  :metadata => metadata,
359
359
  :secure => secure?,
360
360
  :content_length => content_length,
361
- :expires => expires
361
+ :expires => expires,
362
+ :ignore => ignored_fields
362
363
  }.merge(@fields).
363
364
  merge(opts))
364
365
  end
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.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-18 00:00:00.000000000 -07:00
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: &2163583560 !ruby/object:Gem::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: *2163583560
25
+ version_requirements: *2156434360
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: httparty
28
- requirement: &2163582960 !ruby/object:Gem::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: *2163582960
36
+ version_requirements: *2156425740
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: nokogiri
39
- requirement: &2163582380 !ruby/object:Gem::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: *2163582380
47
+ version_requirements: *2156377800
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: json
50
- requirement: &2163581800 !ruby/object:Gem::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: *2163581800
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: -2676721713860142099
329
+ hash: -2569645432290229505
330
330
  required_rubygems_version: !ruby/object:Gem::Requirement
331
331
  none: false
332
332
  requirements: