routes_coverage 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/rails_40.gemfile +2 -2
- data/gemfiles/rails_40.gemfile.lock +2 -2
- data/gemfiles/rails_40_rspec.gemfile +2 -2
- data/gemfiles/rails_40_rspec.gemfile.lock +2 -2
- data/gemfiles/rails_40_simplecov.gemfile +1 -1
- data/gemfiles/rails_40_simplecov.gemfile.lock +2 -2
- data/gemfiles/rails_42.gemfile +2 -2
- data/gemfiles/rails_42.gemfile.lock +2 -2
- data/gemfiles/rails_5.gemfile +2 -2
- data/gemfiles/rails_5.gemfile.lock +2 -2
- data/gemfiles/rails_51.gemfile +2 -2
- data/gemfiles/rails_51.gemfile.lock +2 -2
- data/lib/routes_coverage/middleware.rb +3 -1
- data/lib/routes_coverage/version.rb +1 -1
- 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: 9fb3534646a507fefba0989e3257bb6848dc92d3
|
4
|
+
data.tar.gz: 68f609a43165593a150a252260ea4780a6b70c07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebb1acac5797622c4155d74875953b535cb48f8fafc2d9b7749a8087ab49fc1cbedd9be15820bb50976c04002ed1794b0d3e2a69fc6c7edf15a3ab87805959a7
|
7
|
+
data.tar.gz: 49505c2171c86c1b0dc473bb6636db8a1b15a61f224f89d623ffa0a5211232dd37bf2d3e69233d9d5e779e0ef38ee88026e65a9534ab9b4e9507aa19096b8747
|
data/gemfiles/rails_40.gemfile
CHANGED
data/gemfiles/rails_42.gemfile
CHANGED
data/gemfiles/rails_5.gemfile
CHANGED
data/gemfiles/rails_51.gemfile
CHANGED
@@ -10,7 +10,9 @@ module RoutesCoverage
|
|
10
10
|
::Rails.application.routes.router.recognize(req) do |route|
|
11
11
|
dispatcher = route.app
|
12
12
|
if dispatcher.respond_to?(:dispatcher?)
|
13
|
-
|
13
|
+
unless dispatcher.matches?(req) # && dispatcher.dispatcher?
|
14
|
+
dispatcher = nil
|
15
|
+
end
|
14
16
|
else # rails < 4.2
|
15
17
|
dispatcher = route.app
|
16
18
|
while dispatcher.is_a?(ActionDispatch::Routing::Mapper::Constraints) do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routes_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Fedoseyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|