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 file parser tool based on ruby_parser.
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.9
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(&:arguments)
52
+ params_arguments = params_nodes.collect{|node| node.arguments}
53
53
  !params_arguments.dups.empty?
54
54
  end
55
55
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails_best_practices}
8
- s.version = "0.2.9"
8
+ s.version = "0.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Richard Huang"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang