puma 6.2.0 → 6.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of puma might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 677c15b54efd114ff1e95b31d37efc806c3fdbc955988a2d33a37c4b4b10007f
4
- data.tar.gz: fb375bd8be23a5945b5fa497b124444905a5364815e725636eaad86c7d42c5e2
3
+ metadata.gz: 15b598484e8fbdd9262dfdb0f4cc8ec379b48d8b3f83f6079533d216f37fb12d
4
+ data.tar.gz: d80fc6d21a8ead42565a112d6a4d53313796d729790df9d5be797218f40a7af4
5
5
  SHA512:
6
- metadata.gz: 81fbd7fc8da45a1cf3a7dd7c233ae97a1cf41fb788a263ed14f4ce12c0ceac9c024d209f0a99ce61ed9a29e409e7c1442a266b43a89d87f7fb9537e3e6c3526a
7
- data.tar.gz: 21651a742ad2ec25804b435b44c2cf3d7bca6f691a36d405f413a2b0f325216f45df5f983ada1b3b5367cf35306fae4d8de46613b657ea5c27a2097d74ba72fd
6
+ metadata.gz: 3d6a969b599e9e919de4cbead5963379261c4fee1190f361e80945a03ed0d0932e770b62dd37db1388ff473f09f40bca3fe477e82238e234246c0becf70f7553
7
+ data.tar.gz: 2c8be61d5340256eaaca6d093bfad46401199700472a971881dafb7661e0c44fa9bff699e1cd24c031f51b79b3f01854498f80988707933fb6abb1d0fc2bfe05
data/History.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 6.2.1 / 2023-03-31
2
+
3
+ * Bugfixes
4
+ * Fix java 8 compatibility ([#3109], [#3108])
5
+ * Always write io_buffer when in "enum bodies" branch. ([#3113], [#3112])
6
+ * Fix warn_if_in_single_mode incorrect message ([#3111])
7
+
1
8
  ## 6.2.0 / 2023-03-29
2
9
 
3
10
  * Features
@@ -1967,6 +1974,11 @@ be added back in a future date when a java Puma::MiniSSL is added.
1967
1974
  * Bugfixes
1968
1975
  * Your bugfix goes here <Most recent on the top, like GitHub> (#Github Number)
1969
1976
 
1977
+ [#3109]:https://github.com/puma/puma/pull/3109 "PR by @ahorek, merged 2023-03-31"
1978
+ [#3108]:https://github.com/puma/puma/issues/3108 "Issue by @treviateo, closed 2023-03-31"
1979
+ [#3113]:https://github.com/puma/puma/pull/3113 "PR by @collinsauve, merged 2023-03-31"
1980
+ [#3112]:https://github.com/puma/puma/issues/3112 "Issue by @dmke, closed 2023-03-31"
1981
+ [#3111]:https://github.com/puma/puma/pull/3111 "PR by @adzap, merged 2023-03-30"
1970
1982
  [#2770]:https://github.com/puma/puma/pull/2770 "PR by @vzajkov, merged 2023-03-29"
1971
1983
  [#2511]:https://github.com/puma/puma/issues/2511 "Issue by @jchristie55332, closed 2021-12-12"
1972
1984
  [#3089]:https://github.com/puma/puma/pull/3089 "PR by @Vuta, merged 2023-03-06"
data/lib/puma/const.rb CHANGED
@@ -99,7 +99,7 @@ module Puma
99
99
  # too taxing on performance.
100
100
  module Const
101
101
 
102
- PUMA_VERSION = VERSION = "6.2.0"
102
+ PUMA_VERSION = VERSION = "6.2.1"
103
103
  CODE_NAME = "Speaking of Now"
104
104
 
105
105
  PUMA_SERVER_STRING = ["puma", PUMA_VERSION, CODE_NAME].join(" ").freeze
data/lib/puma/dsl.rb CHANGED
@@ -1103,7 +1103,7 @@ module Puma
1103
1103
  if (@options[:workers] || 0) == 0
1104
1104
  log_string =
1105
1105
  "Warning: You specified code to run in a `#{hook_name}` block, " \
1106
- "but Puma is configured to run in cluster mode, " \
1106
+ "but Puma is not configured to run in cluster mode (worker count > 0 ), " \
1107
1107
  "so your `#{hook_name}` block did not run"
1108
1108
 
1109
1109
  LogWriter.stdio.log(log_string)
data/lib/puma/request.rb CHANGED
@@ -180,7 +180,7 @@ module Puma
180
180
  if !content_length && !resp_info[:transfer_encoding] && status != 204
181
181
  if res_body.respond_to?(:to_ary) && (array_body = res_body.to_ary) &&
182
182
  array_body.is_a?(Array)
183
- body = array_body
183
+ body = array_body.compact
184
184
  content_length = body.sum(&:bytesize)
185
185
  elsif res_body.is_a?(File) && res_body.respond_to?(:size)
186
186
  body = res_body
@@ -363,12 +363,19 @@ module Puma
363
363
  else
364
364
  # for enum bodies
365
365
  if chunked
366
+ empty_body = true
366
367
  body.each do |part|
367
- next if (byte_size = part.bytesize).zero?
368
+ next if part.nil? || (byte_size = part.bytesize).zero?
369
+ empty_body = false
368
370
  io_buffer.append byte_size.to_s(16), LINE_END, part, LINE_END
369
371
  fast_write_str socket, io_buffer.read_and_reset
370
372
  end
371
- fast_write_str socket, CLOSE_CHUNKED
373
+ if empty_body
374
+ io_buffer << CLOSE_CHUNKED
375
+ fast_write_str socket, io_buffer.read_and_reset
376
+ else
377
+ fast_write_str socket, CLOSE_CHUNKED
378
+ end
372
379
  else
373
380
  fast_write_str socket, io_buffer.read_and_reset
374
381
  body.each do |part|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puma
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Phoenix