fluent-plugin-fluent-plugin-json-size-limit 0.1.7 → 0.1.9

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: 8fe8ced456a0d9fe37fc863178490c89eca84be541005d41692233ddb5181598
4
- data.tar.gz: e8eb8b0a6db0d078711c9de69df4d0ee802c14f14c76b759fe0331d2658e92b9
3
+ metadata.gz: cc06b4b62fbecf7a543c796cb91c8826243a0d1fff1293d7f19ed0301daf766c
4
+ data.tar.gz: 01da44bfceef506b6bb3d2d7227c2947b3506ba5c762c883b8fd6155a74d5a11
5
5
  SHA512:
6
- metadata.gz: fec2f1125ebaf2b5f0d35c1498c47298905b96a307e527a31cd95d3e67d6bb1989202bcc6a11f147e6ac3a679538a143eba79c1710e67bd172a942d320dfa5d4
7
- data.tar.gz: 5dd080cb6d6c78a61fee400738754bddc455d2785821a3fb36713235585215298d7fcc56919d244e6e414a8442db04e37d4b76a42005091050e7f271478a832a
6
+ metadata.gz: 4f28c4a5cd4400a38b9435248c2eab162d39729917529e1bba1ee21661d4d49deb4135a36c27f579520af66b41d2318a09178b933679e367433de641e3854c2d
7
+ data.tar.gz: e38dd049088b92ff79125bcab7478d7165db6ed5ab6d372789c47ae5ec79bed5e1722e4658b3f839703a29d4ad346e8f9914c26078f1608fac9a3a63b7f5207b
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require "bundler"
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs.push("lib", "test")
8
+ t.test_files = FileList["test/**/test_*.rb"]
9
+ t.verbose = true
10
+ t.warning = true
11
+ end
12
+
13
+ task default: [:test]
@@ -0,0 +1,27 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = "fluent-plugin-fluent-plugin-json-size-limit"
6
+ spec.version = "0.1.9"
7
+ spec.authors = ["Mykola Panin"]
8
+ spec.email = ["mykola.panin@creatoriq.com"]
9
+
10
+ spec.summary = %q{Fluentd plugin to limit JSON size}
11
+ spec.description = %q{This plugin reduces the size of JSON records if they exceed a specified limit.}
12
+ spec.homepage = "http://example.com/fluent-plugin-json-size-limit"
13
+ spec.license = "Apache-2.0"
14
+
15
+ test_files, files = `git ls-files -z`.split("\x0").partition do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.files = files
19
+ spec.executables = files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = test_files
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 2.4.22"
24
+ spec.add_development_dependency "rake", "~> 13.0.6"
25
+ spec.add_development_dependency "test-unit", "~> 3.5.7"
26
+ spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"]
27
+ end
@@ -18,7 +18,7 @@ require 'fluent/plugin/filter'
18
18
  module Fluent
19
19
  module Plugin
20
20
  class JsonSizeLimitFilter < Filter
21
- Fluent::Plugin.register_filter('jsonsizelimit', self)
21
+ Fluent::Plugin.register_filter('json_size_limit', self)
22
22
 
23
23
  def configure(conf)
24
24
  super
data/test/helper.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "test-unit"
2
+ require "fluent/test"
3
+ require "fluent/test/driver/input"
4
+ require "fluent/test/helpers"
5
+
6
+ Test::Unit::TestCase.include(Fluent::Test::Helpers)
7
+ Test::Unit::TestCase.extend(Fluent::Test::Helpers)
@@ -0,0 +1,18 @@
1
+ require "helper"
2
+ require "fluent/plugin/in_fluent_plugin_json_size_limit.rb"
3
+
4
+ class FluentPluginJsonSizeLimitInputTest < Test::Unit::TestCase
5
+ setup do
6
+ Fluent::Test.setup
7
+ end
8
+
9
+ test "failure" do
10
+ flunk
11
+ end
12
+
13
+ private
14
+
15
+ def create_driver(conf)
16
+ Fluent::Test::Driver::Input.new(Fluent::Plugin::FluentPluginJsonSizeLimitInput).configure(conf)
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-fluent-plugin-json-size-limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mykola Panin
@@ -80,9 +80,16 @@ executables: []
80
80
  extensions: []
81
81
  extra_rdoc_files: []
82
82
  files:
83
+ - Gemfile
83
84
  - LICENSE
84
85
  - README.md
86
+ - Rakefile
87
+ - fluent-plugin-fluent-plugin-json-size-limit-0.1.7.gem
88
+ - fluent-plugin-fluent-plugin-json-size-limit-0.1.8.gem
89
+ - fluent-plugin-fluent-plugin-json-size-limit.gemspec
85
90
  - lib/fluent/plugin/in_fluent_plugin_json_size_limit.rb
91
+ - test/helper.rb
92
+ - test/plugin/test_in_fluent_plugin_json_size_limit.rb
86
93
  homepage: http://example.com/fluent-plugin-json-size-limit
87
94
  licenses:
88
95
  - Apache-2.0
@@ -106,4 +113,6 @@ rubygems_version: 3.4.22
106
113
  signing_key:
107
114
  specification_version: 4
108
115
  summary: Fluentd plugin to limit JSON size
109
- test_files: []
116
+ test_files:
117
+ - test/helper.rb
118
+ - test/plugin/test_in_fluent_plugin_json_size_limit.rb