lepus 0.1.0 → 0.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: 79f0f6758c114b63fdc54298ffe89a0d314fde163f38603632fd249d4136c5e3
4
- data.tar.gz: a644ff3638a8be640d79c625fa8ce338cc15ab838cd12c731833716e6324775e
3
+ metadata.gz: dd76ca8d60a80fef01e13aacd4ce59688778fcd00b0d98d448eb252d8ba018f0
4
+ data.tar.gz: b934187a671875e0ed1d818b230109f1a3a485fae298125e543a9e5e80936b56
5
5
  SHA512:
6
- metadata.gz: e607ed235f468663e71dddedd6aaed1953ef7aaa4a265cbd92454354fa1a2cd60a3495b243c750d89055db2dced9eda7eb97068aa0785c0f2d6347ed55b8908f
7
- data.tar.gz: c54bbaf33e0dda1cbe46a81fb2756623c49ef1c8bdeefdc5ebae9ba988c3b8c7dfc7d00da5ec14cbbede7e8ff47c3d2e241b4244ef8db0bc67b4c7240f639bf3
6
+ metadata.gz: 3e6704aa3daea26015095548a93608a3596adaba8b479493bfb43e945a3281171f5164524664768d2e784eb5fe585d1b3c4ea86b57b859f1b7943cc32239342c
7
+ data.tar.gz: babc99c5a9de11c5148c64d26599b4a3ce6b6a64296e34b51a31883e9f24622acc02327ea7a0e7cd461336e524f110d8bfb454300e386c0dd054bafabbaec56a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lepus (0.1.0)
4
+ lepus (0.1.1)
5
5
  base64
6
6
  bunny
7
7
  concurrent-ruby
@@ -14,12 +14,13 @@ GEM
14
14
  specs:
15
15
  addressable (2.8.7)
16
16
  public_suffix (>= 2.0.2, < 7.0)
17
- amq-protocol (2.5.1)
17
+ amq-protocol (2.7.0)
18
18
  ast (2.4.2)
19
19
  base64 (0.3.0)
20
20
  bigdecimal (3.1.8)
21
- bunny (2.24.0)
22
- amq-protocol (~> 2.3)
21
+ bunny (3.0.0)
22
+ amq-protocol (~> 2.7)
23
+ logger (~> 1, >= 1.7)
23
24
  sorted_set (~> 1, >= 1.0.2)
24
25
  coderay (1.1.3)
25
26
  concurrent-ruby (1.3.6)
@@ -37,6 +38,7 @@ GEM
37
38
  json (2.7.5)
38
39
  language_server-protocol (3.17.0.3)
39
40
  lint_roller (1.1.0)
41
+ logger (1.7.0)
40
42
  method_source (1.1.0)
41
43
  multi_json (1.15.0)
42
44
  parallel (1.26.3)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lepus (0.1.0)
4
+ lepus (0.1.1)
5
5
  base64
6
6
  bunny
7
7
  concurrent-ruby
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lepus (0.1.0)
4
+ lepus (0.1.1)
5
5
  base64
6
6
  bunny
7
7
  concurrent-ruby
@@ -73,7 +73,7 @@ GEM
73
73
  zeitwerk (~> 2.3)
74
74
  addressable (2.9.0)
75
75
  public_suffix (>= 2.0.2, < 8.0)
76
- amq-protocol (2.7.0)
76
+ amq-protocol (2.8.0)
77
77
  ast (2.4.3)
78
78
  base64 (0.3.0)
79
79
  bigdecimal (4.1.1)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lepus (0.1.0)
4
+ lepus (0.1.1)
5
5
  base64
6
6
  bunny
7
7
  concurrent-ruby
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- lepus (0.1.0)
4
+ lepus (0.1.1)
5
5
  base64
6
6
  bunny
7
7
  concurrent-ruby
@@ -30,9 +30,17 @@ module Lepus
30
30
  end
31
31
 
32
32
  # Returns the middleware chain for this consumer.
33
+ # Inherits middlewares registered on superclasses so abstract base consumers
34
+ # can declare shared middlewares with `use` and have them apply to subclasses.
33
35
  # @return [Lepus::Consumers::MiddlewareChain]
34
36
  def middleware_chain
35
- @middleware_chain ||= Consumers::MiddlewareChain.new
37
+ @middleware_chain ||= begin
38
+ chain = Consumers::MiddlewareChain.new
39
+ if superclass.respond_to?(:middleware_chain)
40
+ superclass.middleware_chain.middlewares.each { |m| chain.middlewares << m }
41
+ end
42
+ chain
43
+ end
36
44
  end
37
45
 
38
46
  # Registers a middleware to this consumer's chain.
data/lib/lepus/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lepus
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lepus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos G. Zimmermann