polist 1.1.0 → 1.1.1

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: ec034ec38c89c8f5446e20a9513c12e9778e485123bbcd56fc088d11e73baf26
4
- data.tar.gz: d52d341772a6e1a312198d3b6e5c0caac885a27c6dca12c02464729aca643a72
3
+ metadata.gz: 5a65368a827c99be9dbeca560968d9d924630435a62cc4b887c196d9c4ffcc4a
4
+ data.tar.gz: 651d41439429735882ed8f53f316e94b384fb8f09b9a74c1e32f8353e3845526
5
5
  SHA512:
6
- metadata.gz: f33e028799cfd4b9c2da407ba407a50c3f298bd51bc5841db63e677b4a38c3b589f1736fb2ca2aba3525111cc1c28b783607d086d5432f068af48cd2077a5b17
7
- data.tar.gz: 063a1f4aad8ac26b9458a79d7abc808d1031a1a3730b84e3b6395858614bc3a8f6c125114de692ee936ca80f1cd20c8ea6bbb5b065d5b4a7085e9c5b0ba95c5c
6
+ metadata.gz: 946a3ff3e0d93822f90c6d27b0801588db165033454cf8d14b459c81b1f6ceef3313c5a528faf4bab3ebbec3037512bbabdfbdf3be6534a7ec9b61b459e66e4d
7
+ data.tar.gz: 5e3d0453b3f9a9ea152250192b3627cb7daf0d5f9db2f4ee2ae50ae0ffc18b24fe1442edb7ce4f204bc285f2d3f6afdfb87a86182ef4033323776efb9167f8bb
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.1.1] - 2019-02-09
6
+
7
+ ### Fixed
8
+
9
+ - Fixed middlewares not being called properly in inherited classes ([@tycooon]) [#4]
10
+
5
11
  ## [1.1.0] - 2019-02-03
6
12
 
7
13
  ### Added
@@ -20,11 +26,13 @@
20
26
 
21
27
  [0.4.0]: https://github.com/umbrellio/polist/tree/v0.4.0
22
28
  [1.0.0]: https://github.com/umbrellio/polist/compare/v0.4.0...v1.0.0
23
- [1.0.0]: https://github.com/umbrellio/polist/compare/v1.0.0...v1.1.0
24
- [Unreleased]: https://github.com/umbrellio/polist/compare/v1.1.0...HEAD
29
+ [1.1.0]: https://github.com/umbrellio/polist/compare/v1.0.0...v1.1.0
30
+ [1.1.1]: https://github.com/umbrellio/polist/compare/v1.1.0...v1.1.1
31
+ [Unreleased]: https://github.com/umbrellio/polist/compare/v1.1.1...HEAD
25
32
 
26
33
  [@nesaulov]: https://github.com/nesaulov
27
34
  [@tycooon]: https://github.com/tycooon
28
35
 
29
36
  [#2]: https://github.com/umbrellio/polist/pull/2
30
37
  [#3]: https://github.com/umbrellio/polist/pull/3
38
+ [#4]: https://github.com/umbrellio/polist/pull/4
@@ -22,7 +22,11 @@ module Polist
22
22
 
23
23
  module MiddlewareCaller
24
24
  def call
25
- call_middlewares
25
+ unless @__polist_middlewares__called__
26
+ call_middlewares
27
+ @__polist_middlewares__called__ = true
28
+ end
29
+
26
30
  super
27
31
  end
28
32
  end
@@ -33,7 +37,8 @@ module Polist
33
37
 
34
38
  def self.inherited(klass)
35
39
  klass.const_set(:Failure, Class.new(klass::Failure))
36
- klass.prepend MiddlewareCaller
40
+ klass.prepend(MiddlewareCaller)
41
+ klass.instance_variable_set(:@__polist_middlewares__, __polist_middlewares__.dup)
37
42
  end
38
43
 
39
44
  def self.build(*args)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polist
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel