traceroute 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tasks/traceroute.rake +1 -1
- data/lib/traceroute/version.rb +1 -1
- metadata +3 -3
data/lib/tasks/traceroute.rake
CHANGED
@@ -2,7 +2,7 @@ desc 'Prints out unused routes and unreachable action methods'
|
|
2
2
|
task :traceroute => :environment do
|
3
3
|
Rails.application.eager_load!
|
4
4
|
Rails.application.reload_routes!
|
5
|
-
routes = Rails.application.routes.routes.reject
|
5
|
+
routes = Rails.application.routes.routes.reject {|r| r.path =~ %r{/rails/info/properties}}.reject {|r| (r.path == '/assets') && r.name.nil? && r.requirements.blank?}
|
6
6
|
|
7
7
|
defined_action_methods = ApplicationController.descendants.map {|controller|
|
8
8
|
controller.action_methods.reject {|a| (a =~ /\A(_conditional)?_callback_/) || (a == '_layout_from_proc')}.map do |action|
|
data/lib/traceroute/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: traceroute
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akira Matsuda
|