bbk-app 1.1.0.199604 → 1.1.0.199675

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0b3be53f1520e37530b898c036f3ff2926aadc0dba02de4cd09a0db46f01c70
4
- data.tar.gz: 89b366aa046c1d159a192d70bafb5705fe2333b7e1c78ae5f0a03ddc66f773f5
3
+ metadata.gz: 1627d732160615549f9b53f30caccedf4edd211722a7c5abcd394094c5ab3dc3
4
+ data.tar.gz: 616129ff11315119b2bf10fa924fd8203bc3227cfb9c93ce8b7651ee48ffaac5
5
5
  SHA512:
6
- metadata.gz: ac133a5f83ef9c8744f811eda10066e8dd8e23caa79bdc5b9fd689fe01ef5740e1337633e5f796c4e6be9c638600fa7db49e419aa458fff668c342b15b8e8d1b
7
- data.tar.gz: 27cbe213fd2946740f25efbaa5f7c7226f3e2128750b8e48302e6e16917cc32b51da1f6c2e46c46273b9f6a4391f6a8b7fbfd7f6c0753766f620964761163bde
6
+ metadata.gz: 16ac439815ff4046ca4048e06c81d660cc4161dcceb1d1c102085cbadec523ab76c79cb80aaee4a1b757acf14f346407f9eb593f48912764be82e5971cf4f257
7
+ data.tar.gz: 45d79789d3c65e78eb7a3ce1d19a995f2767f6f28e0ea262c36e80d8f7a9349926510b56ff58474ce7b1af318b74ebcbb621e7bde75a2b9b1b0a7fc1e4f7bb4a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bbk-app (1.1.0.199604)
4
+ bbk-app (1.1.0.199675)
5
5
  activesupport
6
6
  bbk-utils (> 1.0.1)
7
7
  timeouter
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bbk-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.199604
4
+ version: 1.1.0.199675
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samoilenko Yuri