lamby 2.6.0 → 2.6.1

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: 5d9a016b7bcfeb2c05897068c0f4bae484e1769331da8687e1caf743a7acd55a
4
- data.tar.gz: 0cf5b19f4db83a839aaa64e7f498395803c926cb1088f00779dc02a504211268
3
+ metadata.gz: 680b99fd678aef833c4bdca9cee66b2adcb171f8e0ada61fffec9443f6304c21
4
+ data.tar.gz: 41664f4e4e02e4ab88112ad6f5f16ec59901cbd7f58639833a322658afec9443
5
5
  SHA512:
6
- metadata.gz: b4ec3d030577596053e61a85c9e3d64917e06caab8b7119a6fcf3bba4d4ba787804e8ebdfa0c175b1925b61ef25c9026eca5989c93c61637b2db89fdaca4f74c
7
- data.tar.gz: cc7ea0e3b008d694e144f19abdc373b623c80f1df7c8369dee997e0ca3b1ddea98cfb78ecb9836418653d02670604a2d548f38d371d9ac6f80aaf70b088749ba
6
+ metadata.gz: 7705fcb6bf84b50267a0a51008d0003b506198cbfd72c69d7b1114c97780f52f89793374f10d2a36fb0ec7932243e13ba5e8a29b69ab8d8eaa4d9cbb37f16861
7
+ data.tar.gz: 73f4038e54a8a5417cef4586c25497dcad49af932b3359ae3827a115b5d018c42f57a7b39ce8ef43d5da1b6be6251f945e6bf5ee72b2c66d67587d0f11f5c36f
data/CHANGELOG.md CHANGED
@@ -1,73 +1,84 @@
1
1
  <!-- -*- mode: markdown -*- -->
2
+
2
3
  # Keep A Changelog!
3
4
 
4
5
  See this http://keepachangelog.com link for information on how we want this documented formatted.
5
6
 
7
+ ## v2.6.1
8
+
9
+ #### Fixed
10
+
11
+ - Support redirects with empty response body.
12
+
13
+ #### Added
14
+
15
+ - Tests for enabling Rack::Deflate middleware by passing RACK_DEFLATE_ENABLED env variable.
16
+
6
17
  ## v2.6.0
7
18
 
8
19
  #### Fixed
9
20
 
10
- * Support multiple Set-Cookie headers for all rest types.
21
+ - Support multiple Set-Cookie headers for all rest types.
11
22
 
12
23
  ## v2.5.3
13
24
 
14
25
  #### Fixed
15
26
 
16
- * Base64 encode response body if the rack response is gzip or brotli compressed.
27
+ - Base64 encode response body if the rack response is gzip or brotli compressed.
17
28
 
18
29
  ## v2.5.2
19
30
 
20
- * SSM file always overwrites. Fixes #65.
31
+ - SSM file always overwrites. Fixes #65.
21
32
 
22
33
  ## v2.5.1
23
34
 
24
35
  #### Fixed
25
36
 
26
- * Quoting in describe-subnets #62 Thanks @atwoodjw
37
+ - Quoting in describe-subnets #62 Thanks @atwoodjw
27
38
 
28
39
  ## v2.5.0
29
40
 
30
41
  #### Changed
31
42
 
32
- * Install files to favor containers.
43
+ - Install files to favor containers.
33
44
 
34
45
  ## v2.2.2
35
46
 
36
47
  #### Changed
37
48
 
38
- * More ActiveSupport removal. Better ENV.to_h.
49
+ - More ActiveSupport removal. Better ENV.to_h.
39
50
 
40
51
  ## v2.2.1
41
52
 
42
53
  #### Changed
43
54
 
44
- * More ActiveSupport removal from SsmParameterStore.
55
+ - More ActiveSupport removal from SsmParameterStore.
45
56
 
46
57
  ## v2.2.0
47
58
 
48
59
  #### Changed
49
60
 
