brakeman-lib 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: 0cded9ea0fa47da3c2d8aba50ad44df95d2e5897
4
- data.tar.gz: fd8d169620308f1ebcdbd5f71b48501ee4c1ad16
3
+ metadata.gz: aec96cc1da2d6480b8522d8b63a6ceac114256fc
4
+ data.tar.gz: 59525f78b3554856223bf33b70d00be2cabce334
5
5
  SHA512:
6
- metadata.gz: 37ef8199c02c832379953e235c98bb82dbf1f898943152e90e952a85e2b4cc6e8c4e47cf5e6404c7e0977d0ac17f5487c63df8dc34009694612ff0691b432bf1
7
- data.tar.gz: c6a42b593a626441072b440f7bb99f60727d18213b38fb0134a828e8fa82da5e4dc9106b43e482a0c686c0269a4459f567884c20cfa974bff7983b6d99eceb84
6
+ metadata.gz: e68fb294389dcd669ae82dd91fa6b2949d3f19df3f9043dc5d5409c11865910dc64fed571e79d51134815c577445debccffdd0ca9c27b6fdcb830e37cfcb6342
7
+ data.tar.gz: c325feff4fcfe7c23c20cc71ec10d25ac492e17a678c670128be845a227389f6db282198e08adbd97ed614a575e7fb80974c978370e18620f18e53e885ae8f2f
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-lib
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