ruby_smb 2.0.9 → 2.0.10
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.github/workflows/verify.yml +1 -0
- data/lib/ruby_smb/smb1/tree.rb +1 -1
- data/lib/ruby_smb/smb2/tree.rb +1 -1
- data/lib/ruby_smb/version.rb +1 -1
- data/spec/lib/ruby_smb/smb1/tree_spec.rb +4 -4
- data/spec/lib/ruby_smb/smb2/tree_spec.rb +5 -5
- metadata +2 -2
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 6a940f63ee744f0a05d22023d31d1712d97f43bb267b186705df9d0f2f7c3f76
         | 
| 4 | 
            +
              data.tar.gz: cdbf67cbbdda11e5c25c4773d776899664dd6aba252a65d1ebab7426b6e65d7a
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 550932f77f53fc427e0470db3699832bbf29c86fadd823ce8d7589813a0d7cad13dae5573bf0b8e744fdbef1d62cbab6360ee8c189ed63ee6d79f952c58361a3
         | 
| 7 | 
            +
              data.tar.gz: d5bbb37e144ee6ac920c3b577f22ff11cae9848d75649177ad77d4051a241ce7f7e5df2c1114ba1e4f566eeb2283bdc95aa56be419fbba415e5662afe12221a6
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/lib/ruby_smb/smb1/tree.rb
    CHANGED
    
    
    
        data/lib/ruby_smb/smb2/tree.rb
    CHANGED
    
    | @@ -61,7 +61,7 @@ module RubySMB | |
| 61 61 | 
             
                    opts = opts.dup
         | 
| 62 62 | 
             
                    opts[:filename] = opts[:filename].dup
         | 
| 63 63 | 
             
                    opts[:filename] = opts[:filename][1..-1] if opts[:filename].start_with? '\\'
         | 
| 64 | 
            -
                    open_file(opts)
         | 
| 64 | 
            +
                    open_file(**opts)
         | 
| 65 65 | 
             
                  end
         | 
| 66 66 |  | 
| 67 67 | 
             
                  def open_file(filename:, attributes: nil, options: nil, disposition: RubySMB::Dispositions::FILE_OPEN,
         | 
    
        data/lib/ruby_smb/version.rb
    CHANGED
    
    
| @@ -501,16 +501,16 @@ RSpec.describe RubySMB::SMB1::Tree do | |
| 501 501 | 
             
                it 'calls #open_file with the provided options' do
         | 
| 502 502 | 
             
                  opts[:filename] ='\\test'
         | 
| 503 503 | 
             
                  expect(tree).to receive(:open_file).with(opts)
         | 
| 504 | 
            -
                  tree.open_pipe(opts)
         | 
| 504 | 
            +
                  tree.open_pipe(**opts)
         | 
| 505 505 | 
             
                end
         | 
| 506 506 |  | 
| 507 507 | 
             
                it 'prepends the filename with \\ if needed' do
         | 
| 508 | 
            -
                  expect(tree).to receive(:open_file).with( | 
| 509 | 
            -
                  tree.open_pipe(opts)
         | 
| 508 | 
            +
                  expect(tree).to receive(:open_file).with(filename: '\\test', write: true)
         | 
| 509 | 
            +
                  tree.open_pipe(**opts)
         | 
| 510 510 | 
             
                end
         | 
| 511 511 |  | 
| 512 512 | 
             
                it 'does not modify the original option hash' do
         | 
| 513 | 
            -
                  tree.open_pipe(opts)
         | 
| 513 | 
            +
                  tree.open_pipe(**opts)
         | 
| 514 514 | 
             
                  expect(opts).to eq( { filename: 'test', write: true } )
         | 
| 515 515 | 
             
                end
         | 
| 516 516 | 
             
              end
         | 
| @@ -540,17 +540,17 @@ RSpec.describe RubySMB::SMB2::Tree do | |
| 540 540 |  | 
| 541 541 | 
             
                it 'calls #open_file with the provided options' do
         | 
| 542 542 | 
             
                  opts[:filename] ='test'
         | 
| 543 | 
            -
                  expect(tree).to receive(:open_file).with(opts)
         | 
| 544 | 
            -
                  tree.open_pipe(opts)
         | 
| 543 | 
            +
                  expect(tree).to receive(:open_file).with(**opts)
         | 
| 544 | 
            +
                  tree.open_pipe(**opts)
         | 
| 545 545 | 
             
                end
         | 
| 546 546 |  | 
| 547 547 | 
             
                it 'remove the leading \\ from the filename if needed' do
         | 
| 548 | 
            -
                  expect(tree).to receive(:open_file).with( | 
| 549 | 
            -
                  tree.open_pipe(opts)
         | 
| 548 | 
            +
                  expect(tree).to receive(:open_file).with(filename: 'test', write: true)
         | 
| 549 | 
            +
                  tree.open_pipe(**opts)
         | 
| 550 550 | 
             
                end
         | 
| 551 551 |  | 
| 552 552 | 
             
                it 'does not modify the original option hash' do
         | 
| 553 | 
            -
                  tree.open_pipe(opts)
         | 
| 553 | 
            +
                  tree.open_pipe(**opts)
         | 
| 554 554 | 
             
                  expect(opts).to eq( { filename: '\\test', write: true } )
         | 
| 555 555 | 
             
                end
         | 
| 556 556 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: ruby_smb
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.0. | 
| 4 | 
            +
              version: 2.0.10
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Metasploit Hackers
         | 
| @@ -97,7 +97,7 @@ cert_chain: | |
| 97 97 | 
             
              EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
         | 
| 98 98 | 
             
              9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
         | 
| 99 99 | 
             
              -----END CERTIFICATE-----
         | 
| 100 | 
            -
            date: 2021-05- | 
| 100 | 
            +
            date: 2021-05-28 00:00:00.000000000 Z
         | 
| 101 101 | 
             
            dependencies:
         | 
| 102 102 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 103 103 | 
             
              name: redcarpet
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |