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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 576b62caebf21a9e1448f549a213eaf5770ca8486c1ad94183c1bd8617bb9916
4
- data.tar.gz: 9a150fe8e215e92ba00dee273700ebe69f08baca5606cc7980b09fcc854c0969
3
+ metadata.gz: 6b8b13d46985bf003169ae46c148f11a0601baae2d06281553d5baf307b9a80b
4
+ data.tar.gz: 9cd59c55dae847b403d6d46cae8e0a98e0a3cb584a69887e80bc78369138a748
5
5
  SHA512:
6
- metadata.gz: 1695cd9694f9388c438814a990127af84930e39413694d15fec8a35bb5f12b1217c1c4a4e8d9fd3b1289a0f91543cc11d772142354481907508337c736f2217e
7
- data.tar.gz: 4197958e82df3eceee17d222f441cbf7106d4de67d5fafb3bcdb4d16b0e59159c4678f2420c679483379aeb28a3304b246b77a8215026034aca936af7b4cb797
6
+ metadata.gz: 91e649e374663f6c6e8ac187eb452b0ea3117037fbf51f92216aa4789ad64828e744fa1ba6e677c4e77b4062a50125df03bf3099866abc6fa6871d557d333168
7
+ data.tar.gz: 3230aa30d9332d6df0b7b3549ad8b1b22b34934da67db613cbf74b0288982125523c1c073cda0587383224f7610a7ac070953ccd79aa3e622d5e638683c51f8c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RoutesCoverage
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
@@ -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?
@@ -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", "~> 1.14"
29
+ spec.add_development_dependency "bundler", ">= 2.2.10"
30
30
  spec.add_development_dependency "minitest"
31
- spec.add_development_dependency "rake", "~> 10.0"
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.0
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: '1.14'
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: '1.14'
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: '10.0'
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: '10.0'
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: