rails_best_practices 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rails_best_practices/core/runner.rb +2 -2
- data/rails_best_practices.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.5
|
@@ -27,10 +27,10 @@ module RailsBestPractices
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def check(filename, content)
|
30
|
-
if filename =~ /.*erb
|
30
|
+
if filename =~ /.*erb$/
|
31
31
|
content = ERB.new(content).src
|
32
32
|
end
|
33
|
-
if filename =~ /.*haml
|
33
|
+
if filename =~ /.*haml$/
|
34
34
|
content = Haml::Engine.new(content).precompiled
|
35
35
|
end
|
36
36
|
node = parse(filename, content)
|