rails-route-checker 0.3.0 → 0.5.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c886520b332764ac0a2cf5943b9c912e92221012a948d5ee96f65d25c4dd16c9
|
4
|
+
data.tar.gz: e149508e1e3efee68934316de0ebcbe2a8a7806de66aa6c170495a8daaccac38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6169d597bc157fb2bc50136233c776be89869930e12c8783cdd06f34b640a0c344eb73981f98b857362de3d807fdb5a6ecfa4b1cdb4499537f5b582e9175beb
|
7
|
+
data.tar.gz: 15e2401bfb7e7b2ff850f19091f50ae26c2be1a8c6d8d00d21e82c7d02a7bdf6d50765c3df028eae003e442a0860938e2cfc25c7a0df6b6e4284717985f8cca8
|
@@ -11,11 +11,18 @@ module RailsRouteChecker
|
|
11
11
|
@source_lines = @source.split(/\r\n|\r|\n/)
|
12
12
|
|
13
13
|
version = Gem::Version.new(Haml::VERSION).approximate_recommendation
|
14
|
-
|
14
|
+
|
15
15
|
original_tree = case version
|
16
|
-
when '~> 4.0', '~> 4.1'
|
17
|
-
|
18
|
-
|
16
|
+
when '~> 4.0', '~> 4.1'
|
17
|
+
options = Haml::Options.new
|
18
|
+
Haml::Parser.new(@source, options).parse
|
19
|
+
when '~> 5.0', '~> 5.1', '~> 5.2'
|
20
|
+
options = Haml::Options.new
|
21
|
+
Haml::Parser.new(options).call(@source)
|
22
|
+
when '~> 6.0', '~> 6.1', '~> 6.2', '~> 6.3'
|
23
|
+
Haml::Parser.new({}).call(@source)
|
24
|
+
else
|
25
|
+
raise "Cannot handle Haml version: #{version}"
|
19
26
|
end
|
20
27
|
|
21
28
|
@tree = process_tree(original_tree)
|
data/rails-route-checker.gemspec
CHANGED
@@ -26,4 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 2.1'
|
27
27
|
spec.add_development_dependency 'rake', '~> 13.0'
|
28
28
|
spec.add_development_dependency 'rubocop', '~> 0.86'
|
29
|
-
|
29
|
+
spec.add_development_dependency 'appraisal', '~> 2.5.0'
|
30
|
+
spec.add_development_dependency 'minitest'
|
31
|
+
end
|
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.5.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: 2024-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.86'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: appraisal
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.5.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.5.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
55
83
|
description: A linting tool that helps you find any routes defined in your routes.rb
|
56
84
|
file that don't have a corresponding controller action, and find any _path or _url
|
57
85
|
calls that don't have a corresponding route in the routes.rb file.
|
@@ -102,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
130
|
- !ruby/object:Gem::Version
|
103
131
|
version: '0'
|
104
132
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.4.10
|
106
134
|
signing_key:
|
107
135
|
specification_version: 4
|
108
136
|
summary: A linting tool for your Rails routes
|