brakeman 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: 303404ce254faef92c6448e30750b9253d06bc60
4
- data.tar.gz: 14be3eeb1a8c01649ec41f65a3a713b7f9c061a2
3
+ metadata.gz: cf3ec799d00cd306891f940fec15f85f7d602ef7
4
+ data.tar.gz: bdd6222232e1033f0324e9e614e4a72392d0f27d
5
5
  SHA512:
6
- metadata.gz: 3d0ce8d075f1e4e3e196a34d135bb87467c1f44ab10cdb86f388521521af5f8c88e94f76ee58f79a87f806c7b79db029bdb77e411e69d48bf25633ef562f3b8a
7
- data.tar.gz: 1658b7d8b20c07b7df8cd2fadb50c71efa1202facac77d3730a6a23969c307c780331d0f09a4e8e5b28a666a6725fd1f4f589eb987312b3f4a07341a3f60f6bc
6
+ metadata.gz: 1f5b4467e46909ff8070c9294e58455141f0f0f895461a413a2270a2b6dd0df823add37ea960e612e984d80b01e599cadbb0d4de82d12530972a198a3ff852cc
7
+ data.tar.gz: 46bef08960474626ebdfab6c65a5c3447940ad7a97a934874c57b6fbeb5a496634a650698baaf919f04f8e1bfcd56759a4b7486172dd0de36ed272359ced5b2c
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
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