action_not_found 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/action_not_found/version.rb +1 -1
- data/lib/action_not_found.rb +3 -3
- metadata +3 -3
data/lib/action_not_found.rb
CHANGED
@@ -15,10 +15,10 @@ module ActionNotFound
|
|
15
15
|
|
16
16
|
def formatted_action_not_found(formatted, base_path)
|
17
17
|
formatted.each do |route|
|
18
|
-
route =~
|
19
|
-
controller_path = base_path.join("#{$
|
18
|
+
route =~ /\/(.*?)\s+(.*?)#(.*?)$/
|
19
|
+
controller_path = base_path.join("#{$2}_controller.rb")
|
20
20
|
begin
|
21
|
-
unless File.readlines(controller_path).grep(/def\s#{$
|
21
|
+
unless File.readlines(controller_path).grep(/def\s#{$3}/).size > 0
|
22
22
|
route << " #=> not found action"
|
23
23
|
end
|
24
24
|
rescue
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_not_found
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -88,7 +88,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
segments:
|
90
90
|
- 0
|
91
|
-
hash:
|
91
|
+
hash: -572218280060020348
|
92
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
93
|
none: false
|
94
94
|
requirements:
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
segments:
|
99
99
|
- 0
|
100
|
-
hash:
|
100
|
+
hash: -572218280060020348
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
103
|
rubygems_version: 1.8.24
|