rails-route-checker 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails-route-checker/loaded_app.rb +0 -19
- data/lib/rails-route-checker/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f38c16077809f2e617da5cca49336c8f53694664026f9fad3f420fe183337bc
|
4
|
+
data.tar.gz: d1bb1ab078167c72802690f47d6bb3961a2d3a880ff137802ec5cca36dbbeee6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c65951475dc610c7955eaaacd1c83d16469e8d1948bf6c24cb34c8735cd95bd26d8ae0fa0c98a33279c4b72b5dfdac7596b6de31038f1d16cd1f921115a90023
|
7
|
+
data.tar.gz: 397bdd0e46b7aa59757d95c3f578d7a53a72d4f47976ed5f109e081ee0221065b10490f18da05b73cdf3ab07b627a79d3bd990f17257f1b4d15d4fc00ac04eec
|
@@ -23,8 +23,6 @@ module RailsRouteChecker
|
|
23
23
|
suppress_output do
|
24
24
|
@app = Rails.application
|
25
25
|
@app.eager_load!
|
26
|
-
attempt_to_load_default_controllers
|
27
|
-
@app.reload_routes!
|
28
26
|
Rails::Engine.subclasses.each(&:eager_load!)
|
29
27
|
end
|
30
28
|
end
|
@@ -97,23 +95,6 @@ module RailsRouteChecker
|
|
97
95
|
retval
|
98
96
|
end
|
99
97
|
|
100
|
-
def attempt_to_load_default_controllers
|
101
|
-
# rubocop:disable Lint/SuppressedException
|
102
|
-
begin
|
103
|
-
::Rails::InfoController
|
104
|
-
rescue NameError # ignored
|
105
|
-
end
|
106
|
-
begin
|
107
|
-
::Rails::WelcomeController
|
108
|
-
rescue NameError # ignored
|
109
|
-
end
|
110
|
-
begin
|
111
|
-
::Rails::MailersController
|
112
|
-
rescue NameError # ignored
|
113
|
-
end
|
114
|
-
# rubocop:enable Lint/SuppressedException
|
115
|
-
end
|
116
|
-
|
117
98
|
def reject_route?(route)
|
118
99
|
return true if route.name.nil? && route.requirements.blank?
|
119
100
|
return true if route.app.is_a?(ActionDispatch::Routing::Mapper::Constraints) &&
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-route-checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Allie
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
requirements: []
|
105
|
-
rubygems_version: 3.1.
|
105
|
+
rubygems_version: 3.1.6
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: A linting tool for your Rails routes
|