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 +4 -4
- data/lib/rack/reqorder/route_recognizers.rb +5 -1
- data/lib/rack/reqorder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3f1f32765fce26c4878bb91c079c0f2c872a443
|
4
|
+
data.tar.gz: 5a55f3346fa2dc1fc7525494fb7feca078fa5802
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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
|
+
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.
|
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
|