rails_best_practices 0.2.9 → 0.2.10
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.textile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
h1. rails_best_practices
|
|
2
2
|
|
|
3
3
|
rails_best_practices is a gem to check quality of rails app files according to ihower's presentation Rails Best Practices.
|
|
4
|
-
rails_best_practices is a static
|
|
4
|
+
rails_best_practices is a code static parser tool based on ruby_parser.
|
|
5
5
|
|
|
6
6
|
*************************************************
|
|
7
7
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.10
|
|
@@ -49,7 +49,7 @@ module RailsBestPractices
|
|
|
49
49
|
def params_dup?(nodes)
|
|
50
50
|
return false if nodes.nil?
|
|
51
51
|
params_nodes = nodes.collect {|node| node.grep_nodes({:subject => s(:call, nil, :params, s(:arglist)), :message => :[]}).first}.compact
|
|
52
|
-
params_arguments = params_nodes.collect
|
|
52
|
+
params_arguments = params_nodes.collect{|node| node.arguments}
|
|
53
53
|
!params_arguments.dups.empty?
|
|
54
54
|
end
|
|
55
55
|
end
|