routes_coverage 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/routes_coverage/version.rb +1 -1
- data/lib/routes_coverage.rb +4 -0
- data/routes_coverage.gemspec +2 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b8b13d46985bf003169ae46c148f11a0601baae2d06281553d5baf307b9a80b
|
4
|
+
data.tar.gz: 9cd59c55dae847b403d6d46cae8e0a98e0a3cb584a69887e80bc78369138a748
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91e649e374663f6c6e8ac187eb452b0ea3117037fbf51f92216aa4789ad64828e744fa1ba6e677c4e77b4062a50125df03bf3099866abc6fa6871d557d333168
|
7
|
+
data.tar.gz: 3230aa30d9332d6df0b7b3549ad8b1b22b34934da67db613cbf74b0288982125523c1c073cda0587383224f7610a7ac070953ccd79aa3e622d5e638683c51f8c
|
data/lib/routes_coverage.rb
CHANGED
@@ -137,6 +137,10 @@ module RoutesCoverage
|
|
137
137
|
case key
|
138
138
|
when :path
|
139
139
|
route.path.spec.to_s =~ value
|
140
|
+
when :action
|
141
|
+
route.requirements[:action]&.match(value)
|
142
|
+
when :controller
|
143
|
+
route.requirements[:controller]&.match(value)
|
140
144
|
when :constraints
|
141
145
|
value.all? do |constraint_name, constraint_value|
|
142
146
|
if constraint_value.present?
|
data/routes_coverage.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_development_dependency 'appraisal'
|
29
|
-
spec.add_development_dependency "bundler", "
|
29
|
+
spec.add_development_dependency "bundler", ">= 2.2.10"
|
30
30
|
spec.add_development_dependency "minitest"
|
31
|
-
spec.add_development_dependency "rake", "
|
31
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
32
32
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: routes_coverage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vasily Fedoseyev
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.2.10
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.2.10
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 12.3.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 12.3.3
|
69
69
|
description: Generates coverage report for routes hit by your request/integration/feature
|
70
70
|
tests including capybara ones
|
71
71
|
email:
|