flame 3.3.3 → 3.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flame/router.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e0db91f0d0f3aa52afc2ca16e70829d42b83148
|
4
|
+
data.tar.gz: 654955ee8ab44693297c4ec6949413de930edc65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 379507397d57b13962c921e30bc67c0ca4ec22a234da8fe6d3431e5916950fb9a444af078037d9320f008e68b9e116f687a788d06d2839afc7fc0f39e068b4c7
|
7
|
+
data.tar.gz: dbaa9b8f502c024f6f05e518390fcf2e566565f0d548eb5bb1dd09f74d365769b1e8f6fb4a68adb887e11bcaeaa25d7ca8d181dda80d9ab7528abec8ee92f805
|
data/lib/flame/router.rb
CHANGED
@@ -90,12 +90,12 @@ module Flame
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
def before(actions
|
93
|
+
def before(actions = :*, action = nil, &block)
|
94
94
|
actions = [actions] unless actions.is_a?(Array)
|
95
95
|
actions.each { |a| (@befores[a] ||= []).push(action || block) }
|
96
96
|
end
|
97
97
|
|
98
|
-
def after(actions
|
98
|
+
def after(actions = :*, action = nil, &block)
|
99
99
|
actions = [actions] unless actions.is_a?(Array)
|
100
100
|
actions.each { |a| (@afters[a] ||= []).push(action || block) }
|
101
101
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Popov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|