50
- * Remove dependency on `activesupport` for rack-only applications.
51
- * Remove ActiveSupport artifacts:
61
+ - Remove dependency on `activesupport` for rack-only applications.
62
+ - Remove ActiveSupport artifacts:
52
63
  - Replace `strip_heredoc` with `<<~HEREDOC`.
53
64
  - Remove instances of `Object#try`, replace with `&.`.
54
65
  - Use `Rack::Utils.build_nested_query` in place of `Object#to_query`.
55
66
  - Replace `Object#present?` with `to_s.empty?`.
56
67
  - Replace `Array.wrap` with `Array[obj].compact.flatten`.
57
- * Add a check against the `RAILS_ENV` AND `RACK_ENV` environment
68
+ - Add a check against the `RAILS_ENV` AND `RACK_ENV` environment
58
69
  variables prior to enabling debug mode.
59
70
 
60
71
  ## v2.1.0
61
72
 
62
73
  #### Changed
63
74
 
64
- * Only load the railtie if `Rails` is defined.
75
+ - Only load the railtie if `Rails` is defined.
65
76
 
66
77
  ## v2.0.1
67
78
 
68
79
  #### Changed
69
80
 
70
- * Remove Rails runtime dep. Only rack is needed.
81
+ - Remove Rails runtime dep. Only rack is needed.
71
82
 
72
83
  ## v2.0.0
73
84
 
@@ -75,120 +86,107 @@ Support for new API Gateway HTTP APIs!!!
75
86
 
76
87
  #### Changed
77
88
 
78
- * The `Lamby.handler` must have a `:rack` option. One of `:http`, `:rest`, `:alb`.
79
- * Renamed template generators to match options above.
80
- * The `lamby:install` task now defaults to HTTP API.
81
- * Changed the name of `:api` rack option to `:rest`.
82
- * Removed `export` from Dotenv files. Better Docker compatability.
89
+ - The `Lamby.handler` must have a `:rack` option. One of `:http`, `:rest`, `:alb`.
90
+ - Renamed template generators to match options above.
91
+ - The `lamby:install` task now defaults to HTTP API.
92
+ - Changed the name of `:api` rack option to `:rest`.
93
+ - Removed `export` from Dotenv files. Better Docker compatability.
83
94
 
84
95
  #### Added
85
96
 
86
- * New rack handler for HTTP API v1 and v2.
87
- * Lots of backfill tests for, ALBs & REST APIs.
88
-
97
+ - New rack handler for HTTP API v1 and v2.
98
+ - Lots of backfill tests for, ALBs & REST APIs.
89
99
 
90
100
  ## v1.0.3
91
101
 
92
102
  #### Changed
93
103
 
94
- * Change shebangs to `#!/usr/bin/env bash`
95
-
104
+ - Change shebangs to `#!/usr/bin/env bash`
96
105
 
97
106
  ## v1.0.2
98
107
 
99
108
  #### Changed
100
109
 
101
- * Adds an optional 'overwrite' parameter to #to_env.
110
+ - Adds an optional 'overwrite' parameter to #to_env.
102
111
 
103
112
  ## v1.0.1
104
113
 
105
114
  #### Changed
106
115
 
107
- * Links in bin/build templates to point to lamby.custominktech.com site.
108
-
116
+ - Links in bin/build templates to point to lamby.custominktech.com site.
109
117
 
110
118
  ## v1.0.0
111
119
 
112
120
  #### Fixed
113
121
 
114
- * ALB query params & binary responses. Fixes #38.
115
-
122
+ - ALB query params & binary responses. Fixes #38.
116
123
 
117
124
  ## v0.6.0
118
125
 
119
126
  #### Added
120
127
 
121
- * APPLICATION LOAD BALANACER SUPPORT!!! The new default. Use `rack: :api` option to handler for API Gateway support.
128
+ - APPLICATION LOAD BALANACER SUPPORT!!! The new default. Use `rack: :api` option to handler for API Gateway support.
122
129
 
123
130
  #### Changed
124
131
 
125
- * Rake task `lamby:install` now defaults to `application_load_balancer`
126
-
132
+ - Rake task `lamby:install` now defaults to `application_load_balancer`
127
133
 
