bbk-app 1.1.0.199604 → 1.1.0.199675
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/Gemfile.lock +1 -1
- data/lib/bbk/app/dispatcher.rb +0 -14
- 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: 1627d732160615549f9b53f30caccedf4edd211722a7c5abcd394094c5ab3dc3
|
4
|
+
data.tar.gz: 616129ff11315119b2bf10fa924fd8203bc3227cfb9c93ce8b7651ee48ffaac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16ac439815ff4046ca4048e06c81d660cc4161dcceb1d1c102085cbadec523ab76c79cb80aaee4a1b757acf14f346407f9eb593f48912764be82e5971cf4f257
|
7
|
+
data.tar.gz: 45d79789d3c65e78eb7a3ce1d19a995f2767f6f28e0ea262c36e80d8f7a9349926510b56ff58474ce7b1af318b74ebcbb621e7bde75a2b9b1b0a7fc1e4f7bb4a
|
data/Gemfile.lock
CHANGED
data/lib/bbk/app/dispatcher.rb
CHANGED
@@ -59,16 +59,6 @@ module BBK
|
|
59
59
|
publishers << publisher
|
60
60
|
end
|
61
61
|
|
62
|
-
# set default publisher for results with empty scheme or DEFAULT_PROTOCOL scheme
|
63
|
-
def default_publisher=(publisher)
|
64
|
-
@default_publisher = publisher
|
65
|
-
end
|
66
|
-
|
67
|
-
# get default publisher
|
68
|
-
def default_publisher
|
69
|
-
@default_publisher || (publishers.size == 1 ? publishers.first : nil)
|
70
|
-
end
|
71
|
-
|
72
62
|
def register_middleware(middleware)
|
73
63
|
middlewares << middleware
|
74
64
|
end
|
@@ -222,10 +212,6 @@ module BBK
|
|
222
212
|
route = result.route
|
223
213
|
logger.debug "Publish result to #{route} ..."
|
224
214
|
publisher = publishers.find {|pub| pub.protocols.include?(route.scheme) }
|
225
|
-
if route.scheme.nil? || route.scheme == DEFAULT_PROTOCOL
|
226
|
-
logger.debug "Use default publisher for result with route=#{route}"
|
227
|
-
publisher = default_publisher
|
228
|
-
end
|
229
215
|
raise "Not found publisher for scheme #{route.scheme}" if publisher.nil?
|
230
216
|
|
231
217
|
# return Concurrent::Promises.resolvable_future
|