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 +4 -4
- data/Gemfile +3 -0
- data/Rakefile +13 -0
- data/fluent-plugin-fluent-plugin-json-size-limit-0.1.7.gem +0 -0
- data/fluent-plugin-fluent-plugin-json-size-limit-0.1.8.gem +0 -0
- data/fluent-plugin-fluent-plugin-json-size-limit.gemspec +27 -0
- data/lib/fluent/plugin/in_fluent_plugin_json_size_limit.rb +1 -1
- data/test/helper.rb +7 -0
- data/test/plugin/test_in_fluent_plugin_json_size_limit.rb +18 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc06b4b62fbecf7a543c796cb91c8826243a0d1fff1293d7f19ed0301daf766c
|
4
|
+
data.tar.gz: 01da44bfceef506b6bb3d2d7227c2947b3506ba5c762c883b8fd6155a74d5a11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f28c4a5cd4400a38b9435248c2eab162d39729917529e1bba1ee21661d4d49deb4135a36c27f579520af66b41d2318a09178b933679e367433de641e3854c2d
|
7
|
+
data.tar.gz: e38dd049088b92ff79125bcab7478d7165db6ed5ab6d372789c47ae5ec79bed5e1722e4658b3f839703a29d4ad346e8f9914c26078f1608fac9a3a63b7f5207b
|
data/Gemfile
ADDED
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]
|
Binary file
|
Binary file
|
@@ -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
|
data/test/helper.rb
ADDED
@@ -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.
|
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
|