aws-sdk-core 2.1.23 → 2.1.24

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.
@@ -7,6 +7,7 @@ Seahorse::Util.irregular_inflections({
7
7
  'Ec2' => 'ec2',
8
8
  'ElastiCache' => 'elasticache',
9
9
  'iSCSI' => 'iscsi',
10
+ 'ACLs' => 'acls',
10
11
  #'SSEKMS' => 'sse_kms',
11
12
  })
12
13
 
@@ -21,6 +21,7 @@ module Aws
21
21
  end
22
22
 
23
23
  class Marshaler
24
+ STRINGY_TEST = lambda { |val| val.respond_to?(:to_str) }
24
25
 
25
26
  def format(obj)
26
27
  case obj
@@ -34,6 +35,7 @@ module Aws
34
35
  end
35
36
  when String then { s: obj }
36
37
  when Symbol then { s: obj.to_s }
38
+ when STRINGY_TEST then { s: obj.to_str }
37
39
  when Numeric then { n: obj.to_s }
38
40
  when StringIO, IO then { b: obj }
39
41
  when Set then format_set(obj)
@@ -51,6 +53,7 @@ module Aws
51
53
  def format_set(set)
52
54
  case set.first
53
55
  when String, Symbol then { ss: set.map(&:to_s) }
56
+ when STRINGY_TEST then { ss: set.map(&:to_str) }
54
57
  when Numeric then { ns: set.map(&:to_s) }
55
58
  when StringIO, IO then { bs: set.to_a }
56
59
  else
@@ -1,7 +1,7 @@
1
1
  Aws.add_service(:EC2, {
2
- api: "#{Aws::API_DIR}/ec2/2015-04-15/api-2.json",
3
- docs: "#{Aws::API_DIR}/ec2/2015-04-15/docs-2.json",
4
- paginators: "#{Aws::API_DIR}/ec2/2015-04-15/paginators-1.json",
5
- resources: "#{Aws::API_DIR}/ec2/2015-04-15/resources-1.json",
6
- waiters: "#{Aws::API_DIR}/ec2/2015-04-15/waiters-2.json",
2
+ api: "#{Aws::API_DIR}/ec2/2015-10-01/api-2.json",
3
+ docs: "#{Aws::API_DIR}/ec2/2015-10-01/docs-2.json",
4
+ paginators: "#{Aws::API_DIR}/ec2/2015-10-01/paginators-1.json",
5
+ resources: "#{Aws::API_DIR}/ec2/2015-10-01/resources-1.json",
6
+ waiters: "#{Aws::API_DIR}/ec2/2015-10-01/waiters-2.json",
7
7
  })
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.1.23'
2
+ VERSION = '2.1.24'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.23
4
+ version: 2.1.24
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: 2015-09-17 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -68,10 +68,10 @@ files:
68
68
  - apis/dynamodb/2012-08-10/paginators-1.json
69
69
  - apis/dynamodb/2012-08-10/resources-1.json
70
70
  - apis/dynamodb/2012-08-10/waiters-2.json
71
- - apis/ec2/2015-04-15/api-2.json
72
- - apis/ec2/2015-04-15/paginators-1.json
73
- - apis/ec2/2015-04-15/resources-1.json
74
- - apis/ec2/2015-04-15/waiters-2.json
71
+ - apis/ec2/2015-10-01/api-2.json
72
+ - apis/ec2/2015-10-01/paginators-1.json
73
+ - apis/ec2/2015-10-01/resources-1.json
74
+ - apis/ec2/2015-10-01/waiters-2.json
75
75
  - apis/ecs/2014-11-13/api-2.json
76
76
  - apis/ecs/2014-11-13/paginators-1.json
77
77
  - apis/ecs/2014-11-13/waiters-2.json