aws-sdk 1.36.0 → 1.36.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca9bd328f2a7915459332868b1ddb51fd09d158a
4
- data.tar.gz: 95e6aec2810cfd70fd0e461d5e0db53018d6af19
3
+ metadata.gz: 6a5eff6a93d0a61c4c791ed86ad352637ecfc1ab
4
+ data.tar.gz: a63c890d6161a0407f5f9e59007ec362885a2f3a
5
5
  SHA512:
6
- metadata.gz: aa516d7d78c34e5884584ed27a41016c248445613dca6e072241093f4bcddec70a0e8f52a007e6d582b23f36a24c76f9f685b343c1b755b4dd8958453830b287
7
- data.tar.gz: b3a6c1f4c767e72c5971bd94d8637a2644df88aeeabcdc7b26924a3d30af53b261c93783d479f6bd5987e4cb365ec561978710a8f38f23bcd3d2dca3fdfdf3e7
6
+ metadata.gz: ab926998d0e31ddd64a65c2e8abf2f89b1280d11b8d32f86ab39489828f2bed0a1e3f74ac3d90ef64d3835fa9b8e33a5ca223b4b5b713cc927e7c15354b205fb
7
+ data.tar.gz: 759eb092372e8661fa54e332e37288adc77c901398e6c1b61e75bad8f29ae38fece73c6fe6f47515980815152ec22928fc0b0ae53e7546a8f39780dee121193e
@@ -33,7 +33,8 @@ module AWS
33
33
  # @api private
34
34
  class ConnectionPool
35
35
 
36
- @pools = []
36
+ @pools_mutex = Mutex.new
37
+ @pools = {}
37
38
 
38
39
  # @api private
39
40
  OPTIONS = [
@@ -225,15 +226,16 @@ module AWS
225
226
  #
226
227
  # @return [ConnectionPool]
227
228
  def new options = {}
228
- pool = super(pool_options(options))
229
- @pools << pool
230
- pool
229
+ options = pool_options(options)
230
+ @pools_mutex.synchronize do
231
+ @pools[options] ||= super(options)
232
+ end
231
233
  end
232
234
 
233
235
  # @return [Array<ConnectionPool>] Returns a list of of the constructed
234
236
  # connection pools.
235
237
  def pools
236
- @pools.dup
238
+ @pools.values
237
239
  end
238
240
 
239
241
  private
@@ -123,7 +123,7 @@ module AWS
123
123
  # In the following example we release all elastic IP addresses that are
124
124
  # not currently associated with an instance:
125
125
  #
126
- # ec2.select{|ip| !ip.associated? }.each(&:release)
126
+ # ec2.elastic_ips.select{|ip| !ip.associated? }.each(&:release)
127
127
  #
128
128
  # ## Key Pairs
129
129
  #
@@ -29,7 +29,7 @@ module AWS
29
29
  # snapshot.exists?
30
30
  #
31
31
  # @example Get a map of snapshot IDs to snapshot status
32
- # ec2.snapshots.inject({}) { |m, s| m[i.id] = s.status; m }
32
+ # ec2.snapshots.inject({}) { |m, s| m[s.id] = s.status; m }
33
33
  # # => { "snap-12345678" => :pending, "snap-87654321" => :completed }
34
34
  class SnapshotCollection < Collection
35
35
 
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.36.0'
16
+ VERSION = '1.36.1'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.36.0
4
+ version: 1.36.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-06 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuidtools