rack-reqorder 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25c194e7dea9585fda0d525877fb596b903c4846
4
- data.tar.gz: 02391b748fae7a084c713dd32a7ad21d7456146e
3
+ metadata.gz: f3f1f32765fce26c4878bb91c079c0f2c872a443
4
+ data.tar.gz: 5a55f3346fa2dc1fc7525494fb7feca078fa5802
5
5
  SHA512:
6
- metadata.gz: ac817db8e0268a113907604368e1cd012026a0545f173336e368951a2fc707eede73ba769b4337a85da6fcf0d8e62523db1eae43453c7bf3d27bc9be840c6abb
7
- data.tar.gz: 7c8b80006316a0d9cf75e665da648d9a0c9ccf47583fa36efdcf7ccc336b241c0ed674bb69736da2b1d5b940d0eac0e0a52ed99b26976bbd0afe494a58021c4c
6
+ metadata.gz: 7c168e517621cbfe95767349876ebc8ca315150c0574cfb6e5c19635225a1a50948edc2f91acce93ba96e93712cfdc77be50d27a8bb99b41d5016e614548890c
7
+ data.tar.gz: 655dca00775c4813f2d4a014426e947378c9cfce30f8bb0845886b5a775d647fb329a450c5f8a81091844a5a5b7791698f6d1ec9b78b33a4831f665b172673b2
@@ -35,7 +35,11 @@ module Rack
35
35
  def rails_paths(rails_app)
36
36
  paths = {}
37
37
  rails_app.routes.routes.routes.reverse.each do |route|
38
- paths[route.defaults] = route.path.spec.to_s.gsub('(.:format)', '')
38
+ route_key = route.defaults.select do
39
+ |key, value| [:action, :controller].include?(key)
40
+ end
41
+
42
+ paths[route_key] = route.path.spec.to_s.gsub('(.:format)', '')
39
43
  end
40
44
 
41
45
  return paths
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Reqorder
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-reqorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filippos Vasilakis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-12 00:00:00.000000000 Z
12
+ date: 2015-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -249,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
249
249
  version: '0'
250
250
  requirements: []
251
251
  rubyforge_project:
252
- rubygems_version: 2.4.8
252
+ rubygems_version: 2.4.5
253
253
  signing_key:
254
254
  specification_version: 4
255
255
  summary: Request recorder and analyzer for rack apps