rake_check 0.3.6 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -10,4 +10,5 @@ gem 'cane', :require => false
10
10
  gem 'redcarpet', :require => false
11
11
  gem 'reek', :require => false
12
12
  gem 'cucumber', :require => false
13
- gem 'konacha', :require => false
13
+ gem 'konacha', :require => false
14
+ gem 'bundler-audit', :require => false
@@ -0,0 +1,13 @@
1
+ module RakeCheck
2
+ module Checker
3
+ ##
4
+ # BundlerAudit checks the output for unsafe dependencies
5
+ class BundlerAudit < Base
6
+
7
+ def run
8
+ run_command 'bundle-audit'
9
+ end
10
+
11
+ end
12
+ end
13
+ end
@@ -15,5 +15,6 @@ task :check do
15
15
  executor.add_checker(RakeCheck::Checker::Brakeman.new)
16
16
  executor.add_checker(RakeCheck::Checker::CoffeeLint.new)
17
17
  executor.add_checker(RakeCheck::Checker::Konacha.new)
18
+ executor.add_checker(RakeCheck::Checker::BundlerAudit.new)
18
19
  executor.execute
19
20
  end
@@ -3,5 +3,5 @@ module RakeCheck
3
3
  # The Version Constant
4
4
  #
5
5
  # @author dmasur
6
- VERSION = "0.3.6"
6
+ VERSION = "0.4.0"
7
7
  end
data/lib/rake_check.rb CHANGED
@@ -11,6 +11,7 @@ require 'rake_check/checker/cane'
11
11
  require 'rake_check/checker/brakeman'
12
12
  require 'rake_check/checker/coffee_lint'
13
13
  require 'rake_check/checker/konacha'
14
+ require 'rake_check/checker/bundler_audit'
14
15
  require 'term/ansicolor'
15
16
  ##
16
17
  # My empty Module
data/rake_check.gemspec CHANGED
@@ -23,4 +23,6 @@ Gem::Specification.new do |gem|
23
23
  gem.add_dependency "cucumber"
24
24
  gem.add_dependency "yard"
25
25
  gem.add_dependency "brakeman"
26
+ gem.add_dependency "yard"
27
+ gem.add_dependency "bundler-audit"
26
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-16 00:00:00.000000000 Z
12
+ date: 2013-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -139,6 +139,38 @@ dependencies:
139
139
  - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: yard
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :runtime
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: bundler-audit
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :runtime
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
142
174
  description: Checking the Project for Code Smells and bad documentation
143
175
  email:
144
176
  - dominik.masur@googlemail.com
@@ -158,6 +190,7 @@ files:
158
190
  - lib/rake_check.rb
159
191
  - lib/rake_check/checker/base.rb
160
192
  - lib/rake_check/checker/brakeman.rb
193
+ - lib/rake_check/checker/bundler_audit.rb
161
194
  - lib/rake_check/checker/cane.rb
162
195
  - lib/rake_check/checker/coffee_lint.rb
163
196
  - lib/rake_check/checker/cucumber.rb
@@ -171,11 +204,6 @@ files:
171
204
  - lib/rake_check/tasks/check.rake
172
205
  - lib/rake_check/version.rb
173
206
  - rake_check.gemspec
174
- - spec/files/brakeman_error.json
175
- - spec/files/brakeman_ok.json
176
- - spec/files/brakeman_warning.json
177
- - spec/files/cucumber_fail_output.txt
178
- - spec/files/reek_output.yaml
179
207
  - spec/spec_helper.rb
180
208
  homepage: https://github.com/TBAA/rake_check
181
209
  licenses: []
@@ -191,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
219
  version: '0'
192
220
  segments:
193
221
  - 0
194
- hash: -2845487536969146091
222
+ hash: -617437649216783146
195
223
  required_rubygems_version: !ruby/object:Gem::Requirement
196
224
  none: false
197
225
  requirements:
@@ -200,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
228
  version: '0'
201
229
  segments:
202
230
  - 0
