shark-on-lambda 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/changelog.md +4 -0
- data/gems.locked +1 -1
- data/lib/shark_on_lambda/concerns/filter_actions.rb +13 -2
- data/lib/shark_on_lambda/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: f091b300adf3d8f61348709fda7e061034795d63e23863cf8a5ad2bb69c2f99f
|
4
|
+
data.tar.gz: 464d169e160ed5037b86c9452a6fef0aff6f300e420f83f8998d4a837463d16c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4354b29deda5404521f86c5741ac88a24e9487ba9bbeb9721a9940e14c8118b79262ee7f70650d5940b5724e339f7dbf5ed560cef837008b27b3cb8c0597a396
|
7
|
+
data.tar.gz: 9ca791b0d2cc3a7b5aa3a0b8e88114f92cc4ed4fbc0ae8e00d4cdde402e4142ed4f465e75cc2457d87012bdd6843d45d82ef37329e55f90c8c8f0ce539637f95
|
data/changelog.md
CHANGED
data/gems.locked
CHANGED
@@ -18,7 +18,7 @@ module SharkOnLambda
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def after_actions
|
21
|
-
|
21
|
+
collect_from_ancestors(:after_actions) + Array(@after_actions)
|
22
22
|
end
|
23
23
|
|
24
24
|
def before_action(symbol, only: [], except: [])
|
@@ -31,7 +31,18 @@ module SharkOnLambda
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def before_actions
|
34
|
-
|
34
|
+
collect_from_ancestors(:before_actions) + Array(@before_actions)
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
def collect_from_ancestors(method)
|
40
|
+
ancestors_without_self = ancestors[1..-1]
|
41
|
+
return [] if ancestors_without_self.empty?
|
42
|
+
|
43
|
+
ancestors_without_self.map! { |ancestor| ancestor.try(method) }
|
44
|
+
ancestors_without_self.compact!
|
45
|
+
ancestors_without_self.reduce([], &:+)
|
35
46
|
end
|
36
47
|
end
|
37
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shark-on-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Huy Dinh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|