traceroute 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -10,9 +10,9 @@ This Rake task investigates your Rails 3 application's routes definition, then t
10
10
 
11
11
  == Supported versions
12
12
 
13
- * Ruby 1.8.7, 1.9.2, 1.9.3 (trunk)
13
+ * Ruby 1.8.7, 1.9.2, 1.9.3, 2.0 (trunk)
14
14
 
15
- * Rails 3.0.x, 3.1 (edge)
15
+ * Rails 3.0.x, 3.1.x, 3.2.x, 4.0 (edge)
16
16
 
17
17
 
18
18
  == Install
@@ -68,11 +68,11 @@ OMG super helpful, isn't it?
68
68
 
69
69
  == FAQ
70
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.
71
+ Q: It makes a fuss over the default route at the very bottom. WTF?
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
73
 
74
- Q: "command not found: traceroute" Did you mean: tracert
75
- A: I'm afraid you're using the wrong operating system.
74
+ Q: "command not found: traceroute" Did you mean: tracert
75
+ A: I'm afraid you're using the wrong operating system.
76
76
 
77
77
 
78
78
  == Questions, Feedback
@@ -82,7 +82,7 @@ Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇3☇3
82
82
 
83
83
  == Contributing to Traceroute
84
84
 
85
- * Fork, fix, then send me a pull request.
85
+ * Fork, patch, then send me a pull request.
86
86
 
87
87
 
88
88
  == Copyright
@@ -2,7 +2,11 @@ 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}}.reject {|r| (r.path == '/assets') && r.name.nil? && r.requirements.blank?}
5
+ routes = if defined? Journey::Route
6
+ Rails.application.routes.routes.reject {|r| r.path.spec.to_s =~ %r{/rails/info/properties|^#{Rails.application.config.assets.prefix}} }.reject {|r| r.name.nil? && r.requirements.blank?}
7
+ else
8
+ Rails.application.routes.routes.reject {|r| r.path =~ %r{/rails/info/properties|^#{Rails.application.config.assets.prefix}}}.reject {|r| r.name.nil? && r.requirements.blank?}
9
+ end
6
10
 
7
11
  defined_action_methods = ApplicationController.descendants.map {|controller|
8
12
  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.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,48 +1,36 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: traceroute
3
- version: !ruby/object:Gem::Version
4
- hash: 23
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 0
10
- version: 0.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Akira Matsuda
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-08 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-03-30 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70270515191420 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 3
31
- - 0
32
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
33
21
  version: 3.0.0
34
22
  type: :runtime
35
- version_requirements: *id001
36
- description: This Rake task investigates the application's routes definition, then tells you unused routes and unreachable action methods
37
- email:
23
+ prerelease: false
24
+ version_requirements: *70270515191420
25
+ description: This Rake task investigates the application's routes definition, then
26
+ tells you unused routes and unreachable action methods
27
+ email:
38
28
  - ronnie@dio.jp
39
29
  executables: []
40
-
41
30
  extensions: []
42
-
43
- extra_rdoc_files:
31
+ extra_rdoc_files:
44
32
  - README.rdoc
45
- files:
33
+ files:
46
34
  - .gitignore
47
35
  - Gemfile
48
36
  - README.rdoc
@@ -52,37 +40,35 @@ files:
52
40
  - lib/traceroute/version.rb
53
41
  - traceroute.gemspec
54
42
  homepage: https://github.com/amatsuda/traceroute
55
- licenses:
43
+ licenses:
56
44
  - MIT
57
45
  post_install_message:
58
46
  rdoc_options: []
59
-
60
- require_paths:
47
+ require_paths:
61
48
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
49
+ required_ruby_version: !ruby/object:Gem::Requirement
63
50
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ segments:
69
56
  - 0
70
- version: "0"
71
- required_rubygems_version: !ruby/object:Gem::Requirement
57
+ hash: -4458234733179957313
58
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
59
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ segments:
78
65
  - 0
79
- version: "0"
66
+ hash: -4458234733179957313
80
67
  requirements: []
81
-
82
68
  rubyforge_project: traceroute
83
- rubygems_version: 1.8.1
69
+ rubygems_version: 1.8.16
84
70
  signing_key:
85
71
  specification_version: 3
86
- summary: A Rake task that helps you find the dead routes and actions for your Rails 3 app
72
+ summary: A Rake task that helps you find the dead routes and actions for your Rails
73
+ 3 app
87
74
  test_files: []
88
-