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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ad985e497f862247d92d07c550cf5e71f30e91d4a4a599937ae3af3c2a56bb0
4
- data.tar.gz: fbe71f39a1628e58765bba17d847812d6f3250b27f4937f4bc1b492be6ecd64b
3
+ metadata.gz: 8f9679b127c0fea3a3044f5470c2336d02dcbd3c453df0bdc121827d41ce27c7
4
+ data.tar.gz: c4a8fb0378e691164646c70f53e8c866b4355fad557daedbc701d4afc05f695b
5
5
  SHA512:
6
- metadata.gz: 377bdd9c7c20e5811aa04b42bed81d94ce8e97a8f33e832cee012b10dac39aadba0b239a757b8b5d03f2ce46b2efb420871ff949f7273e83a9cc6916faa68333
7
- data.tar.gz: c42fd23e7d02f02d0e3565866aef8e21f0dc0271172f7ad95c35f9754f6897b6ad89666a44f89a6be405b95d16f0a9e95ba681027bdb0f82eda88b83657d012e
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
- %w[ public protected private ].each {|p|
513
- get_methods = (p + "_instance_methods").to_sym
514
- if m.respond_to?(get_methods) && m.__send__(get_methods, $options[:include_inherited]).count > 0
515
- m.__send__(get_methods, $options[:include_inherited]).each do |m_symbol|
516
- begin
517
- method = m.instance_method(m_symbol)
518
- formatted_contents += format_method(method, "#{p.to_s}_instance", with_disasm)
519
- rescue Exception => e
520
- log_error "Error archiving #{p.to_s} instance method #{m_symbol.to_s.dump}: #{e.message}"
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
- end
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
- controller_view = ApplicationController.new.view_context
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]
@@ -1,4 +1,4 @@
1
1
  module Veracode
2
- VERSION = '1.0.0.alpha15'
2
+ VERSION = '1.0.0.alpha16'
3
3
  ARCHIVE_VERSION = '2012-07-04'
4
4
  end
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.alpha15
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-17 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip