logstash-input-azure_blob_storage 0.12.3 → 0.12.4
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/CHANGELOG.md +4 -0
- data/Gemfile +7 -0
- data/README.md +1 -1
- data/lib/logstash/inputs/azure_blob_storage.rb +519 -495
- data/logstash-input-azure_blob_storage.gemspec +22 -20
- data/spec/inputs/azure_blob_storage_spec.rb +10 -14
- metadata +17 -5
- data/spec/inputs/test.rb +0 -11
| @@ -1,27 +1,29 @@ | |
| 1 1 | 
             
            Gem::Specification.new do |s|
         | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 2 | 
            +
                s.name          = 'logstash-input-azure_blob_storage'
         | 
| 3 | 
            +
                s.version       = '0.12.4'
         | 
| 4 | 
            +
                s.licenses      = ['Apache-2.0']
         | 
| 5 | 
            +
                s.summary       = 'This logstash plugin reads and parses data from Azure Storage Blobs.'
         | 
| 6 | 
            +
                s.description   = <<-EOF
         | 
| 7 7 | 
             
             This gem is a Logstash plugin. It reads and parses data from Azure Storage Blobs. The azure_blob_storage is a reimplementation to replace azureblob from azure-diagnostics-tools/Logstash. It can deal with larger volumes and partial file reads and eliminating a delay when rebuilding the registry. Configuration examples can be found on https://github.com/janmg/logstash-input-azure_blob_storage
         | 
| 8 8 | 
             
            EOF
         | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 9 | 
            +
                s.homepage      = 'https://github.com/janmg/logstash-input-azure_blob_storage'
         | 
| 10 | 
            +
                s.authors       = ['Jan Geertsma']
         | 
| 11 | 
            +
                s.email         = 'jan@janmg.com'
         | 
| 12 | 
            +
                s.require_paths = ['lib']
         | 
| 13 13 |  | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 14 | 
            +
                # Files
         | 
| 15 | 
            +
                s.files = Dir['lib/**/*','spec/**/*','vendor/**/*','*.gemspec','*.md','CONTRIBUTORS','Gemfile','LICENSE']
         | 
| 16 | 
            +
                # Tests
         | 
| 17 | 
            +
                s.test_files = s.files.grep(%r{^(test|spec|features)/})
         | 
| 18 18 |  | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 19 | 
            +
                # Special flag to let us know this is actually a logstash plugin
         | 
| 20 | 
            +
                s.metadata = { "logstash_plugin" => "true", "logstash_group" => "input" }
         | 
| 21 21 |  | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 22 | 
            +
                # Gem dependencies
         | 
| 23 | 
            +
                s.add_runtime_dependency 'logstash-core-plugin-api', '~> 2.0'
         | 
| 24 | 
            +
                s.add_runtime_dependency 'stud', '~> 0.0.23'
         | 
| 25 | 
            +
                s.add_runtime_dependency 'azure-storage-blob', '~> 2', '>= 2.0.3'
         | 
| 26 | 
            +
             | 
| 27 | 
            +
                s.add_development_dependency 'logstash-devutils'
         | 
| 28 | 
            +
                s.add_development_dependency 'rubocop'
         | 
| 27 29 | 
             
            end
         | 
| @@ -4,19 +4,15 @@ require "logstash/inputs/azure_blob_storage" | |
| 4 4 |  | 
| 5 5 | 
             
            describe LogStash::Inputs::AzureBlobStorage do
         | 
| 6 6 |  | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 7 | 
            +
                it_behaves_like "an interruptible input plugin" do
         | 
| 8 | 
            +
                    let(:config) { { "interval" => 100 } }
         | 
| 9 | 
            +
                end
         | 
| 10 10 |  | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
                  assert_equal('whatever', AzureBlobStorage.strip_comma('whatever,'))
         | 
| 19 | 
            -
                  assert_equal('whatever', AzureBlobStorage.strip_comma(',whatever,'))
         | 
| 20 | 
            -
                  assert_equal('whatever', AzureBlobStorage.strip_comma('whatever'))
         | 
| 21 | 
            -
              end
         | 
| 11 | 
            +
                def test_helper_methodes 
         | 
| 12 | 
            +
                    assert_equal('b', AzureBlobStorage.val('a=b'))
         | 
| 13 | 
            +
                    assert_equal('whatever', AzureBlobStorage.strip_comma(',whatever'))
         | 
| 14 | 
            +
                    assert_equal('whatever', AzureBlobStorage.strip_comma('whatever,'))
         | 
| 15 | 
            +
                    assert_equal('whatever', AzureBlobStorage.strip_comma(',whatever,'))
         | 
| 16 | 
            +
                    assert_equal('whatever', AzureBlobStorage.strip_comma('whatever'))
         | 
| 17 | 
            +
                end
         | 
| 22 18 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: logstash-input-azure_blob_storage
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.12. | 
| 4 | 
            +
              version: 0.12.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Jan Geertsma
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2022- | 
| 11 | 
            +
            date: 2022-09-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -72,6 +72,20 @@ dependencies: | |
| 72 72 | 
             
                - - ">="
         | 
| 73 73 | 
             
                  - !ruby/object:Gem::Version
         | 
| 74 74 | 
             
                    version: '0'
         | 
| 75 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 76 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 77 | 
            +
                requirements:
         | 
| 78 | 
            +
                - - ">="
         | 
| 79 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 80 | 
            +
                    version: '0'
         | 
| 81 | 
            +
              name: rubocop
         | 
| 82 | 
            +
              prerelease: false
         | 
| 83 | 
            +
              type: :development
         | 
| 84 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 85 | 
            +
                requirements:
         | 
| 86 | 
            +
                - - ">="
         | 
| 87 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 88 | 
            +
                    version: '0'
         | 
| 75 89 | 
             
            description: " This gem is a Logstash plugin. It reads and parses data from Azure\
         | 
| 76 90 | 
             
              \ Storage Blobs. The azure_blob_storage is a reimplementation to replace azureblob\
         | 
| 77 91 | 
             
              \ from azure-diagnostics-tools/Logstash. It can deal with larger volumes and partial\
         | 
| @@ -91,7 +105,6 @@ files: | |
| 91 105 | 
             
            - lib/logstash/inputs/azure_blob_storage.rb
         | 
| 92 106 | 
             
            - logstash-input-azure_blob_storage.gemspec
         | 
| 93 107 | 
             
            - spec/inputs/azure_blob_storage_spec.rb
         | 
| 94 | 
            -
            - spec/inputs/test.rb
         | 
| 95 108 | 
             
            homepage: https://github.com/janmg/logstash-input-azure_blob_storage
         | 
| 96 109 | 
             
            licenses:
         | 
| 97 110 | 
             
            - Apache-2.0
         | 
| @@ -113,10 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 113 126 | 
             
                - !ruby/object:Gem::Version
         | 
| 114 127 | 
             
                  version: '0'
         | 
| 115 128 | 
             
            requirements: []
         | 
| 116 | 
            -
            rubygems_version: 3. | 
| 129 | 
            +
            rubygems_version: 3.2.29
         | 
| 117 130 | 
             
            signing_key:
         | 
| 118 131 | 
             
            specification_version: 4
         | 
| 119 132 | 
             
            summary: This logstash plugin reads and parses data from Azure Storage Blobs.
         | 
| 120 133 | 
             
            test_files:
         | 
| 121 134 | 
             
            - spec/inputs/azure_blob_storage_spec.rb
         | 
| 122 | 
            -
            - spec/inputs/test.rb
         | 
    
        data/spec/inputs/test.rb
    DELETED