rails_best_practices 1.14.1 → 1.14.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4364c10308f6eece92fba7e48870302bd85f6ebf
|
4
|
+
data.tar.gz: 852e77a5dc4f341a676645728efb0ed9321331cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bea6ad5ed797bbc7e797c01306b949964f585826f588fcbdf9aad6396e2883dd91b969a730ce95cb8f9e804ff80e71fc97e9eb06cd341c645acb8c6cfc3da0b9
|
7
|
+
data.tar.gz: eee3028435a8a8c7124c287241e6338e3253044e939187cc32656878aa549e4f38848279f450a90d6edf9d7a03456ad7c034b1f93db866115215974ece13be47
|
@@ -64,7 +64,7 @@ module RailsBestPractices
|
|
64
64
|
hash_node = node[1].arguments.grep_node(sexp_type: :bare_assoc_hash)
|
65
65
|
shallow = (hash_node && "true" == hash_node.hash_value("shallow").to_s) unless shallow
|
66
66
|
@counter += 1
|
67
|
-
node.
|
67
|
+
node.block_node.statements.each do |stmt_node|
|
68
68
|
@shallow_nodes << stmt_node if shallow
|
69
69
|
recursively_check(stmt_node)
|
70
70
|
end
|
@@ -71,7 +71,7 @@ module RailsBestPractices
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def check_rails_builtin(node)
|
74
|
-
if @whitelist_attributes
|
74
|
+
if @whitelist_attributes || [node.to_s, node.message.to_s].any? { |str| %w(attr_accessible attr_protected).include? str }
|
75
75
|
@mass_assignement = false
|
76
76
|
end
|
77
77
|
end
|
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "http://rails-bestpractices.com"
|
11
11
|
s.summary = "a code metric tool for rails codes."
|
12
12
|
s.description = "a code metric tool for rails codes, written in Ruby."
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
15
|
s.required_ruby_version = ">= 1.9.0"
|
15
16
|
s.required_rubygems_version = ">= 1.3.6"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_best_practices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Huang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -362,7 +362,8 @@ files:
|
|
362
362
|
- spec/rails_best_practices/reviews/use_turbo_sprockets_rails3_review_spec.rb
|
363
363
|
- spec/spec_helper.rb
|
364
364
|
homepage: http://rails-bestpractices.com
|
365
|
-
licenses:
|
365
|
+
licenses:
|
366
|
+
- MIT
|
366
367
|
metadata: {}
|
367
368
|
post_install_message: |
|
368
369
|
********************************************************************************
|