action_not_found 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module ActionNotFound
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -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 =~ /\)\s+(.*?)#(.*?)$/
19
- controller_path = base_path.join("#{$1}_controller.rb")
18
+ route =~ /\/(.*?)\s+(.*?)#(.*?)$/
19
+ controller_path = base_path.join("#{$2}_controller.rb")
20
20
  begin
21
- unless File.readlines(controller_path).grep(/def\s#{$2}/).size > 0
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.3
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: 4500087227086101627
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: 4500087227086101627
100
+ hash: -572218280060020348
101
101
  requirements: []
102
102
  rubyforge_project:
103
103
  rubygems_version: 1.8.24