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 +4 -4
- data/CHANGELOG.md +10 -2
- data/lib/polist/service.rb +7 -2
- data/lib/polist/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a65368a827c99be9dbeca560968d9d924630435a62cc4b887c196d9c4ffcc4a
|
4
|
+
data.tar.gz: 651d41439429735882ed8f53f316e94b384fb8f09b9a74c1e32f8353e3845526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
24
|
-
[
|
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
|
data/lib/polist/service.rb
CHANGED
@@ -22,7 +22,11 @@ module Polist
|
|
22
22
|
|
23
23
|
module MiddlewareCaller
|
24
24
|
def call
|
25
|
-
|
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
|
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)
|
data/lib/polist/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|