prauga-flexdoc 0.4.2 → 0.4.3

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.
@@ -10,8 +10,14 @@ module Prauga
10
10
  class Host
11
11
  IMMUTABLE_CACHE = "public, max-age=31536000, immutable"
12
12
 
13
+ # @!attribute [r] config
14
+ # @return [Config] validated renderer and route configuration for this host
15
+ # @!attribute [r] fingerprint
16
+ # @return [String] stable renderer-asset fingerprint used for cache-busting URLs
13
17
  attr_reader :config, :fingerprint
14
18
 
19
+ # Create a host and load its canonical renderer assets.
20
+ #
15
21
  # @param config [Config] renderer and route settings
16
22
  # @param assets_dir [String, nil] optional directory overriding bundled renderer assets
17
23
  def initialize(config = Config.new, assets_dir: nil)
@@ -3,6 +3,15 @@
3
3
  module Prauga
4
4
  module FlexDoc
5
5
  # HTTP response produced by {Host}.
6
+ #
7
+ # @!attribute [r] status
8
+ # @return [Integer] HTTP status code
9
+ # @!attribute [r] content_type
10
+ # @return [String] response Content-Type value
11
+ # @!attribute [r] body
12
+ # @return [String] response body
13
+ # @!attribute [r] cache_control
14
+ # @return [String, nil] optional Cache-Control value
6
15
  Response = Data.define(:status, :content_type, :body, :cache_control) do
7
16
  # @return [Hash{String => String}] Rack-compatible response headers.
8
17
  def headers
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prauga
4
4
  module FlexDoc
5
- VERSION = "0.4.2"
5
+ VERSION = "0.4.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prauga-flexdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prauga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-07 00:00:00.000000000 Z
11
+ date: 2026-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack