traceroute 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +9 -0
- data/lib/tasks/traceroute.rake +5 -1
- data/lib/traceroute/version.rb +1 -1
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -66,6 +66,15 @@ Running the Rake task will print something like this for you:
|
|
66
66
|
OMG super helpful, isn't it?
|
67
67
|
|
68
68
|
|
69
|
+
== FAQ
|
70
|
+
|
71
|
+
Q: It makes a fuss over the default route at the very bottom.
|
72
|
+
A: Please do not use that. Did you read the comment in your routes.rb? Actually this task will help you a lot to remove that evil route.
|
73
|
+
|
74
|
+
Q: "command not found: traceroute" Did you mean: tracert
|
75
|
+
A: I'm afraid you're using the wrong operating system.
|
76
|
+
|
77
|
+
|
69
78
|
== Questions, Feedback
|
70
79
|
|
71
80
|
Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇3☇3☇3
|
data/lib/tasks/traceroute.rake
CHANGED
@@ -11,7 +11,11 @@ task :traceroute => :environment do
|
|
11
11
|
}.flatten
|
12
12
|
|
13
13
|
routed_actions = routes.map do |r|
|
14
|
-
|
14
|
+
if r.requirements[:controller].blank? && r.requirements[:action].blank? && (r.path == '/:controller(/:action(/:id(.:format)))')
|
15
|
+
%Q["#{r.path}" This is a legacy wild controller route that's not recommended for RESTful applications.]
|
16
|
+
else
|
17
|
+
"#{r.requirements[:controller]}##{r.requirements[:action]}"
|
18
|
+
end
|
15
19
|
end
|
16
20
|
|
17
21
|
puts 'Unused routes:'
|
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: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Akira Matsuda
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
requirements: []
|
81
81
|
|
82
82
|
rubyforge_project: traceroute
|
83
|
-
rubygems_version: 1.8.
|
83
|
+
rubygems_version: 1.8.1
|
84
84
|
signing_key:
|
85
85
|
specification_version: 3
|
86
86
|
summary: A Rake task that helps you find the dead routes and actions for your Rails 3 app
|