veracode 1.1.6 → 1.1.7

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: 5cd6b5054a777beb3edbe568783105295ef5d2aba60403bc80afee04a53b3348
4
- data.tar.gz: 3c47c2749ce2038a316571e9f529b47ad0f19bdb3dcf45658783ad38e8783cfe
3
+ metadata.gz: 2748dd2d1f9ca4ad77e27e5135143f3e310f2b78722d095439126afe3aa5a433
4
+ data.tar.gz: 6a15bb00abca2f8471d0a535bcd812bd9ae8366e60998b211236981ad5aff5fc
5
5
  SHA512:
6
- metadata.gz: 0240d159fe34cb8516a19b1ec8e5cb0920dd5dcd777606a2dc7ce3553367d925424781f42a99e1a5b65d297a45a16a3196cb35db019673d51c45921e0abbd117
7
- data.tar.gz: ec7c3e0a1d0f3350c6cdd6f10f5c7200469598a05ccee43453ac432082894ea7be8ee203531159045048bfebb383679f5694db38554ee85fbd4753e766cea360
6
+ metadata.gz: abd794f9d29c5e9d226af29e0de4425a0beea89677396698e01955043ca0054b964718dc662c7bab6dfdddf3e60f7988fe9dc5e5b7bd494c8846eb0517994b79
7
+ data.tar.gz: 9132bf0aa6955ca63449dadcd4965e36fda893940f995d652aa59d1f34d5be43506c00c1f2ab89359db7d9212b10c2d3f55a80f99f548438a539339aaef4d7b5
@@ -1,4 +1,4 @@
1
1
  module Veracode
2
- VERSION = '1.1.6'
2
+ VERSION = '1.1.7'
3
3
  ARCHIVE_VERSION = '2020-06-29'
4
4
  end
data/lib/veracode.rb CHANGED
@@ -510,7 +510,17 @@ module Veracode
510
510
 
511
511
  formatted_contents = ""
512
512
 
513
- m.constants($options[:include_inherited]).each do |c_symbol|
513
+ constants_method = m.method(:constants)
514
+ original_constants_method = Module.instance_method(:constants)
515
+
516
+ if constants_method != original_constants_method
517
+ puts " constants method has been overridden, fall back to original method" if $options[:verbose]
518
+ constants = original_constants_method.bind(m).call($options[:include_inherited])
519
+ else
520
+ constants = m.constants($options[:include_inherited])
521
+ end
522
+
523
+ constants.each do |c_symbol|
514
524
  begin
515
525
  c = m.const_get(c_symbol) if m.const_defined? c_symbol
516
526
  formatted_contents += format_constant(c_symbol, c)
@@ -1106,7 +1116,7 @@ end
1106
1116
  log_error e.message
1107
1117
  log_error e.backtrace.join("\n")
1108
1118
  else
1109
- puts "Failed to prepare veracode archive. Please see #{@archive_dirname + '/' + @errorlog_filename}."
1119
+ puts "Failed to prepare veracode archive. Please see #{@errorlog_filename}."
1110
1120
  raise
1111
1121
  end
1112
1122
  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.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Veracode
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-11 00:00:00.000000000 Z
11
+ date: 2024-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip