ratalada 4.1.0 → 4.1.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 +4 -4
- data/lib/ratalada/async.rb +5 -1
- data/lib/ratalada/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 904fe4b7cf4d217af1bf99bc975fdf12e72fb0c8ce528b0d34d87c188ea3ed02
|
|
4
|
+
data.tar.gz: 8e0a15f17736d1c95118b0e35df5990beb798de2995afb539285300d2f0564bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d97fe19025f167627f937abc4668190e70cc790116f4d7d8da0bd218f32ebff6a1c8f0139f691a8216c40b84dfb0fc4b2294cb116e8546ab2de33da30cd5a065
|
|
7
|
+
data.tar.gz: 171fa094f49f70c1c105f90c4c6889fa512a3d0f49195f03482325cabf06dd8e45358afd6260010753febf01d8aad59662e6da5afbe3239b57da7dc36765ed26
|
data/lib/ratalada/async.rb
CHANGED
|
@@ -4,7 +4,6 @@ require "async/http/server"
|
|
|
4
4
|
require "async/http/endpoint"
|
|
5
5
|
require "protocol/http"
|
|
6
6
|
require "protocol/url"
|
|
7
|
-
require "protocol/rack/adapter"
|
|
8
7
|
require_relative "protocol_http_ext"
|
|
9
8
|
require_relative "../ratalada"
|
|
10
9
|
|
|
@@ -94,6 +93,11 @@ module Ratalada
|
|
|
94
93
|
# @returns [Object] the adapted app.
|
|
95
94
|
def adapt(app)
|
|
96
95
|
if Ratalada.rack_frontend?
|
|
96
|
+
# Required here rather than at the top: a Protocol frontend -- which is what
|
|
97
|
+
# this backend installs over the default -- never touches the adapter, so
|
|
98
|
+
# requiring it on load pulls protocol-rack in for nothing.
|
|
99
|
+
require "protocol/rack/adapter"
|
|
100
|
+
|
|
97
101
|
::Protocol::Rack::Adapter.new(app)
|
|
98
102
|
else
|
|
99
103
|
app
|
data/lib/ratalada/version.rb
CHANGED