cthiesfork-awspec 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/awspec.gemspec +1 -1
- data/lib/awspec/stub/apigateway.rb +7 -1
- data/lib/awspec/type/apigateway.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e8373e3ca7c0ef6c92527d24bd7e30fb87dcd5d59a083fca80e95a61bb9a883
|
4
|
+
data.tar.gz: 390923fd0e6d191ab3d6c8abd15ad7ae0d0c14e8c71390e5790bdbeb976b51fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2143765a6bef3109ff4348c5fa66ed433c66d1c5f5c29669c4a22441092b405f1ecc02afbcaddbd05dd38237a442120584d3b283ec109a64343b62dc238b7bf2
|
7
|
+
data.tar.gz: c1b889643b991cc19e51c1aabf6c3b9c76f8a38402d87e332cd8226569421561450dbe1245013e57a69b036014c51629481343b14ea3ddb57378a8861724b207
|
data/awspec.gemspec
CHANGED
@@ -88,7 +88,8 @@ Aws.config[:apigateway] = {
|
|
88
88
|
resource_methods: {
|
89
89
|
'POST' => {
|
90
90
|
http_method: 'POST',
|
91
|
-
method_integration: { http_method: 'POST',
|
91
|
+
method_integration: { http_method: 'POST',
|
92
|
+
uri: 'http://127.0.0.1:8080/zambonis/{arena}?arena=Saddledome' }
|
92
93
|
}
|
93
94
|
}
|
94
95
|
},
|
@@ -99,6 +100,11 @@ Aws.config[:apigateway] = {
|
|
99
100
|
http_method: 'POST',
|
100
101
|
method_integration: { http_method: 'AWS',
|
101
102
|
uri: 'arn:aws:apigateway:us-east-1:cognito-idp:action/ListUsers' }
|
103
|
+
},
|
104
|
+
'GET' => {
|
105
|
+
http_method: 'GET',
|
106
|
+
method_integration: { http_method: 'AWS',
|
107
|
+
uri: 'arn:aws:apigateway:us-east-1:cognito-idp:action/SignUp?username=test' }
|
102
108
|
}
|
103
109
|
}
|
104
110
|
}
|
@@ -31,8 +31,8 @@ module Awspec::Type
|
|
31
31
|
self.api_resources.each do |resource|
|
32
32
|
next if resource.resource_methods.nil?
|
33
33
|
resource.resource_methods.each do |_, method|
|
34
|
-
if method.method_integration.
|
35
|
-
aws_path = method.method_integration.uri.
|
34
|
+
if method.method_integration.http_method == 'AWS'
|
35
|
+
aws_path = method.method_integration.uri.match(%r{(\/[^\?]+)\??.*$}).captures[0]
|
36
36
|
return resource if aws_path == path
|
37
37
|
end
|
38
38
|
uri = Addressable::URI.parse(method.method_integration.uri)
|