lambda_open_api 0.3.0 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c42e035e2e2bf496ab96a72b0c831856b4b6f49e748d475a35c2c169d102e440
4
- data.tar.gz: 6ab00c5232cfe9999917f687bfdc4c12b6a0d7e78803ced3300115539a64aecf
3
+ metadata.gz: 8bebea26c2e189b67b8293542543e7afbdf22a5972469c74071be0e98f9e00c1
4
+ data.tar.gz: cbf024311a222258ba870c2b0686c1fba47a8c24f35d03b4fcdd489a4b51295d
5
5
  SHA512:
6
- metadata.gz: fd2c7d7f46ac767dadf2c322ce1e5d5ba7d6241ffddaba5fd555fb2f7aeff1bac2e8c77abf4ba0cfc0929c5f39d43a127f2f7bf92bb387daac7ba8c2bb9db9fd
7
- data.tar.gz: 1b142c252b123faeacc91d60e364fc0e6988c7ed9f03bc8f3de8ea6c10c91470dc0c5817037335ce31de203c555a8c43a918a52952cc55ede69902fa11095217
6
+ metadata.gz: 98673bf7f7fc21aebcef15df7c162850e3e796a0f69d646779e498085998ad8e1103ca6dddd745655bc00d44786ce23dcd8396fe1178507450b9cefdd0699438
7
+ data.tar.gz: ad17b2f2c3f0f379fd6e8756c3eadefb9ea65de5453a8a9b3b40e1cdb6c0887636e6eb4846e0b9d870a64af5681b712eeb096352573d571616d8653e1a82a6c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lambda_open_api (0.3.0)
4
+ lambda_open_api (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -50,7 +50,7 @@ module LambdaOpenApi
50
50
  def crud_verb(verb, path)
51
51
  @action = LambdaOpenApi::Action.new(name: @name, http_verb: verb, path_name: path)
52
52
  @event = @default_event.dup
53
- @event.request_context = {"httpMethod" => verb.upcase}
53
+ @event.request_context = {"httpMethod" => verb.upcase, "http" => {"method" => verb.upcase}}
54
54
 
55
55
  yield
56
56
 
@@ -7,7 +7,7 @@ module LambdaOpenApi
7
7
  @title = "Workflow Settings Api"
8
8
  @description = "About this api"
9
9
  @version = "1"
10
- @host = "https://google.com"
10
+ @host = "google.com"
11
11
  @schemes = ["https"]
12
12
  @consumes = ["application/json"]
13
13
  @produces = ["application/json"]
@@ -8,6 +8,7 @@ module LambdaOpenApi
8
8
  end
9
9
 
10
10
  def response_body
11
+ return unless response
11
12
  response["body"] || response[:body] || response
12
13
  end
13
14
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LambdaOpenApi
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lambda_open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothyjb
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-31 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -70,7 +70,6 @@ files:
70
70
  - LICENSE.txt
71
71
  - README.md
72
72
  - Rakefile
73
- - lambda_open_api.gemspec
74
73
  - lib/lambda_open_api.rb
75
74
  - lib/lambda_open_api/action.rb
76
75
  - lib/lambda_open_api/body_parameter.rb
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/lambda_open_api/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "lambda_open_api"
7
- spec.version = LambdaOpenApi::VERSION
8
- spec.authors = ["Timothyjb"]
9
- spec.email = ["timothyjbarkley@gmail.com"]
10
-
11
- spec.summary = "A DSL for generating OpenAPI (swagger) files for APIs using AWS Lambda"
12
- spec.description = "This gem is a light weight DSL that works with rspec to allow developers to generate an OpenAPI (swagger) file based an AWS Lambda invoked by API Gateway. It works by writing a simple unit test for your lambda's code. When the test is executed, the input event and returned response are captured and used to build an OpenAPI file."
13
- spec.homepage = "https://github.com/Timothyjb/lambda_open_api"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.5.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/Timothyjb/lambda_open_api"
19
-
20
- # Specify which files should be added to the gem when it is released.
21
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
- spec.files = Dir.chdir(__dir__) do
23
- `git ls-files -z`.split("\x0").reject do |f|
24
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
25
- end
26
- end
27
- spec.bindir = "exe"
28
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
- spec.require_paths = ["lib"]
30
-
31
- # Uncomment to register a new dependency of your gem
32
- spec.add_development_dependency "minitest"
33
- spec.add_development_dependency "minitest-reporters"
34
- spec.add_development_dependency "rspec"
35
-
36
- # For more information and examples about making a new gem, check out our
37
- # guide at: https://bundler.io/guides/creating_gem.html
38
- end