rails_best_practices 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ module RailsBestPractices
13
13
  [:call]
14
14
  end
15
15
 
16
- def interesting_file
17
- 'config/deploy.rb'
16
+ def interesting_files
17
+ /config\/deploy.rb/
18
18
  end
19
19
 
20
20
  def evaluate_start(node)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  module RailsBestPractices
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 3
10
- version: 0.4.3
9
+ - 4
10
+ version: 0.4.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Huang
@@ -15,11 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-26 00:00:00 +08:00
18
+ date: 2010-09-28 00:00:00 +08:00
19
19
  default_executable: rails_best_practices
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- requirement: &id001 !ruby/object:Gem::Requirement
22
+ version_requirements: &id001 !ruby/object:Gem::Requirement
23
23
  none: false
24
24
  requirements:
25
25
  - - ~>
@@ -30,12 +30,12 @@ dependencies:
30
30
  - 0
31
31
  - 4
32
32
  version: 2.0.4
33
+ requirement: *id001
34
+ type: :runtime
33
35
  name: ruby_parser
34
36
  prerelease: false
35
- type: :runtime
36
- version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
38
- requirement: &id002 !ruby/object:Gem::Requirement
38
+ version_requirements: &id002 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -46,12 +46,12 @@ dependencies:
46
46
  - 2
47
47
  - 4
48
48
  version: 1.2.4
49
+ requirement: *id002
50
+ type: :runtime
49
51
  name: ruby2ruby
50
52
  prerelease: false
51
- type: :runtime
52
- version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
- requirement: &id003 !ruby/object:Gem::Requirement
54
+ version_requirements: &id003 !ruby/object:Gem::Requirement
55
55
  none: false
56
56
  requirements:
57
57
  - - ~>
@@ -62,12 +62,12 @@ dependencies:
62
62
  - 9
63
63
  - 0
64
64
  version: 0.9.0
65
+ requirement: *id003
66
+ type: :runtime
65
67
  name: progressbar
66
68
  prerelease: false
67
- type: :runtime
68
- version_requirements: *id003
69
69
  - !ruby/object:Gem::Dependency
70
- requirement: &id004 !ruby/object:Gem::Requirement
70
+ version_requirements: &id004 !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
73
73
  - - ~>
@@ -77,12 +77,12 @@ dependencies:
77
77
  - 1
78
78
  - 2
79
79
  version: "1.2"
80
+ requirement: *id004
81
+ type: :runtime
80
82
  name: colored
81
83
  prerelease: false
82
- type: :runtime
83
- version_requirements: *id004
84
84
  - !ruby/object:Gem::Dependency
85
- requirement: &id005 !ruby/object:Gem::Requirement
85
+ version_requirements: &id005 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - "="
@@ -95,12 +95,12 @@ dependencies:
95
95
  - beta
96
96
  - 22
97
97
  version: 2.0.0.beta.22
98
+ requirement: *id005
99
+ type: :development
98
100
  name: rspec
99
101
  prerelease: false
100
- type: :development
101
- version_requirements: *id005
102
102
  - !ruby/object:Gem::Dependency
103
- requirement: &id006 !ruby/object:Gem::Requirement
103
+ version_requirements: &id006 !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
106
106
  - - "="
@@ -111,10 +111,10 @@ dependencies:
111
111
  - 0
112
112
  - 18
113
113
  version: 3.0.18
114
+ requirement: *id006
115
+ type: :development
114
116
  name: haml
115
117
  prerelease: false
116
- type: :development
117
- version_requirements: *id006
118
118
  description: a code metric tool for rails codes, written in Ruby.
119
119
  email:
120
120
  - flyerhzm@gmail.com
@@ -126,37 +126,37 @@ extra_rdoc_files:
126
126
  - MIT_LICENSE
127
127
  - README.textile
128
128
  files:
129
- - lib/rails_best_practices.rb
130
- - lib/rails_best_practices/version.rb
131
- - lib/rails_best_practices/checks/move_finder_to_named_scope_check.rb
132
- - lib/rails_best_practices/checks/use_model_association_check.rb
133
- - lib/rails_best_practices/checks/keep_finders_on_their_own_model_check.rb
134
129
  - lib/rails_best_practices/checks/add_model_virtual_attribute_check.rb
130
+ - lib/rails_best_practices/checks/always_add_db_index_check.rb
131
+ - lib/rails_best_practices/checks/check.rb
132
+ - lib/rails_best_practices/checks/dry_bundler_in_capistrano_check.rb
133
+ - lib/rails_best_practices/checks/isolate_seed_data_check.rb
134
+ - lib/rails_best_practices/checks/keep_finders_on_their_own_model_check.rb
135
135
  - lib/rails_best_practices/checks/law_of_demeter_check.rb
136
- - lib/rails_best_practices/checks/use_scope_access_check.rb
137
136
  - lib/rails_best_practices/checks/move_code_into_controller_check.rb
137
+ - lib/rails_best_practices/checks/move_code_into_helper_check.rb
138
+ - lib/rails_best_practices/checks/move_code_into_model_check.rb
139
+ - lib/rails_best_practices/checks/move_finder_to_named_scope_check.rb
138
140
  - lib/rails_best_practices/checks/move_model_logic_into_model_check.rb
141
+ - lib/rails_best_practices/checks/needless_deep_nesting_check.rb
139
142
  - lib/rails_best_practices/checks/not_use_default_route_check.rb
143
+ - lib/rails_best_practices/checks/overuse_route_customizations_check.rb
140
144
  - lib/rails_best_practices/checks/replace_complex_creation_with_factory_method_check.rb
141
- - lib/rails_best_practices/checks/dry_bundler_in_capistrano_check.rb
142
- - lib/rails_best_practices/checks/isolate_seed_data_check.rb
143
- - lib/rails_best_practices/checks/always_add_db_index_check.rb
144
145
  - lib/rails_best_practices/checks/replace_instance_variable_with_local_variable_check.rb
145
- - lib/rails_best_practices/checks/needless_deep_nesting_check.rb
146
- - lib/rails_best_practices/checks/move_code_into_helper_check.rb
147
- - lib/rails_best_practices/checks/use_observer_check.rb
148
- - lib/rails_best_practices/checks/check.rb
149
- - lib/rails_best_practices/checks/overuse_route_customizations_check.rb
150
146
  - lib/rails_best_practices/checks/use_before_filter_check.rb
151
- - lib/rails_best_practices/checks/move_code_into_model_check.rb
152
- - lib/rails_best_practices/core.rb
147
+ - lib/rails_best_practices/checks/use_model_association_check.rb
148
+ - lib/rails_best_practices/checks/use_observer_check.rb
149
+ - lib/rails_best_practices/checks/use_scope_access_check.rb
153
150
  - lib/rails_best_practices/checks.rb
151
+ - lib/rails_best_practices/command.rb
154
152
  - lib/rails_best_practices/core/checking_visitor.rb
155
153
  - lib/rails_best_practices/core/core_ext.rb
156
154
  - lib/rails_best_practices/core/error.rb
157
- - lib/rails_best_practices/core/visitable_sexp.rb
158
155
  - lib/rails_best_practices/core/runner.rb
159
- - lib/rails_best_practices/command.rb
156
+ - lib/rails_best_practices/core/visitable_sexp.rb
157
+ - lib/rails_best_practices/core.rb
158
+ - lib/rails_best_practices/version.rb
159
+ - lib/rails_best_practices.rb
160
160
  - rails_best_practices.yml
161
161
  - MIT_LICENSE
162
162
  - README.textile