routing-filter 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -57,7 +57,7 @@ Rack::Mount::CodeGeneration.class_eval do
57
57
  # hard for your users to hook in anywhere
58
58
  def recognize_with_filtering(request, &block)
59
59
  path, route, matches, params = request.env['PATH_INFO'], nil, nil, nil
60
- filters.run(:around_recognize, path, {}) do
60
+ filters.run(:around_recognize, path, request.env) do
61
61
  route, matches, params = recognize_without_filtering(request)
62
62
  params || {}
63
63
  end
@@ -34,7 +34,7 @@ module RoutingFilter
34
34
  yield(path, env)
35
35
  end
36
36
 
37
- def around_generate(*args, &block)
37
+ def around_generate(params, &block)
38
38
  yield.tap do |result|
39
39
  url = result.is_a?(Array) ? result.first : result
40
40
  append_extension!(url) if append_extension?(url)
@@ -1,3 +1,3 @@
1
1
  module RoutingFilter
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: routing-filter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sven Fuchs
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-24 00:00:00 +02:00
18
+ date: 2010-08-01 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency