brakeman-min 3.3.4 → 3.3.5

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: 4d2ca960f87f98e1058e4156daef6ba9a4d7ed50
4
- data.tar.gz: 9c2264e9011f7f8e27a2b12494d961d49cbdbdfe
3
+ metadata.gz: 58050375c093250d4ebd8b8244b919f5f6b8c7d9
4
+ data.tar.gz: f928b15bb0a2629f39c6d95dfb21d3acba92946e
5
5
  SHA512:
6
- metadata.gz: 407b54374cc48632c4efe116c7a55818e6d942ba426684285458ef8062c94ba312d5872f031e90290f625385551daf0acc1a2bacc916c9183a0de7e23f32c30b
7
- data.tar.gz: 6c960d8e18083bcbd2cd3a9a86d35e8342574a0e6cba0cc40676709eccea23e20e5f94c72ac6a31a6bb9df441ac6d62831fedd0187db5fac406e0208813f678e
6
+ metadata.gz: 570a8fb1e6ff7631738c0a780e2293972379d2ba84f54d24449116198f75759ca47cac6b2aa03ff58b13259f105ed1b02a7c9b21a9937e3ede8f294964a1aee6
7
+ data.tar.gz: aa1515a72f8a33d02d5e003e837a12e7dd796855f6843518dd7e105bc572304e0ab2fde053b61b7ebd8667ee67c3c9e8e3cc479966f6a3536062cc13f4dba3c1
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.3.5
2
+
3
+ * Fix bug in reports when using --debug option
4
+
1
5
  # 3.3.4
2
6
 
3
7
  * Add generic warning for CVE-2016-6316
@@ -54,6 +54,36 @@ class Brakeman::Report::Table < Brakeman::Report::Base
54
54
  end
55
55
  end
56
56
 
57
+ #Generate listings of templates and their output
58
+ def generate_templates
59
+ out_processor = Brakeman::OutputProcessor.new
60
+ template_rows = {}
61
+ tracker.templates.each do |name, template|
62
+ template.each_output do |out|
63
+ out = out_processor.format out
64
+ template_rows[name] ||= []
65
+ template_rows[name] << out.gsub("\n", ";").gsub(/\s+/, " ")
66
+ end
67
+ end
68
+
69
+ template_rows = template_rows.sort_by{|name, value| name.to_s}
70
+
71
+ output = ''
72
+ template_rows.each do |template|
73
+ output << template.first.to_s << "\n\n"
74
+ table = @table.new(:headings => ['Output']) do |t|
75
+ # template[1] is an array of calls
76
+ template[1].each do |v|
77
+ t.add_row [v]
78
+ end
79
+ end
80
+
81
+ output << table.to_s << "\n\n"
82
+ end
83
+
84
+ output
85
+ end
86
+
57
87
  def render_array template, headings, value_array, locals
58
88
  return if value_array.empty?
59
89
 
@@ -1,3 +1,3 @@
1
1
  module Brakeman
2
- Version = "3.3.4"
2
+ Version = "3.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brakeman-min
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Collins