brakeman 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/report.rb +1 -1
  2. data/lib/version.rb +1 -1
  3. data/lib/warning.rb +2 -2
  4. metadata +13 -5
data/lib/report.rb CHANGED
@@ -631,7 +631,7 @@ class Report
631
631
  [:model_warnings, "Model"], [:template_warnings, "Template"]].map do |meth, category|
632
632
 
633
633
  checks.send(meth).map do |w|
634
- "#{file_for w}\t#{w.line}\t#{w.warning_type}\t#{category}\t#{w.message}\t#{TEXT_CONFIDENCE[w.confidence]}"
634
+ "#{file_for w}\t#{w.line}\t#{w.warning_type}\t#{category}\t#{w.format_message}\t#{TEXT_CONFIDENCE[w.confidence]}"
635
635
  end.join "\n"
636
636
 
637
637
  end.join "\n"
data/lib/version.rb CHANGED
@@ -1 +1 @@
1
- Version = "0.2.0"
1
+ Version = "0.2.1"
data/lib/warning.rb CHANGED
@@ -54,9 +54,9 @@ class Warning
54
54
  end
55
55
 
56
56
  #Return String of the code output from the OutputProcessor and
57
- #stripped of newlines
57
+ #stripped of newlines and tabs.
58
58
  def format_code
59
- OutputProcessor.new.format(self.code).gsub(/(\r|\n)+/, " ")
59
+ OutputProcessor.new.format(self.code).gsub(/(\t|\r|\n)+/, " ")
60
60
  end
61
61
 
62
62
  #Return formatted warning message
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brakeman
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 21
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 0
9
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Justin Collins
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-02-16 00:00:00 -08:00
18
+ date: 2011-02-18 00:00:00 -08:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
29
+ hash: 7
28
30
  segments:
29
31
  - 2
30
32
  - 2
@@ -39,6 +41,7 @@ dependencies:
39
41
  requirements:
40
42
  - - ~>
41
43
  - !ruby/object:Gem::Version
44
+ hash: 23
42
45
  segments:
43
46
  - 1
44
47
  - 2
@@ -54,6 +57,7 @@ dependencies:
54
57
  requirements:
55
58
  - - ~>
56
59
  - !ruby/object:Gem::Version
60
+ hash: 9
57
61
  segments:
58
62
  - 1
59
63
  - 6
@@ -69,6 +73,7 @@ dependencies:
69
73
  requirements:
70
74
  - - ~>
71
75
  - !ruby/object:Gem::Version
76
+ hash: 29
72
77
  segments:
73
78
  - 2
74
79
  - 6
@@ -84,6 +89,7 @@ dependencies:
84
89
  requirements:
85
90
  - - ~>
86
91
  - !ruby/object:Gem::Version
92
+ hash: 31
87
93
  segments:
88
94
  - 3
89
95
  - 0
@@ -163,6 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
169
  requirements:
164
170
  - - ">="
165
171
  - !ruby/object:Gem::Version
172
+ hash: 3
166
173
  segments:
167
174
  - 0
168
175
  version: "0"
@@ -171,13 +178,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
178
  requirements:
172
179
  - - ">="
173
180
  - !ruby/object:Gem::Version
181
+ hash: 3
174
182
  segments:
175
183
  - 0
176
184
  version: "0"
177
185
  requirements: []
178
186
 
179
187
  rubyforge_project:
180
- rubygems_version: 1.3.7
188
+ rubygems_version: 1.4.1
181
189
  signing_key:
182
190
  specification_version: 3
183
191
  summary: Security vulnerability scanner for Ruby on Rails.