flame 3.3.3 → 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flame/router.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 818593ea5e91d1799682df0b33a06a19c26248fd
4
- data.tar.gz: 4f4ef2f5370602c4803e8b996d716dc88f51d200
3
+ metadata.gz: 7e0db91f0d0f3aa52afc2ca16e70829d42b83148
4
+ data.tar.gz: 654955ee8ab44693297c4ec6949413de930edc65
5
5
  SHA512:
6
- metadata.gz: e911c832e857fc1dfbdca84a683568c12d0f3d8d1711b8f9c38c17d874c16fd217fa573badd5af5bdfd6668e5329dabae17907943a5c54e57acf1202c8e0022c
7
- data.tar.gz: 8690872363c5d6f705ff0a181cb1d2ba12b2a40d4fe8efd0a68dd51fc524602fc1933a72842a5636c8698ef61a09918ab6f25320f7fb89db8389fd67bfd8e8f3
6
+ metadata.gz: 379507397d57b13962c921e30bc67c0ca4ec22a234da8fe6d3431e5916950fb9a444af078037d9320f008e68b9e116f687a788d06d2839afc7fc0f39e068b4c7
7
+ data.tar.gz: dbaa9b8f502c024f6f05e518390fcf2e566565f0d548eb5bb1dd09f74d365769b1e8f6fb4a68adb887e11bcaeaa25d7ca8d181dda80d9ab7528abec8ee92f805
@@ -90,12 +90,12 @@ module Flame
90
90
  end
91
91
  end
92
92
 
93
- def before(actions, action = nil, &block)
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, action = nil, &block)
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.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-09 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack