veracode 1.1.7 → 1.1.9.alpha0
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/schema.rb +4 -0
 - data/lib/veracode/version.rb +1 -1
 - data/lib/veracode.rb +30 -4
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 213efcb58cc5c61f9476882ecdaabb2f95d8eed806b2c5664770dc5667216f89
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 41a5b4401ea1b0b6a57444eefb491db821711e0d1cd39b29996ede780c2097ef
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9904a88687218ec9f377db858f9cb8ba6662c5fca92288b1ba43882116e1acc02fbe9db2310de121cb8719545eb81c563cf114710eeb6da94ef669d6bf23bf8f
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 761fc4e7da59427d09384a6238eb2924436f173f2f4fa90396b2e55033af1d1a60437255a9b1c513a00854438169db99eb46eccc57dcd656d5d11e1fa5d50720
         
     | 
    
        data/lib/veracode/schema.rb
    CHANGED
    
    
    
        data/lib/veracode/version.rb
    CHANGED
    
    
    
        data/lib/veracode.rb
    CHANGED
    
    | 
         @@ -38,6 +38,8 @@ module Veracode 
     | 
|
| 
       38 
38 
     | 
    
         | 
| 
       39 
39 
     | 
    
         
             
              @expanded_app_dir = Dir.getwd
         
     | 
| 
       40 
40 
     | 
    
         | 
| 
      
 41 
     | 
    
         
            +
              @app_patterns = ["lib/**/*.rb", "app/**/*.rb"]
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
       41 
43 
     | 
    
         
             
              def self.init
         
     | 
| 
       42 
44 
     | 
    
         
             
                if Gem::Dependency.new('', '~> 2.2.0').match?('', RUBY_VERSION.dup)
         
     | 
| 
       43 
45 
     | 
    
         
             
                  $stderr.puts "Ruby 2.2 is not supported, please consult the compilation guide for all supported Ruby versions"
         
     | 
| 
         @@ -185,9 +187,8 @@ module Veracode 
     | 
|
| 
       185 
187 
     | 
    
         
             
                    }
         
     | 
| 
       186 
188 
     | 
    
         
             
                  else
         
     | 
| 
       187 
189 
     | 
    
         
             
                    Zip.write_zip64_support = true
         
     | 
| 
       188 
     | 
    
         
            -
                     
     | 
| 
      
 190 
     | 
    
         
            +
                    zipper = -> (zf) { 
         
     | 
| 
       189 
191 
     | 
    
         
             
                      @manifest.each { |file|
         
     | 
| 
       190 
     | 
    
         
            -
             
     | 
| 
       191 
192 
     | 
    
         
             
                        if file.start_with?(@archive_dirname)
         
     | 
| 
       192 
193 
     | 
    
         
             
                          name_in_archive = file.sub(/^#{@archive_dirname + File::SEPARATOR}/,"")
         
     | 
| 
       193 
194 
     | 
    
         
             
                        else
         
     | 
| 
         @@ -198,6 +199,13 @@ module Veracode 
     | 
|
| 
       198 
199 
     | 
    
         
             
                        zf.add(name_in_archive, file)
         
     | 
| 
       199 
200 
     | 
    
         
             
                      }
         
     | 
| 
       200 
201 
     | 
    
         
             
                    }
         
     | 
| 
      
 202 
     | 
    
         
            +
                    if defined?(Zip::File::CREATE) 
         
     | 
| 
      
 203 
     | 
    
         
            +
                      # rubyzip 2.X
         
     | 
| 
      
 204 
     | 
    
         
            +
                      Zip::File.open(@archive_filename, Zip::File::CREATE) { |zf| zipper.call(zf) }
         
     | 
| 
      
 205 
     | 
    
         
            +
                    else 
         
     | 
| 
      
 206 
     | 
    
         
            +
                      #rubyzip 3.X
         
     | 
| 
      
 207 
     | 
    
         
            +
                      Zip::File.open(@archive_filename, create: true) { |zf| zipper.call(zf) }
         
     | 
| 
      
 208 
     | 
    
         
            +
                    end
         
     | 
| 
       201 
209 
     | 
    
         
             
                  end
         
     | 
| 
       202 
210 
     | 
    
         
             
                rescue Exception => e
         
     | 
| 
       203 
211 
     | 
    
         
             
                  log_error "Unable to create archive #{@manifest_filename}: #{e.message}"
         
     | 
| 
         @@ -238,6 +246,25 @@ module Veracode 
     | 
|
| 
       238 
246 
     | 
    
         | 
| 
       239 
247 
     | 
    
         
             
              def self.rebaseline
         
     | 
| 
       240 
248 
     | 
    
         
             
                self.baseline
         
     | 
| 
      
 249 
     | 
    
         
            +
             
     | 
| 
      
 250 
     | 
    
         
            +
                # Modules for the application files should never be in the baseline modules when rebaselining
         
     | 
| 
      
 251 
     | 
    
         
            +
                if Module.respond_to? :const_source_location
         
     | 
| 
      
 252 
     | 
    
         
            +
                  app_files = @app_patterns.each_with_object(Set.new) do |p, s|
         
     | 
| 
      
 253 
     | 
    
         
            +
                      s.merge(Dir.glob(p).collect { |f| File.expand_path f } )
         
     | 
| 
      
 254 
     | 
    
         
            +
                  end
         
     | 
| 
      
 255 
     | 
    
         
            +
                  @baseline_modules.reject! do |m| 
         
     | 
| 
      
 256 
     | 
    
         
            +
                    ret = false
         
     | 
| 
      
 257 
     | 
    
         
            +
                    begin
         
     | 
| 
      
 258 
     | 
    
         
            +
                      mn = m.name
         
     | 
| 
      
 259 
     | 
    
         
            +
                      unless mn.nil? 
         
     | 
| 
      
 260 
     | 
    
         
            +
                        csl = Module.const_source_location(mn.to_sym)
         
     | 
| 
      
 261 
     | 
    
         
            +
                        ret = !csl[0].nil? && app_files.include?(csl[0])
         
     | 
| 
      
 262 
     | 
    
         
            +
                      end
         
     | 
| 
      
 263 
     | 
    
         
            +
                    rescue
         
     | 
| 
      
 264 
     | 
    
         
            +
                    end
         
     | 
| 
      
 265 
     | 
    
         
            +
                    ret
         
     | 
| 
      
 266 
     | 
    
         
            +
                  end
         
     | 
| 
      
 267 
     | 
    
         
            +
                end
         
     | 
| 
       241 
268 
     | 
    
         
             
              end
         
     | 
| 
       242 
269 
     | 
    
         | 
| 
       243 
270 
     | 
    
         
             
              def self.update
         
     | 
| 
         @@ -1065,8 +1092,7 @@ end 
     | 
|
| 
       1065 
1092 
     | 
    
         
             
                  any_new = true
         
     | 
| 
       1066 
1093 
     | 
    
         
             
                  while any_new
         
     | 
| 
       1067 
1094 
     | 
    
         
             
                    any_new = false
         
     | 
| 
       1068 
     | 
    
         
            -
                    any_new |= glob_require  
     | 
| 
       1069 
     | 
    
         
            -
                    any_new |= glob_require "app/**/*.rb"
         
     | 
| 
      
 1095 
     | 
    
         
            +
                    @app_patterns.each { |p| any_new |= glob_require p }
         
     | 
| 
       1070 
1096 
     | 
    
         
             
                    puts "new successful requires? #{any_new.to_s}" if $options[:verbose]
         
     | 
| 
       1071 
1097 
     | 
    
         
             
                  end
         
     | 
| 
       1072 
1098 
     | 
    
         | 
    
        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. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.1.9.alpha0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Veracode
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2025-10-22 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rubyzip
         
     | 
| 
         @@ -50,9 +50,9 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       50 
50 
     | 
    
         
             
                  version: 1.9.3.0
         
     | 
| 
       51 
51 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       52 
52 
     | 
    
         
             
              requirements:
         
     | 
| 
       53 
     | 
    
         
            -
              - - " 
     | 
| 
      
 53 
     | 
    
         
            +
              - - ">"
         
     | 
| 
       54 
54 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       55 
     | 
    
         
            -
                  version:  
     | 
| 
      
 55 
     | 
    
         
            +
                  version: 1.3.1
         
     | 
| 
       56 
56 
     | 
    
         
             
            requirements: []
         
     | 
| 
       57 
57 
     | 
    
         
             
            rubygems_version: 3.1.6
         
     | 
| 
       58 
58 
     | 
    
         
             
            signing_key: 
         
     |