aws-sdk 1.36.0 → 1.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws/core/http/connection_pool.rb +7 -5
- data/lib/aws/ec2.rb +1 -1
- data/lib/aws/ec2/snapshot_collection.rb +1 -1
- data/lib/aws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a5eff6a93d0a61c4c791ed86ad352637ecfc1ab
|
4
|
+
data.tar.gz: a63c890d6161a0407f5f9e59007ec362885a2f3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
@
|
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
|
-
|
229
|
-
@
|
230
|
-
|
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.
|
238
|
+
@pools.values
|
237
239
|
end
|
238
240
|
|
239
241
|
private
|
data/lib/aws/ec2.rb
CHANGED
@@ -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[
|
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
|
|
data/lib/aws/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: uuidtools
|