203
- hash: -2845487536969146091
231
+ hash: -617437649216783146
204
232
  requirements: []
205
233
  rubyforge_project:
206
234
  rubygems_version: 1.8.25
@@ -208,10 +236,5 @@ signing_key:
208
236
  specification_version: 3
209
237
  summary: Checking the Project for Code Smells and bad documentation
210
238
  test_files:
211
- - spec/files/brakeman_error.json
212
- - spec/files/brakeman_ok.json
213
- - spec/files/brakeman_warning.json
214
- - spec/files/cucumber_fail_output.txt
215
- - spec/files/reek_output.yaml
216
239
  - spec/spec_helper.rb
217
240
  has_rdoc:
@@ -1,53 +0,0 @@
1
- {
2
- "scan_info": {
3
- "app_path": "/path/to/app",
4
- "rails_version": "3.2.6",
5
- "security_warnings": 1,
6
- "timestamp": "2012-06-19 10:18:54 +0200",
7
- "checks_performed": [
8
- "BasicAuth",
9
- "CrossSiteScripting",
10
- "DefaultRoutes",
11
- "EscapeFunction",
12
- "Evaluation",
13
- "Execute",
14
- "FileAccess",
15
- "FilterSkipping",
16
- "ForgerySetting",
17
- "LinkTo",
18
- "LinkToHref",
19
- "MailTo",
20
- "MassAssignment",
21
- "ModelAttributes",
22
- "NestedAttributes",
23
- "QuoteTableName",
24
- "Redirect",
25
- "Render",
26
- "ResponseSplitting",
27
- "SQL",
28
- "SafeBufferManipulation",
29
- "SelectVulnerability",
30
- "Send",
31
- "SendFile",
32
- "SessionSettings",
33
- "SkipBeforeFilter",
34
- "StripTags",
35
- "TranslateBug",
36
- "ValidationRegex",
37
- "WithoutProtection"
38
- ],
39
- "number_of_controllers": 16,
40
- "number_of_models": 32,
41
- "number_of_templates": 67,
42
- "ruby_version": "1.9.3",
43
- "brakeman_version": "1.6.2"
44
- },
45
- "warnings": [
46
- ],
47
- "errors": [
48
- {
49
- "error": "unterminated string meets end of file. near line 13: \"\" While processing /path/to/app/controllers/admin/admins_controller.rb",
50
- "location": "/path/to/gem_dir/gems/brakeman-1.6.2/lib/ruby_parser/ruby_lexer.rb:398:in `rb_compile_error'"
51
- }
52
- ]
53
- }
@@ -1,100 +0,0 @@
1
- [Notice] Detected Rails 3 application
2
- Loading scanner...
3
- [Notice] Using Ruby 1.9.3. Please make sure this matches the one used to run your Rails application.
4
- Processing application in /Users/dmasur/code/jobmensa2
5
- Processing configuration...
6
- [Notice] Escaping HTML by default
7
- Processing gems...
8
- Processing initializers...
9
- Processing libs...
10
- Processing routes...
11
- Processing templates...
12
- Processing data flow in templates...
13
- Processing models...
14
- Processing controllers...
15
- Processing data flow in controllers...
16
- Indexing call sites...
17
- Running checks in parallel...
18
- - CheckBasicAuth
19
- - CheckCrossSiteScripting
20
- - CheckDefaultRoutes
21
- - CheckEscapeFunction
22
- - CheckEvaluation
23
- - CheckExecute
24
- - CheckFileAccess
25
- - CheckFilterSkipping
26
- - CheckForgerySetting
27
- - CheckLinkTo
28
- - CheckLinkToHref
29
- - CheckMailTo
30
- - CheckMassAssignment
31
- - CheckModelAttributes
32
- - CheckNestedAttributes
33
- - CheckQuoteTableName
34
- - CheckRedirect
35
- - CheckRender
36
- - CheckResponseSplitting
37
- - CheckSafeBufferManipulation
38
- - CheckSelectVulnerability
39
- - CheckSend
40
- - CheckSendFile
41
- - CheckSessionSettings
42
- - CheckSkipBeforeFilter
43
- - CheckSQL
44
- - CheckStripTags
45
- - CheckTranslateBug
46
- - CheckValidationRegex
47
- - CheckWithoutProtection
48
- Checks finished, collecting results...
49
- Generating report...
50
- {
51
- "scan_info": {
52
- "app_path": "/Users/dmasur/code/jobmensa2",
53
- "rails_version": "3.2.6",
54
- "security_warnings": 0,
55
- "timestamp": "2012-06-19 09:19:41 +0200",
56
- "checks_performed": [
57
- "BasicAuth",
58
- "CrossSiteScripting",
59
- "DefaultRoutes",
60
- "EscapeFunction",
61
- "Evaluation",
62
- "Execute",
63
- "FileAccess",
64
- "FilterSkipping",
65
- "ForgerySetting",
66
- "LinkTo",
67
- "LinkToHref",
68
- "MailTo",
69
- "MassAssignment",
70
- "ModelAttributes",
71
- "NestedAttributes",
72
- "QuoteTableName",
73
- "Redirect",
74
- "Render",
75
- "ResponseSplitting",
76
- "SQL",
77
- "SafeBufferManipulation",
78
- "SelectVulnerability",
79
- "Send",
80
- "SendFile",
81
- "SessionSettings",
82
- "SkipBeforeFilter",
83
- "StripTags",
84
- "TranslateBug",
85
- "ValidationRegex",
86
- "WithoutProtection"
87
- ],
88
- "number_of_controllers": 17,
89
- "number_of_models": 32,
90
- "number_of_templates": 67,
91
- "ruby_version": "1.9.3",
92
- "brakeman_version": "1.6.2"
93
- },
94
- "warnings": [
95
-
96
- ],
97
- "errors": [
98
-
99
- ]
100
- }
@@ -1,63 +0,0 @@
1
- {
2
- "scan_info": {
3
- "app_path": "/path/to/app",
4
- "rails_version": "3.2.6",
5
- "security_warnings": 0,
6
- "timestamp": "2012-06-19 10:06:35 +0200",
7
- "checks_performed": [
8
- "BasicAuth",
9
- "CrossSiteScripting",
10
- "DefaultRoutes",
11
- "EscapeFunction",
12
- "Evaluation",
13
- "Execute",
14
- "FileAccess",
15
- "FilterSkipping",
16
- "ForgerySetting",
17
- "LinkTo",
18
- "LinkToHref",
19
- "MailTo",
20
- "MassAssignment",
21
- "ModelAttributes",
22
- "NestedAttributes",
23
- "QuoteTableName",
24
- "Redirect",
25
- "Render",
26
- "ResponseSplitting",
27
- "SQL",
28
- "SafeBufferManipulation",
29
- "SelectVulnerability",
30
- "Send",
31
- "SendFile",
32
- "SessionSettings",
33
- "SkipBeforeFilter",
34
- "StripTags",
35
- "TranslateBug",
36
- "ValidationRegex",
37
- "WithoutProtection"
38
- ],
39
- "number_of_controllers": 16,
40
- "number_of_models": 32,
41
- "number_of_templates": 67,
42
- "ruby_version": "1.9.3",
43
- "brakeman_version": "1.6.2"
44
- },
45
- "warnings": [
46
- {
47
- "warning_type": "SQL Injection",
48
- "message": "Possible SQL injection",
49
- "file": "/path/to/app/controllers/admin/admins_controller.rb",
50
- "line": 13,
51
- "code": "Admin.order(\"name #{parms[:direction]}\")",
52
- "location": {
53
- "type": "method",
54
- "class": "Admin::AdminsController",
55
- "method": "index"
56
- },
57
- "user_input": "parms[:direction]",
58
- "confidence": "Medium"
59
- }
60
- ],
61
- "errors": [
62
- ]
63
- }
@@ -1,393 +0,0 @@
1
- [{
2
- "keyword": "Feature",
3
- "name": "Admin Pages",
4
- "line": 1,
5
- "description": "In order to display static content pages\nAs an Admin\nI want to create this pages",
6
- "id": "admin-pages",
7
- "uri": "features/admin_pages.feature",
8
- "elements": [{
9
- "keyword": "Scenario",
10
- "name": "Create static Page with Sidebar",
11
- "line": 7,
12
- "description": "",
13
- "tags": [{
14
- "name": "@pending",
15
- "line": 6
16
- }],
17
- "id": "admin-pages;create-static-page-with-sidebar",
18
- "type": "scenario",
19
- "steps": [{
20
- "keyword": "Given ",
21
- "name": "I am logged in as an Admin",
22
- "line": 8,
23
- "match": {
24
- "location": "features/step_definitions/admin_pages_steps.rb:1"
25
- },
26
- "result": {
27
- "status": "passed"
28
- }
29
- },
30
- {
31
- "keyword": "When ",
32
- "name": "I create a Page with a Sidebar",
33
- "line": 9,
34
- "match": {
35
- "location": "features/step_definitions/admin_pages_steps.rb:10"
36
- },
37
- "result": {
38
- "status": "passed"
39
- }
40
- },
41
- {
42
- "keyword": "And ",
43
- "name": "I add and fill a PagePart \"Main Part\"",
44
- "line": 10,
45
- "match": {
46
- "arguments": [{
47
- "offset": 27,
48
- "val": "Main Part"
49
- }],
50
- "location": "features/step_definitions/admin_pages_steps.rb:17"
51
- },
52
- "result": {
53
- "status": "passed"
54
- }
55
- },
56
- {
57
- "keyword": "And ",
58
- "name": "I add and fill a PagePart \"Side Part\"",
59
- "line": 11,
60
- "match": {
61
- "arguments": [{
62
- "offset": 27,
63
- "val": "Side Part"
64
- }],
65
- "location": "features/step_definitions/admin_pages_steps.rb:17"
66
- },
67
- "result": {
68
- "status": "passed"
69
- }
70
- },
71
- {
72
- "keyword": "And ",
73
- "name": "submit the Page",
74
- "line": 12,
75
- "match": {
76
- "location": "features/step_definitions/admin_pages_steps.rb:23"
77
- },
78
- "result": {
79
- "status": "passed"
80
- }
81
- },
82
- {
83
- "keyword": "Then ",
84
- "name": "I can view this Page",
85
- "line": 13,
86
- "match": {
87
- "location": "features/step_definitions/admin_pages_steps.rb:28"
88
- },
89
- "result": {
90
- "status": "failed",
91
- "error_message": "undefined local variable or method `admin_page_change_link' for #<#<Class:0x007f8301cf6418>:0x007f830184eca8> (ActionView::Template::Error)\n./app/views/pages/show.html.haml:3:in `_app_views_pages_show_html_haml___849297658987086408_70100321483560'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/template.rb:143:in `block in render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications.rb:125:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/template.rb:141:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `block in instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/template_renderer.rb:45:in `render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/template_renderer.rb:18:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/renderer.rb:36:in `render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/haml-3.1.5/lib/haml/helpers/rails_323_textarea_fix.rb:26:in `render_template_with_haml'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_view/renderer/renderer.rb:17:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:110:in `_render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/streaming.rb:225:in `_render_template'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:103:in `render_to_body'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/haml-3.1.5/lib/haml/helpers/rails_323_textarea_fix.rb:14:in `render_to_body_with_haml'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/renderers.rb:28:in `render_to_body'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:88:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:16:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'\n/Users/dmasur/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activerecord-3.2.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:39:in `render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:167:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:414:in `_run__4040886189848434385__process_action__4107021055913346864__callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `__run_callback'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in `run_callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:17:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/rescue.rb:29:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `block in instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in `instrument'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:205:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activerecord-3.2.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:121:in `process'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:45:in `process'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal.rb:203:in `dispatch'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_controller/metal.rb:246:in `block in action'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:36:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/routing/mapper.rb:40:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/journey-1.0.3/lib/journey/router.rb:68:in `block in call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/journey-1.0.3/lib/journey/router.rb:56:in `each'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/journey-1.0.3/lib/journey/router.rb:56:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:600:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:392:in `call_app!'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:258:in `mock_call!'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:171:in `call!'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/omniauth-1.1.0/lib/omniauth/strategy.rb:157:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/sass-3.1.17/lib/sass/plugin/rack.rb:54:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/warden-1.1.1/lib/warden/manager.rb:35:in `block in call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/warden-1.1.1/lib/warden/manager.rb:34:in `catch'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/warden-1.1.1/lib/warden/manager.rb:34:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/head.rb:14:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/flash.rb:242:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/cookies.rb:338:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activerecord-3.2.3/lib/active_record/query_cache.rb:64:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `_run__286193175654510887__call__3463419919178899849__callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `__run_callback'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in `run_callbacks'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/cucumber-rails-1.3.0/lib/cucumber/rails/action_controller.rb:10:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/railties-3.2.3/lib/rails/rack/logger.rb:26:in `call_app'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/railties-3.2.3/lib/rails/rack/logger.rb:16:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/request_id.rb:22:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/activesupport-3.2.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/actionpack-3.2.3/lib/action_dispatch/middleware/static.rb:62:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/railties-3.2.3/lib/rails/engine.rb:479:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/railties-3.2.3/lib/rails/application.rb:220:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/builder.rb:134:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/urlmap.rb:64:in `block in call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `each'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-1.4.1/lib/rack/urlmap.rb:49:in `call'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-test-0.6.1/lib/rack/mock_session.rb:30:in `request'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-test-0.6.1/lib/rack/test.rb:219:in `process_request'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/rack-test-0.6.1/lib/rack/test.rb:57:in `get'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:62:in `process'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/capybara-1.1.2/lib/capybara/rack_test/browser.rb:21:in `visit'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/capybara-1.1.2/lib/capybara/rack_test/driver.rb:32:in `visit'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/capybara-1.1.2/lib/capybara/session.rb:157:in `visit'\n/Users/dmasur/.rvm/gems/ruby-1.9.3-p194@jobmensa2/gems/capybara-1.1.2/lib/capybara/dsl.rb:161:in `visit'\n./features/step_definitions/admin_pages_steps.rb:29:in `/^I can view this Page$/'\nfeatures/admin_pages.feature:13:in `Then I can view this Page'"
92
- }
93
- }]
94
- }]
95
- },
96
- {
97
- "keyword": "Feature",
98
- "name": "Admin Widgets",
99
- "line": 1,
100
- "description": "",
101
- "id": "admin-widgets",
102
- "uri": "features/admin_widgets.feature",
103
- "elements": [{
104
- "keyword": "Scenario",
105
- "name": "Admin can see his Charts",
106
- "line": 3,
107
- "description": "",
108
- "id": "admin-widgets;admin-can-see-his-charts",
109
- "type": "scenario",
110
- "steps": [{
111
- "keyword": "Given ",
112
- "name": "I am logged in as Admin",
113
- "line": 4,
114
- "match": {
115
- "location": "features/step_definitions/admin_pages_steps.rb:1"
116
- },
117
- "result": {
118
- "status": "passed"
119
- }
120
- },
121
- {
122
- "keyword": "And ",
123
- "name": "I have a Chart widget",
124
- "line": 5,
125
- "match": {
126
- "location": "features/step_definitions/admin_widget_steps.rb:21"
127
- },
128
- "result": {
129
- "status": "passed"
130
- }
131
- },
132
- {
133
- "keyword": "Then ",
134
- "name": "I can see the Chart Widget",
135
- "line": 6,
136
- "match": {
137
- "location": "features/step_definitions/admin_widget_steps.rb:16"
138
- },
139
- "result": {
140
- "status": "passed"
141
- }
142
- }]
143
- },
144
- {
145
- "keyword": "Scenario",
146
- "name": "Create a Table Widget",
147
- "line": 8,
148
- "description": "",
149
- "id": "admin-widgets;create-a-table-widget",
150
- "type": "scenario",
151
- "steps": [{
152
- "keyword": "Given ",
153
- "name": "I am logged in as Admin",
154
- "line": 9,
155
- "match": {
156
- "location": "features/step_definitions/admin_pages_steps.rb:1"
157
- },
158
- "result": {
159
- "status": "passed"
160
- }
161
- },
162
- {
163
- "keyword": "When ",
164
- "name": "I create a Table widget",
165
- "line": 10,
166
- "match": {
167
- "arguments": [{
168
- "offset": 11,
169
- "val": "Table widget"
170
- }],
171
- "location": "features/step_definitions/admin_widget_steps.rb:1"
172
- },
173
- "result": {
174
- "status": "passed"
175
- }
176
- },
177
- {
178
- "keyword": "Then ",
179
- "name": "I can see the Table Widget",
180
- "line": 11,
181
- "match": {
182
- "location": "features/step_definitions/admin_widget_steps.rb:9"
183
- },
184
- "result": {
185
- "status": "passed"
186
- }
187
- }]
188
- },
189
- {
190
- "keyword": "Scenario",
191
- "name": "Create a Chart Widget",
192
- "line": 13,
193
- "description": "",
194
- "id": "admin-widgets;create-a-chart-widget",
195
- "type": "scenario",
196
- "steps": [{
197
- "keyword": "Given ",
198
- "name": "I am logged in as Admin",
199
- "line": 14,
200
- "match": {
201
- "location": "features/step_definitions/admin_pages_steps.rb:1"
202
- },
203
- "result": {
204
- "status": "passed"
205
- }
206
- },
207
- {
208
- "keyword": "When ",
209
- "name": "I create a Chart widget",
210
- "line": 15,
211
- "match": {
212
- "arguments": [{
213
- "offset": 11,
214
- "val": "Chart widget"
215
- }],
216
- "location": "features/step_definitions/admin_widget_steps.rb:1"
217
- },
218
- "result": {
219
- "status": "passed"
220
- }
221
- },
222
- {
223
- "keyword": "Then ",
224
- "name": "I can see the Chart Widget",
225
- "line": 16,
226
- "match": {
227
- "location": "features/step_definitions/admin_widget_steps.rb:16"
228
- },
229
- "result": {
230
- "status": "passed"
231
- }
232
- }]
233
- }]
234
- },
235
- {
236
- "keyword": "Feature",
237
- "name": "Facebook Integration",
238
- "line": 1,
239
- "description": "",
240
- "id": "facebook-integration",
241
- "uri": "features/facebook.feature",
242
- "elements": [{
243
- "keyword": "Scenario",
244
- "name": "Register with Facebook",
245
- "line": 3,
246
- "description": "",
247
- "id": "facebook-integration;register-with-facebook",
248
- "type": "scenario",
249
- "steps": [{
250
- "keyword": "When ",
251
- "name": "I sign up with Facebook",
252
- "line": 4,
253
- "match": {
254
- "location": "features/step_definitions/facebook_steps.rb:1"
255
- },
256
- "result": {
257
- "status": "passed"
258
- }
259
- },
260
- {
261
- "keyword": "Then ",
262
- "name": "I should be logged in as facebook user",
263
- "line": 5,
264
- "match": {
265
- "location": "features/step_definitions/facebook_steps.rb:6"
266
- },
267
- "result": {
268
- "status": "passed"
269
- }
270
- }]
271
- },
272
- {
273
- "keyword": "Scenario",
274
- "name": "Log in with Facebook",
275
- "line": 7,
276
- "description": "",
277
- "id": "facebook-integration;log-in-with-facebook",
278
- "type": "scenario",
279
- "steps": [{
280
- "keyword": "Given ",
281
- "name": "a Facebook User exists",
282
- "line": 8,
283
- "match": {
284
- "location": "features/step_definitions/facebook_steps.rb:10"
285
- },
286
- "result": {
287
- "status": "passed"
288
- }
289
- },
290
- {
291
- "keyword": "When ",
292
- "name": "I log in with Facebook",
293
- "line": 9,
294
- "match": {
295
- "location": "features/step_definitions/facebook_steps.rb:15"
296
- },
297
- "result": {
298
- "status": "passed"
299
- }
300
- },
301
- {
302
- "keyword": "Then ",
303
- "name": "I should be logged in as facebook user",
304
- "line": 10,
305
- "match": {
306
- "location": "features/step_definitions/facebook_steps.rb:6"
307
- },
308
- "result": {
309
- "status": "passed"
310
- }
311
- }]
312
- }]
313
- },
314
- {
315
- "keyword": "Feature",
316
- "name": "Registration",
317
- "line": 1,
318
- "description": "",
319
- "id": "registration",
320
- "uri": "features/registration.feature",
321
- "elements": [{
322
- "keyword": "Scenario",
323
- "name": "Student Registration",
324
- "line": 3,
325
- "description": "",
326
- "id": "registration;student-registration",
327
- "type": "scenario",
328
- "steps": [{
329
- "keyword": "When ",
330
- "name": "I register as a Student",
331
- "line": 4,
332
- "match": {
333
- "location": "features/step_definitions/registration_steps.rb:1"
334
- },
335
- "result": {
336
- "status": "passed"
337
- }
338
- },
339
- {
340
- "keyword": "Then ",
341
- "name": "I am logged in",
342
- "line": 5,
343
- "match": {
344
- "location": "features/step_definitions/registration_steps.rb:12"
345
- },
346
- "result": {
347
- "status": "passed"
348
- }
349
- }]
350
- }]
351
- },
352
- {
353
- "keyword": "Feature",
354
- "name": "Welcome Site",
355
- "line": 1,
356
- "description": "",
357
- "id": "welcome-site",
358
- "uri": "features/welcome.feature",
359
- "elements": [{
360
- "keyword": "Scenario",
361
- "name": "First Page",
362
- "line": 3,
363
- "description": "",
364
- "id": "welcome-site;first-page",
365
- "type": "scenario",
366
- "steps": [{
367
- "keyword": "When ",
368
- "name": "I am at the homepage",
369
- "line": 4,
370
- "match": {
371
- "location": "features/step_definitions/welcome_steps.rb:1"
372
- },
373
- "result": {
374
- "status": "passed"
375
- }
376
- },
377
- {
378
- "keyword": "Then ",
379
- "name": "I should the \"Welcome\"",
380
- "line": 5,
381
- "match": {
382
- "arguments": [{
383
- "offset": 14,
384
- "val": "Welcome"
385
- }],
386
- "location": "features/step_definitions/welcome_steps.rb:5"
387
- },
388
- "result": {
389
- "status": "passed"
390
- }
391
- }]
392
- }]
393
- }]
@@ -1,36 +0,0 @@
1
- /Users/foo/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE
2
- /Users/foo/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC
3
- /Users/foo/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:12: warning: already initialized constant ENC_SJIS
4
- /Users/foo/.rvm/gems/ruby-1.9.3-p194/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:13: warning: already initialized constant ENC_UTF8
5
- ---
6
- - !ruby/object:Reek::SmellWarning
7
- smell:
8
- class: Duplication
9
- subclass: DuplicateMethodCall
10
- message: calls "OK".green 5 times
11
- call: ! '"OK".green'
12
- occurrences: 5
13
- status:
14
- is_active: true
15
- location:
16
- context: ReekChecker#status
17
- lines:
18
- - 19
19
- - 20
20
- - 21
21
- - 22
22
- - 23
23
- source: lib/rake_check/reek_checker.rb
24
- - !ruby/object:Reek::SmellWarning
25
- smell:
26
- class: LongMethod
27
- subclass: TooManyStatements
28
- message: has approx 8 statements
29
- statement_count: 8
30
- status:
31
- is_active: true
32
- location:
33
- context: ReekChecker#status
34
- lines:
35
- - 17
36
- source: lib/rake_check/reek_checker.rb