traceroute 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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! {|r| r.path =~ %r{/rails/info/properties}} # Skip the route if it's internal info route
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|
@@ -1,3 +1,3 @@
1
1
  module Traceroute
2
- VERSION = "0.0.1"
2
+ VERSION = '0.1.0'
3
3
  end
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira Matsuda