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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2df1833f6bbcdb0b60906ac77ae41eba9f51b6e89e09d1989757b295d2ceb0fd
4
- data.tar.gz: e595e6406005da80abb5b00effd7fc13e3cc72e67d953e0593feeed0c7993e93
3
+ metadata.gz: 904fe4b7cf4d217af1bf99bc975fdf12e72fb0c8ce528b0d34d87c188ea3ed02
4
+ data.tar.gz: 8e0a15f17736d1c95118b0e35df5990beb798de2995afb539285300d2f0564bf
5
5
  SHA512:
6
- metadata.gz: 0e537b4f324c5315c09efd7e85de4cad60c4d749e53f7f4b2405374f5022abe6040131a41c75452f37a88eddca0703c3e375a245bf30a0e2b0f2ca95c089a528
7
- data.tar.gz: bba5acc0b84503d1ace33dfb13031e777faa383e6476266a84c14bfa83c950bc8b690ed8c67cd854a4512f4c7d2b68395cd880d6a83ce32496e3d99648da9a4c
6
+ metadata.gz: d97fe19025f167627f937abc4668190e70cc790116f4d7d8da0bd218f32ebff6a1c8f0139f691a8216c40b84dfb0fc4b2294cb116e8546ab2de33da30cd5a065
7
+ data.tar.gz: 171fa094f49f70c1c105f90c4c6889fa512a3d0f49195f03482325cabf06dd8e45358afd6260010753febf01d8aad59662e6da5afbe3239b57da7dc36765ed26
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ratalada
4
- VERSION = "4.1.0"
4
+ VERSION = "4.1.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: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan K