rails_best_practices 1.14.4 → 1.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +1 -0
  4. data/README.md +26 -6
  5. data/lib/rails_best_practices/core/check.rb +15 -2
  6. data/lib/rails_best_practices/core/klasses.rb +13 -3
  7. data/lib/rails_best_practices/core/model_associations.rb +1 -1
  8. data/lib/rails_best_practices/core/runner.rb +2 -0
  9. data/lib/rails_best_practices/lexicals/long_line_check.rb +1 -1
  10. data/lib/rails_best_practices/prepares/route_prepare.rb +17 -1
  11. data/lib/rails_best_practices/reviews/always_add_db_index_review.rb +2 -2
  12. data/lib/rails_best_practices/reviews/isolate_seed_data_review.rb +2 -2
  13. data/lib/rails_best_practices/reviews/keep_finders_on_their_own_model_review.rb +1 -1
  14. data/lib/rails_best_practices/reviews/move_code_into_helper_review.rb +1 -1
  15. data/lib/rails_best_practices/reviews/move_code_into_model_review.rb +1 -1
  16. data/lib/rails_best_practices/reviews/move_model_logic_into_model_review.rb +1 -1
  17. data/lib/rails_best_practices/reviews/needless_deep_nesting_review.rb +1 -1
  18. data/lib/rails_best_practices/reviews/overuse_route_customizations_review.rb +1 -1
  19. data/lib/rails_best_practices/reviews/remove_unused_methods_in_models_review.rb +1 -2
  20. data/lib/rails_best_practices/reviews/replace_complex_creation_with_factory_method_review.rb +1 -1
  21. data/lib/rails_best_practices/reviews/restrict_auto_generated_routes_review.rb +2 -1
  22. data/lib/rails_best_practices/reviews/use_multipart_alternative_as_content_type_of_email_review.rb +15 -26
  23. data/lib/rails_best_practices/reviews/use_turbo_sprockets_rails3_review.rb +4 -2
  24. data/lib/rails_best_practices/version.rb +1 -1
  25. data/spec/rails_best_practices/analyzer_spec.rb +11 -11
  26. data/spec/rails_best_practices/core/check_spec.rb +1 -1
  27. data/spec/rails_best_practices/core/error_spec.rb +6 -6
  28. data/spec/rails_best_practices/core/klasses_spec.rb +26 -2
  29. data/spec/rails_best_practices/core/methods_spec.rb +18 -18
  30. data/spec/rails_best_practices/core/model_associations_spec.rb +6 -6
  31. data/spec/rails_best_practices/core/model_attributes_spec.rb +6 -6
  32. data/spec/rails_best_practices/core/modules_spec.rb +3 -3
  33. data/spec/rails_best_practices/core/routes_spec.rb +4 -4
  34. data/spec/rails_best_practices/core/runner_spec.rb +1 -1
  35. data/spec/rails_best_practices/lexicals/long_line_check_spec.rb +18 -6
  36. data/spec/rails_best_practices/lexicals/remove_tab_check_spec.rb +18 -5
  37. data/spec/rails_best_practices/lexicals/remove_trailing_whitespace_check_spec.rb +17 -5
  38. data/spec/rails_best_practices/prepares/config_prepare_spec.rb +1 -1
  39. data/spec/rails_best_practices/prepares/controller_prepare_spec.rb +13 -13
  40. data/spec/rails_best_practices/prepares/gemfile_prepare_spec.rb +1 -1
  41. data/spec/rails_best_practices/prepares/helper_prepare_spec.rb +2 -2
  42. data/spec/rails_best_practices/prepares/initializer_prepare_spec.rb +2 -2
  43. data/spec/rails_best_practices/prepares/mailer_prepare_spec.rb +1 -1
  44. data/spec/rails_best_practices/prepares/model_prepare_spec.rb +44 -44
  45. data/spec/rails_best_practices/prepares/route_prepare_spec.rb +102 -78
  46. data/spec/rails_best_practices/prepares/schema_prepare_spec.rb +6 -6
  47. data/spec/rails_best_practices/reviews/add_model_virtual_attribute_review_spec.rb +25 -9
  48. data/spec/rails_best_practices/reviews/always_add_db_index_review_spec.rb +43 -23
  49. data/spec/rails_best_practices/reviews/check_save_return_value_spec.rb +34 -20
  50. data/spec/rails_best_practices/reviews/default_scope_is_evil_review_spec.rb +16 -5
  51. data/spec/rails_best_practices/reviews/dry_bundler_in_capistrano_review_spec.rb +25 -3
  52. data/spec/rails_best_practices/reviews/hash_syntax_review_spec.rb +18 -7
  53. data/spec/rails_best_practices/reviews/isolate_seed_data_review_spec.rb +30 -7
  54. data/spec/rails_best_practices/reviews/keep_finders_on_their_own_model_review_spec.rb +24 -8
  55. data/spec/rails_best_practices/reviews/law_of_demeter_review_spec.rb +24 -12
  56. data/spec/rails_best_practices/reviews/move_code_into_controller_review_spec.rb +17 -5
  57. data/spec/rails_best_practices/reviews/move_code_into_helper_review_spec.rb +14 -3
  58. data/spec/rails_best_practices/reviews/move_code_into_model_review_spec.rb +24 -13
  59. data/spec/rails_best_practices/reviews/move_finder_to_named_scope_review_spec.rb +25 -6
  60. data/spec/rails_best_practices/reviews/move_model_logic_into_model_review_spec.rb +26 -4
  61. data/spec/rails_best_practices/reviews/needless_deep_nesting_review_spec.rb +31 -18
  62. data/spec/rails_best_practices/reviews/not_rescue_exception_spec.rb +23 -10
  63. data/spec/rails_best_practices/reviews/not_use_default_route_review_spec.rb +34 -7
  64. data/spec/rails_best_practices/reviews/not_use_times_ago_in_words_review_spec.rb +19 -8
  65. data/spec/rails_best_practices/reviews/overuse_route_customizations_review_spec.rb +33 -19
  66. data/spec/rails_best_practices/reviews/protect_mass_assignment_review_spec.rb +25 -13
  67. data/spec/rails_best_practices/reviews/remove_empty_helpers_review_spec.rb +14 -4
  68. data/spec/rails_best_practices/reviews/remove_unused_methods_in_controllers_review_spec.rb +91 -23
  69. data/spec/rails_best_practices/reviews/remove_unused_methods_in_helpers_review_spec.rb +20 -5
  70. data/spec/rails_best_practices/reviews/remove_unused_methods_in_models_review_spec.rb +66 -41
  71. data/spec/rails_best_practices/reviews/replace_complex_creation_with_factory_method_review_spec.rb +28 -4
  72. data/spec/rails_best_practices/reviews/replace_instance_variable_with_local_variable_review_spec.rb +16 -7
  73. data/spec/rails_best_practices/reviews/restrict_auto_generated_routes_review_spec.rb +45 -32
  74. data/spec/rails_best_practices/reviews/simplify_render_in_controllers_review_spec.rb +20 -9
  75. data/spec/rails_best_practices/reviews/simplify_render_in_views_review_spec.rb +23 -14
  76. data/spec/rails_best_practices/reviews/use_before_filter_review_spec.rb +34 -7
  77. data/spec/rails_best_practices/reviews/use_model_association_review_spec.rb +21 -6
  78. data/spec/rails_best_practices/reviews/use_multipart_alternative_as_content_type_of_email_review_spec.rb +124 -79
  79. data/spec/rails_best_practices/reviews/use_observer_review_spec.rb +12 -12
  80. data/spec/rails_best_practices/reviews/use_parenthesis_in_method_def_spec.rb +16 -4
  81. data/spec/rails_best_practices/reviews/use_query_attribute_review_spec.rb +39 -27
  82. data/spec/rails_best_practices/reviews/use_say_with_time_in_migrations_review_spec.rb +22 -8
  83. data/spec/rails_best_practices/reviews/use_scope_access_review_spec.rb +39 -21
  84. data/spec/rails_best_practices/reviews/use_turbo_sprockets_rails3_review_spec.rb +66 -7
  85. metadata +36 -37
  86. data/.ruby-gemset +0 -1
@@ -15,8 +15,8 @@ module RailsBestPractices
15
15
  end
16
16
  EOF
17
17
  runner.review('db/migrate/20101010080658_update_users.rb', content)
18
- runner.should have(1).errors
19
- runner.errors[0].to_s.should == "db/migrate/20101010080658_update_users.rb:2 - use say with time in migrations"
18
+ expect(runner.errors.size).to eq(1)
19
+ expect(runner.errors[0].to_s).to eq("db/migrate/20101010080658_update_users.rb:2 - use say with time in migrations")
20
20
  end
21
21
 
22
22
  it "should use say with time in migrations with create_table" do
@@ -34,8 +34,8 @@ module RailsBestPractices
34
34
  end
35
35
  EOF
36
36
  runner.review('db/migrate/20101010080658_update_users.rb', content)
37
- runner.should have(1).errors
38
- runner.errors[0].to_s.should == "db/migrate/20101010080658_update_users.rb:7 - use say with time in migrations"
37
+ expect(runner.errors.size).to eq(1)
38
+ expect(runner.errors[0].to_s).to eq("db/migrate/20101010080658_update_users.rb:7 - use say with time in migrations")
39
39
  end
40
40
 
41
41
  it "should not use say with time in migrations" do
@@ -51,7 +51,7 @@ module RailsBestPractices
51
51
  end
52
52
  EOF
53
53
  runner.review('db/migrate/20101010080658_update_users.rb', content)
54
- runner.should have(0).errors
54
+ expect(runner.errors.size).to eq(0)
55
55
  end
56
56
 
57
57
  it "should not use say with time in migrations when not first code line" do
@@ -65,7 +65,7 @@ module RailsBestPractices
65
65
  end
66
66
  EOF
67
67
  runner.review('db/migrate/20101010080658_update_users.rb', content)
68
- runner.should have(0).errors
68
+ expect(runner.errors.size).to eq(0)
69
69
  end
70
70
 
71
71
  it "should not use say with time when default migration message" do
@@ -79,7 +79,7 @@ module RailsBestPractices
79
79
  end
80
80
  EOF
81
81
  runner.review('db/migrate/20101010080658_create_users.rb', content)
82
- runner.should have(0).errors
82
+ expect(runner.errors.size).to eq(0)
83
83
  end
84
84
 
85
85
  it "should not raise an error" do
@@ -115,7 +115,21 @@ module RailsBestPractices
115
115
  end
116
116
  EOF
117
117
  runner.review('db/migrate/20101010080658_create_users.rb', content)
118
- runner.should have(3).errors
118
+ expect(runner.errors.size).to eq(3)
119
+ end
120
+
121
+ it "should not check ignored files" do
122
+ runner = Core::Runner.new(reviews: UseSayWithTimeInMigrationsReview.new(ignored_files: /20101010080658_update_users/))
123
+ content =<<-EOF
124
+ def self.up
125
+ User.find_each do |user|
126
+ user.first_name, user.last_name = user.full_name.split(' ')
127
+ user.save
128
+ end
129
+ end
130
+ EOF
131
+ runner.review('db/migrate/20101010080658_update_users.rb', content)
132
+ expect(runner.errors.size).to eq(0)
119
133
  end
120
134
  end
121
135
  end
@@ -20,8 +20,8 @@ module RailsBestPractices
20
20
  end
21
21
  EOF
22
22
  runner.review('app/controllers/posts_controller.rb', content)
23
- runner.should have(1).errors
24
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
23
+ expect(runner.errors.size).to eq(1)
24
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
25
25
  end
26
26
 
27
27
  it "shoud use scope access with if in one line" do
@@ -35,8 +35,8 @@ module RailsBestPractices
35
35
  end
36
36
  EOF
37
37
  runner.review('app/controllers/posts_controller.rb', content)
38
- runner.should have(1).errors
39
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
38
+ expect(runner.errors.size).to eq(1)
39
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
40
40
  end
41
41
 
42
42
  it "shoud use scope access with '? :'" do
@@ -50,8 +50,8 @@ module RailsBestPractices
50
50
  end
51
51
  EOF
52
52
  runner.review('app/controllers/posts_controller.rb', content)
53
- runner.should have(1).errors
54
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
53
+ expect(runner.errors.size).to eq(1)
54
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
55
55
  end
56
56
 
57
57
  it "shoud use scope access by comparing with id" do
@@ -68,8 +68,8 @@ module RailsBestPractices
68
68
  end
69
69
  EOF
70
70
  runner.review('app/controllers/posts_controller.rb', content)
71
- runner.should have(1).errors
72
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
71
+ expect(runner.errors.size).to eq(1)
72
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
73
73
  end
74
74
 
75
75
  it "shoud use scope access with current_user ==" do
@@ -86,8 +86,8 @@ module RailsBestPractices
86
86
  end
87
87
  EOF
88
88
  runner.review('app/controllers/posts_controller.rb', content)
89
- runner.should have(1).errors
90
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
89
+ expect(runner.errors.size).to eq(1)
90
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
91
91
  end
92
92
 
93
93
  it "shoud use scope access by current_user.id ==" do
@@ -104,8 +104,8 @@ module RailsBestPractices
104
104
  end
105
105
  EOF
106
106
  runner.review('app/controllers/posts_controller.rb', content)
107
- runner.should have(1).errors
108
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
107
+ expect(runner.errors.size).to eq(1)
108
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
109
109
  end
110
110
  end
111
111
 
@@ -124,8 +124,8 @@ module RailsBestPractices
124
124
  end
125
125
  EOF
126
126
  runner.review('app/controllers/posts_controller.rb', content)
127
- runner.should have(1).errors
128
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
127
+ expect(runner.errors.size).to eq(1)
128
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
129
129
  end
130
130
 
131
131
  it "shoud use scope access by comparing with id" do
@@ -142,8 +142,8 @@ module RailsBestPractices
142
142
  end
143
143
  EOF
144
144
  runner.review('app/controllers/posts_controller.rb', content)
145
- runner.should have(1).errors
146
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
145
+ expect(runner.errors.size).to eq(1)
146
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
147
147
  end
148
148
 
149
149
  it "shoud use scope access with current_user ==" do
@@ -160,8 +160,8 @@ module RailsBestPractices
160
160
  end
161
161
  EOF
162
162
  runner.review('app/controllers/posts_controller.rb', content)
163
- runner.should have(1).errors
164
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
163
+ expect(runner.errors.size).to eq(1)
164
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
165
165
  end
166
166
 
167
167
  it "shoud use scope access by current_user.id ==" do
@@ -178,8 +178,8 @@ module RailsBestPractices
178
178
  end
179
179
  EOF
180
180
  runner.review('app/controllers/posts_controller.rb', content)
181
- runner.should have(1).errors
182
- runner.errors[0].to_s.should == "app/controllers/posts_controller.rb:5 - use scope access"
181
+ expect(runner.errors.size).to eq(1)
182
+ expect(runner.errors[0].to_s).to eq("app/controllers/posts_controller.rb:5 - use scope access")
183
183
  end
184
184
 
185
185
  it "should no error in use_scope_access_review" do
@@ -201,7 +201,25 @@ module RailsBestPractices
201
201
  end
202
202
  EOF
203
203
  runner.review('app/controllers/comments_controller.rb', content)
204
- runner.should have(0).errors
204
+ expect(runner.errors.size).to eq(0)
205
+ end
206
+
207
+ it "should not check ignored files" do
208
+ runner = Core::Runner.new(reviews: UseScopeAccessReview.new(ignored_files: /posts_controller/))
209
+ content = <<-EOF
210
+ class PostsController < ApplicationController
211
+ def edit
212
+ @post = Post.find(params[:id])
213
+
214
+ unless @post.user == current_user
215
+ flash[:warning] = 'Access Denied'
216
+ redirect_to posts_url
217
+ end
218
+ end
219
+ end
220
+ EOF
221
+ runner.review('app/controllers/posts_controller.rb', content)
222
+ expect(runner.errors.size).to eq(0)
205
223
  end
206
224
  end
207
225
  end
@@ -7,18 +7,27 @@ module RailsBestPractices
7
7
 
8
8
  it "should use turbo-sprockets-rails3" do
9
9
  content = <<-EOF
10
- source "http://rubygems.org"
11
- gem "rails"
10
+ GEM
11
+ remote: http://rubygems.org
12
+ specs:
13
+ rails (3.2.13)
14
+ actionmailer (= 3.2.13)
15
+ actionpack (= 3.2.13)
16
+ activerecord (= 3.2.13)
17
+ activeresource (= 3.2.13)
18
+ activesupport (= 3.2.13)
19
+ bundler (~> 1.0)
20
+ railties (= 3.2.13)
12
21
  EOF
13
- runner.prepare('Gemfile', content)
22
+ runner.prepare('Gemfile.lock', content)
14
23
  content = <<-EOF
15
24
  load 'deploy' if respond_to?(:namespace)
16
25
  load 'deploy/assets'
17
26
  load 'config/deploy'
18
27
  EOF
19
28
  runner.review('Capfile', content)
20
- runner.should have(1).errors
21
- runner.errors[0].to_s.should == "Capfile:2 - speed up assets precompile with turbo-sprockets-rails3"
29
+ expect(runner.errors.size).to eq(1)
30
+ expect(runner.errors[0].to_s).to eq("Capfile:2 - speed up assets precompile with turbo-sprockets-rails3")
22
31
  end
23
32
 
24
33
  it "should not use turbo-sprockets-rails3 with turbo-sprockets-rails3 gem" do
@@ -45,7 +54,7 @@ GEM
45
54
  load 'config/deploy'
46
55
  EOF
47
56
  runner.review('Capfile', content)
48
- runner.should have(0).errors
57
+ expect(runner.errors.size).to eq(0)
49
58
  end
50
59
 
51
60
  it "should not use turbo-sprockets-rails3 without deploy/assets" do
@@ -55,7 +64,57 @@ GEM
55
64
  load 'config/deploy'
56
65
  EOF
57
66
  runner.review('Capfile', content)
58
- runner.should have(0).errors
67
+ expect(runner.errors.size).to eq(0)
68
+ end
69
+
70
+ it "should not use turbo-sprockets-rails3 with rails4 gem" do
71
+ content = <<-EOF
72
+ GEM
73
+ remote: http://rubygems.org
74
+ specs:
75
+ rails (4.0.0)
76
+ actionmailer (= 4.0.0)
77
+ actionpack (= 4.0.0)
78
+ activerecord (= 4.0.0)
79
+ activeresource (= 4.0.0)
80
+ activesupport (= 4.0.0)
81
+ bundler (~> 1.0)
82
+ railties (= 3.2.13)
83
+ EOF
84
+ runner.prepare('Gemfile.lock', content)
85
+ content = <<-EOF
86
+ load 'deploy' if respond_to?(:namespace)
87
+ load 'deploy/assets'
88
+ load 'config/deploy'
89
+ EOF
90
+ runner.review('Capfile', content)
91
+ expect(runner.errors.size).to eq(0)
92
+ end
93
+
94
+ it "should not check ignored files" do
95
+ runner = Core::Runner.new(prepares: Prepares::GemfilePrepare.new,
96
+ reviews: UseTurboSprocketsRails3Review.new(ignored_files: /Capfile/))
97
+ content = <<-EOF
98
+ GEM
99
+ remote: http://rubygems.org
100
+ specs:
101
+ rails (3.2.13)
102
+ actionmailer (= 3.2.13)
103
+ actionpack (= 3.2.13)
104
+ activerecord (= 3.2.13)
105
+ activeresource (= 3.2.13)
106
+ activesupport (= 3.2.13)
107
+ bundler (~> 1.0)
108
+ railties (= 3.2.13)
109
+ EOF
110
+ runner.prepare('Gemfile.lock', content)
111
+ content = <<-EOF
112
+ load 'deploy' if respond_to?(:namespace)
113
+ load 'deploy/assets'
114
+ load 'config/deploy'
115
+ EOF
116
+ runner.review('Capfile', content)
117
+ expect(runner.errors.size).to eq(0)
59
118
  end
60
119
  end
61
120
  end
metadata CHANGED
@@ -1,195 +1,195 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_best_practices
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.4
4
+ version: 1.15.1
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-09-26 00:00:00.000000000 Z
11
+ date: 2014-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: awesome_print
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: code_analyzer
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 0.4.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.4.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: colored
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: erubis
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: i18n
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: require_all
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: ruby-progressbar
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: haml
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: slim
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: bundler
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  description: a code metric tool for rails codes, written in Ruby.
@@ -200,12 +200,11 @@ executables:
200
200
  extensions: []
201
201
  extra_rdoc_files: []
202
202
  files:
203
- - .gemtest
204
- - .gitignore
205
- - .rspec
206
- - .ruby-gemset
207
- - .ruby-version
208
- - .travis.yml
203
+ - ".gemtest"
204
+ - ".gitignore"
205
+ - ".rspec"
206
+ - ".ruby-version"
207
+ - ".travis.yml"
209
208
  - Gemfile
210
209
  - Guardfile
211
210
  - MIT_LICENSE
@@ -389,17 +388,17 @@ require_paths:
389
388
  - assets
390
389
  required_ruby_version: !ruby/object:Gem::Requirement
391
390
  requirements:
392
- - - '>='
391
+ - - ">="
393
392
  - !ruby/object:Gem::Version
394
393
  version: 1.9.0
395
394
  required_rubygems_version: !ruby/object:Gem::Requirement
396
395
  requirements:
397
- - - '>='
396
+ - - ">="
398
397
  - !ruby/object:Gem::Version
399
398
  version: 1.3.6
400
399
  requirements: []
401
400
  rubyforge_project:
402
- rubygems_version: 2.0.6
401
+ rubygems_version: 2.2.0.rc.1
403
402
  signing_key:
404
403
  specification_version: 4
405
404
  summary: a code metric tool for rails codes.
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- rails_best_practices