veracode 1.0.0.alpha15 → 1.0.0.alpha16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/veracode.rb +20 -12
- data/lib/veracode/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f9679b127c0fea3a3044f5470c2336d02dcbd3c453df0bdc121827d41ce27c7
|
4
|
+
data.tar.gz: c4a8fb0378e691164646c70f53e8c866b4355fad557daedbc701d4afc05f695b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 431b1b21871f274c9c394fff11873bf53730356f5c589aa439f59ab857c6dbcc22e9297d7dbd1f479438eafc0b25ca15cb7cbf5c5dc36f2346246670fd135f40
|
7
|
+
data.tar.gz: fb1c0e34fc6d61955557b439f7b855b977cdaa5431684654a03868021913cd2137f0ad64688f7eeca36e4723ace8024a84434af37d4c6a3dcfd1768a35ab022a
|
data/lib/veracode.rb
CHANGED
@@ -509,19 +509,23 @@ module Veracode
|
|
509
509
|
# m.respond_to?(:global_variables) was throwing exceptions
|
510
510
|
end
|
511
511
|
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
m.__send__(get_methods, $options[:include_inherited]).
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
512
|
+
begin
|
513
|
+
%w[ public protected private ].each {|p|
|
514
|
+
get_methods = (p + "_instance_methods").to_sym
|
515
|
+
if m.respond_to?(get_methods) && m.__send__(get_methods, $options[:include_inherited]).count > 0
|
516
|
+
m.__send__(get_methods, $options[:include_inherited]).each do |m_symbol|
|
517
|
+
begin
|
518
|
+
method = m.instance_method(m_symbol)
|
519
|
+
formatted_contents += format_method(method, "#{p.to_s}_instance", with_disasm)
|
520
|
+
rescue Exception => e
|
521
|
+
log_error "Error archiving #{p.to_s} instance method #{m_symbol.to_s.dump}: #{e.message}"
|
522
|
+
end
|
521
523
|
end
|
522
524
|
end
|
523
|
-
|
524
|
-
|
525
|
+
}
|
526
|
+
rescue Exception => e
|
527
|
+
# m.respond_to?(get_methods)
|
528
|
+
end
|
525
529
|
|
526
530
|
formatted_contents
|
527
531
|
end
|
@@ -642,7 +646,11 @@ module Veracode
|
|
642
646
|
|
643
647
|
assigns = {}
|
644
648
|
view = ActionView::Base.new(view_paths, assigns)
|
645
|
-
|
649
|
+
begin
|
650
|
+
controller_view = ApplicationController.new.view_context
|
651
|
+
rescue Exception => e
|
652
|
+
log_error "Unable to get controller view context (#{e.message})"
|
653
|
+
end
|
646
654
|
|
647
655
|
templates.each { |template|
|
648
656
|
puts "Compiling template #{template}" if $options[:verbose]
|
data/lib/veracode/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veracode
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.alpha16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Veracode
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|