ratalada 2.0.0 → 2.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: a9932c4c02d4733e5a9b9ea33cc28f284b24bf9556eaae84fb70c6e8c2175ff9
4
- data.tar.gz: b40aa17c1c6f96247fb8fdb965d97830cba834cb65dba986f562476d8fd65569
3
+ metadata.gz: 6d020d5668bf545f9babae240d0aed21f6fea5edc6b1f157b95403b3f29ae1d9
4
+ data.tar.gz: 706e4faeaa540a52e8d71de16a00332828ce81808b43d0bde4d9d84d785fa4be
5
5
  SHA512:
6
- metadata.gz: 42c4fe9a65c44ee9801bbfc61e1366fa87d5545a56b634565998f307a5bd591bd460d9e0fde0b26213f4c5684a5d4fad93365e3cd0b96807cf039a5e978dac06
7
- data.tar.gz: c5bb3fb1395ba10ba2e7aa58ce514631fe97c10bcc25d24a0048949a8c8ded24bbc410397c2ec8845fae5e2d4d0cf52723387a6e5db35852e58793b667f4a4d2
6
+ metadata.gz: 651da70b2bbca675a448cf91f247c00ac9f74be3c2a871a9cd1978cc615444df0b685edd048cd8e28b16a3b2d1fb9750ffd707818ba57025e3fe07d7044b81c4
7
+ data.tar.gz: 302f09422321099f66e839d8274251269e3b828cedb7edbc6bb1c1fa90fa6cfe6dc61ef1f64945477bd6cd3d90aa4396829be9bdd908d14c651eef7646ae99b4
@@ -16,8 +16,15 @@ module Ratalada
16
16
  # hand it to Async::Service::Controller. The controller binds the socket
17
17
  # once in the parent, runs `count` supervised workers accepting from it
18
18
  # (restarts, health checks, INT/TERM/HUP handling all come with it).
19
- def run(app, host:, port:, count: 1)
20
- middleware = ::Falcon::Server.middleware(app)
19
+ # `falcon host` builds its middleware via Environment::Rackup, which
20
+ # threads Environment::Server#cache -- false -- into rack_middleware, so
21
+ # the response cache is off unless `falcon serve --cache` asks for it.
22
+ # Worth keeping off by default: the store is keyed on
23
+ # [authority, method, path], entries without max-age never expire, and
24
+ # lookups skip the Cookie check that insertion applies, so one anonymous
25
+ # response can be replayed to logged-in requests.
26
+ def run(app, host:, port:, count: 1, cache: false)
27
+ middleware = ::Falcon::Server.rack_middleware(app, cache: cache)
21
28
 
22
29
  environment = Async::Service::Environment.new(::Falcon::Environment::Server).with(
23
30
  name: "ratalada",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ratalada
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratalada
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K