dox 3.0.0 → 3.0.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: 9a254b169809b99600afcc0dae0e46f55f6214604ceab941215dee84c48d17af
4
- data.tar.gz: a3172985b3aeeff16496a2b192808c90429519ac79c4ddb2b2a4b36f7cbc21f4
3
+ metadata.gz: 6808db0a1af26409a157247f58eaf3762e84adcf958602fce37c3807fce27c61
4
+ data.tar.gz: 46a2cce3f39cb28e04d7ac178dd68e4cbf298d157a7ed4ea63b73eb6a38ed1fc
5
5
  SHA512:
6
- metadata.gz: e47d00386e96ffb5801fcacbafa0f4885dfb7574cbf458e253f0e88d1a6018de7a4efaff29399653c07b625d26695be4b9110ec87284f1be8224374405f21bd9
7
- data.tar.gz: d0063b18dfe5c953bacd5b226872f4f19e8b2524c90740741d94c33f17557c48285e540695acff22d3a8b118ce845c11f0659b6b38882671c6f73b77710b48eb
6
+ metadata.gz: 6fb538b14a0f21199aeba7c8e5c5b1bcc5ed9c6eaf6815cf9897be9a9f771bc620863d3a0db69024ed4624b57eae92fd45034ffd7535fd83a1ce77d8367631f1
7
+ data.tar.gz: 75e22a70a0362ba4f9c6abc6e645acf902473dfb526bdba2b83695adaf7e393944163511265d3b055d596b42c4a5732dd0bc82d53b31ef6fce044383c1a042dc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.0.1
4
+
5
+ ### Bug fixes
6
+
7
+ - Rewind `rack.input` in `Dox::Formatters::Multipart` before re-parsing the request body. Rack 3 dropped the implicit rewind on `Rack::Request#body`, so re-parsing a multipart request whose body had already been consumed by Rails raised `Rack::Multipart::Parser::BoundedIO#read: bad content body (EOFError)` when the formatter ran.
8
+
3
9
  ## v3.0.0
4
10
 
5
11
  ### Enhancements
@@ -14,9 +14,15 @@ module Dox
14
14
  private
15
15
 
16
16
  def extracted_multipart
17
+ rewind_input
17
18
  Rack::Multipart.extract_multipart(http_env)
18
19
  end
19
20
 
21
+ def rewind_input
22
+ body = http_env.body
23
+ body.rewind if body.respond_to?(:rewind)
24
+ end
25
+
20
26
  attr_reader :http_env
21
27
  end
22
28
  end
data/lib/dox/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dox
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dox
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Melita Kokot
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2026-03-02 00:00:00.000000000 Z
13
+ date: 2026-04-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport