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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6acd2b23e5c2564124412e9ec7799aae402bc209d712bde3b784e56f12c2f1cd
4
- data.tar.gz: cc1e55611112b19f3a4fb4def33bac4e36047a544550f784594470a402a05f41
3
+ metadata.gz: 1e8373e3ca7c0ef6c92527d24bd7e30fb87dcd5d59a083fca80e95a61bb9a883
4
+ data.tar.gz: 390923fd0e6d191ab3d6c8abd15ad7ae0d0c14e8c71390e5790bdbeb976b51fc
5
5
  SHA512:
6
- metadata.gz: 24fe2dd496f424d878d7cb3a59cd3876b73041af59c8acddc455a770490257fb283cbd889f08dc24262c010552281e8ed0224437f660d058770dde4e5911fb81
7
- data.tar.gz: f50cfd18585a8fd4de12fb53df20e85bd8fbad14d6e488469ac4c2cc95d84494525f51fdc4e6bc93cb0a85f50d974507a857830dd899b9208dd2ef34878f9faf
6
+ metadata.gz: 2143765a6bef3109ff4348c5fa66ed433c66d1c5f5c29669c4a22441092b405f1ecc02afbcaddbd05dd38237a442120584d3b283ec109a64343b62dc238b7bf2
7
+ data.tar.gz: c1b889643b991cc19e51c1aabf6c3b9c76f8a38402d87e332cd8226569421561450dbe1245013e57a69b036014c51629481343b14ea3ddb57378a8861724b207
data/awspec.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'awspec/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'cthiesfork-awspec'
9
- spec.version = '1.2.1'
9
+ spec.version = '1.2.2'
10
10
  spec.authors = ['cthies']
11
11
  spec.email = ['colekthiessen@gmail.com']
12
12
 
@@ -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', uri: 'http://127.0.0.1:8080/zambonis/{arena}' }
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.uri =~ /arn:aws:.*/
35
- aws_path = method.method_integration.uri.slice!(%r{\/.*})
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cthiesfork-awspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cthies