aws-sdk-resources 2.3.14 → 2.3.15
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd5c47e1d91d01894fd08a04cb470be89c21676
|
4
|
+
data.tar.gz: 6476649e1c2a5c2591db6b11d6972c27c9ac502e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 00f070b2285ea51418621e3c95e9058124dfbd3099f76151a6fe740a77987e5f8ae158775f5f30dd51c19612166d1f0d0514a52687f5d08ea108360a67dc78c5
|
7
|
+
data.tar.gz: 24f7871ba1085dda83d7b269a6496fb41e3da900a3a00be704f9d61d1541fba0ac22040c3268e8497f1be221ece509fb6ee3194b94b9ee7696c1b8ab73375b2e
|
@@ -252,45 +252,47 @@ module Aws
|
|
252
252
|
|
253
253
|
def builder_sources(sources)
|
254
254
|
sources.map do |definition|
|
255
|
-
send("#{definition['source']}_builder_source", definition)
|
255
|
+
send("#{definition['source']}_builder_source", definition, sources)
|
256
256
|
end
|
257
257
|
end
|
258
258
|
|
259
|
-
def input_builder_source(definition)
|
259
|
+
def input_builder_source(definition, sources)
|
260
|
+
arguments = sources.select { |s| s['source'] == 'input' }
|
260
261
|
BuilderSources::Argument.new({
|
262
|
+
source: arguments.index(definition),
|
261
263
|
target: underscore(definition['target']),
|
262
264
|
})
|
263
265
|
end
|
264
266
|
|
265
|
-
def identifier_builder_source(definition)
|
267
|
+
def identifier_builder_source(definition, _)
|
266
268
|
BuilderSources::Identifier.new({
|
267
269
|
source: underscore(definition['name']),
|
268
270
|
target: underscore(definition['target']),
|
269
271
|
})
|
270
272
|
end
|
271
273
|
|
272
|
-
def data_builder_source(definition)
|
274
|
+
def data_builder_source(definition, _)
|
273
275
|
BuilderSources::DataMember.new({
|
274
276
|
source: underscore(definition['path']),
|
275
277
|
target: underscore(definition['target']),
|
276
278
|
})
|
277
279
|
end
|
278
280
|
|
279
|
-
def requestParameter_builder_source(definition)
|
281
|
+
def requestParameter_builder_source(definition, _)
|
280
282
|
BuilderSources::RequestParameter.new({
|
281
283
|
source: underscore(definition['path']),
|
282
284
|
target: underscore(definition['target']),
|
283
285
|
})
|
284
286
|
end
|
285
287
|
|
286
|
-
def response_builder_source(definition)
|
288
|
+
def response_builder_source(definition, _)
|
287
289
|
BuilderSources::ResponsePath.new({
|
288
290
|
source: underscore(definition['path']),
|
289
291
|
target: underscore(definition['target']),
|
290
292
|
})
|
291
293
|
end
|
292
294
|
|
293
|
-
def string_builder_source(definition)
|
295
|
+
def string_builder_source(definition, _)
|
294
296
|
BuilderSources::ResponsePath.new({
|
295
297
|
source: underscore(definition['value']),
|
296
298
|
target: underscore(definition['target']),
|
@@ -15,7 +15,7 @@ module Aws
|
|
15
15
|
|
16
16
|
def parameters
|
17
17
|
if argument?
|
18
|
-
[
|
18
|
+
arguments.map { |arg| [argument_name(arg), nil] }
|
19
19
|
else
|
20
20
|
[]
|
21
21
|
end
|
@@ -24,10 +24,12 @@ module Aws
|
|
24
24
|
def tags
|
25
25
|
tags = super
|
26
26
|
if argument?
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
arguments.each do |arg|
|
28
|
+
tag = "@param [String] #{argument_name(arg)} "
|
29
|
+
tag << "The {#{target_resource_class_name}##{argument_name(arg)}} "
|
30
|
+
tag << "identifier."
|
31
|
+
tags += YARD::DocstringParser.new.parse(tag).to_docstring.tags
|
32
|
+
end
|
31
33
|
end
|
32
34
|
tags
|
33
35
|
end
|
@@ -48,10 +50,13 @@ module Aws
|
|
48
50
|
builder.sources.find { |s| BuilderSources::DataMember === s }
|
49
51
|
end
|
50
52
|
|
51
|
-
def
|
52
|
-
|
53
|
+
def arguments
|
54
|
+
builder.sources.select do |source|
|
53
55
|
BuilderSources::Argument === source
|
54
56
|
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def argument_name(argument)
|
55
60
|
argument.target.to_s
|
56
61
|
end
|
57
62
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.15
|
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: 2016-06-
|
11
|
+
date: 2016-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.3.
|
19
|
+
version: 2.3.15
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.3.
|
26
|
+
version: 2.3.15
|
27
27
|
description: Provides resource oriented interfaces and other higher-level abstractions
|
28
28
|
for many AWS services. This gem is part of the official AWS SDK for Ruby.
|
29
29
|
email:
|