128
134
  ## v0.5.1
129
135
 
130
136
  #### Fixed
131
137
 
132
- * The .gitignore file template. Fix .aws-sam dir.
133
-
138
+ - The .gitignore file template. Fix .aws-sam dir.
134
139
 
135
140
  ## v0.5.0
136
141
 
137
142
  #### Added
138
143
 
139
- * Template generators for first install. Ex: `./bin/rake -r lamby lamby:install:api_gateway`.
140
- * New `Lamby::SsmParameterStore.get!` helper.
141
-
144
+ - Template generators for first install. Ex: `./bin/rake -r lamby lamby:install:api_gateway`.
145
+ - New `Lamby::SsmParameterStore.get!` helper.
142
146
 
143
147
  ## v0.4.1
144
148
 
145
149
  #### Fixed
146
150
 
147
- * Fix type in v0.4.0 fix below.
148
-
151
+ - Fix type in v0.4.0 fix below.
149
152
 
150
153
  ## v0.4.0
151
154
 
152
155
  #### Fixed
153
156
 
154
- * File uploads in #33 using `CONTENT_TYPE` and `CONTENT_LENGTH`.
155
-
157
+ - File uploads in #33 using `CONTENT_TYPE` and `CONTENT_LENGTH`.
156
158
 
157
159
  ## v0.3.2
158
160
 
159
161
  #### Added
160
162
 
161
- * Pass Request ID for CloudWatch logs. Fixes #30.
162
-
163
+ - Pass Request ID for CloudWatch logs. Fixes #30.
163
164
 
164
165
  ## v0.3.1
165
166
 
166
167
  #### Changed
167
168
 
168
- * Docs and SAM template tweaks.
169
-
169
+ - Docs and SAM template tweaks.
170
170
 
171
171
  ## v0.3.0
172
172
 
173
173
  #### Added
174
174
 
175
- * Secure configs rake task.
176
- * Project bin setup and tests.
175
+ - Secure configs rake task.
176
+ - Project bin setup and tests.
177
177
 
178
178
  #### Changed
179
179
 
180
- * SAM template tweaks.
181
-
180
+ - SAM template tweaks.
182
181
 
183
182
  ## v0.2.0
184
183
 
185
184
  #### Changed
186
185
 
187
- * Simple docs and project re-organization.
188
-
186
+ - Simple docs and project re-organization.
189
187
 
190
188
  ## v0.1.0
191
189
 
192
190
  #### Added
193
191
 
194
- * New gem and placeholder in rubygems.
192
+ - New gem and placeholder in rubygems.
data/Rakefile CHANGED
@@ -10,4 +10,12 @@ Rake::TestTask.new(:test) do |t|
10
10
  t.warning = false
11
11
  end
12
12
 
13
- task :default => :test
13
+ Rake::TestTask.new(:test_deflate) do |t|
14
+ t.libs << "test"
15
+ t.libs << "lib"
16
+ t.test_files = FileList["test/rack_deflate_test.rb"]
17
+ t.verbose = false
18
+ t.warning = false
19
+ end
20
+
21
+ task :default => [:test, :test_deflate]
data/bin/_test CHANGED
@@ -4,3 +4,4 @@ set -e
4
4
  export RAILS_ENV="test"
5
5
 
6
6
  bundle exec rake test
7
+ RACK_DEFLATE_ENABLED=1 bundle exec rake test_deflate
data/lib/lamby/handler.rb CHANGED
@@ -40,7 +40,7 @@ module Lamby
40
40
 
41
41
  def body
42
42
  @rbody ||= ''.tap do |rbody|
43
- @body.each { |part| rbody << part }
43
+ @body.each { |part| rbody << part if part }
44
44
  end
45
45
  end
46
46
 
data/lib/lamby/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lamby
2
- VERSION = '2.6.0'
2
+ VERSION = '2.6.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lamby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-04 00:00:00.000000000 Z
11
+ date: 2021-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack