fluent-plugin-geovis 0.0.1 → 0.0.2

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: 8352532318bc0df70671f652fe865a3deb1f85563750cca77277a337111169cc
4
- data.tar.gz: db09783dca95f8e23ded5009c350727fe07de28f9ca44c3caae35dc74cd15b62
3
+ metadata.gz: 70b07bf87bdb2f68537e205cafc1a4f46ea1518f1fc291828f22060cac7ee298
4
+ data.tar.gz: a9baab600d4fbda0a8108c33b7f6cbcab0607cfffb1397f0ab81ee7fa2ca3749
5
5
  SHA512:
6
- metadata.gz: a3a1a92f2981979aca87e23aa94fbbf3c63b289432f1879b268fbcc23be5a28db6bdc959b14c0dca2abd62fd574c96326f9313d5f9ac5fa84d7bcdec1fc4c266
7
- data.tar.gz: 373035704185c5129923463173689ed0381f1230b9848c7f91357398a0fd4b7789eeb656f68ffdb682ae6ed91127f9cfc494d0f1e661a711fb6a8bdd9cdbeefb
6
+ metadata.gz: 7e8fd504f2ee80c1baa37bb3c0201cc6d60596ae7633486dcbcff0db02c07dabff4d3642f868ff04e08f04a295bab8fc49fd8086cee1ffce11797bea08d77496
7
+ data.tar.gz: f476be1f77794a60179c7ced7675d07ce6c6f287fdd8f05a187ba4a383502c76fd4e38a4242e93a4f58f4553b7cdbe9e4f6da0b1bb47fe22df3d484e51fd26f9
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,43 @@
1
+ # fluent-plugin-geovis
2
+
3
+ [Fluentd](https://fluentd.org/) filter plugin to do something.
4
+
5
+ TODO: write description for you plugin.
6
+
7
+ ## Installation
8
+
9
+ ### RubyGems
10
+
11
+ ```
12
+ $ gem install fluent-plugin-geovis
13
+ ```
14
+
15
+ ### Bundler
16
+
17
+ Add following line to your Gemfile:
18
+
19
+ ```ruby
20
+ gem "fluent-plugin-geovis"
21
+ ```
22
+
23
+ And then execute:
24
+
25
+ ```
26
+ $ bundle
27
+ ```
28
+
29
+ ## Configuration
30
+
31
+ You can generate configuration template:
32
+
33
+ ```
34
+ $ fluent-plugin-config-format filter geovis
35
+ ```
36
+
37
+ You can copy and paste generated documents here.
38
+
39
+ ## Copyright
40
+
41
+ * Copyright(c) 2018- TODO: Write your name
42
+ * License
43
+ *
@@ -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-geovis"
6
+ spec.version = "0.0.2"
7
+ spec.authors = ["li.baosheng"]
8
+ spec.email = ["libs@geovis.com.cn"]
9
+
10
+ spec.summary = "geovis.com.cn"
11
+ spec.description = "fluentd plugin for geovis"
12
+ spec.homepage = "http://geovis.com.cn"
13
+ spec.license = ""
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", "~> 1.14"
24
+ spec.add_development_dependency "rake", "~> 12.0"
25
+ spec.add_development_dependency "test-unit", "~> 3.0"
26
+ spec.add_runtime_dependency "fluentd", [">= 0.14.10", "< 2"]
27
+ end
@@ -0,0 +1,22 @@
1
+
2
+
3
+ require "fluent/plugin/filter"
4
+
5
+ module Fluent
6
+ module Plugin
7
+ class GeovisFilter < Fluent::Plugin::Filter
8
+ Fluent::Plugin.register_filter("geovis", self)
9
+
10
+ def configure(conf)
11
+ super
12
+ puts "==================================FetchpodnameFilter configure"
13
+ end
14
+
15
+ def filter(tag, time, record)
16
+ super
17
+ puts "==================================FetchpodnameFilter filter"
18
+ end
19
+
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,8 @@
1
+ $LOAD_PATH.unshift(File.expand_path("../../", __FILE__))
2
+ require "test-unit"
3
+ require "fluent/test"
4
+ require "fluent/test/driver/filter"
5
+ require "fluent/test/helpers"
6
+
7
+ Test::Unit::TestCase.include(Fluent::Test::Helpers)
8
+ Test::Unit::TestCase.extend(Fluent::Test::Helpers)
@@ -0,0 +1,18 @@
1
+ require "helper"
2
+ require "fluent/plugin/filter_geovis.rb"
3
+
4
+ class GeovisFilterTest < 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::Filter.new(Fluent::Plugin::GeovisFilter).configure(conf)
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-geovis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - li.baosheng
@@ -78,7 +78,14 @@ email:
78
78
  executables: []
79
79
  extensions: []
80
80
  extra_rdoc_files: []
81
- files: []
81
+ files:
82
+ - Gemfile
83
+ - README.md
84
+ - Rakefile
85
+ - fluent-plugin-geovis.gemspec
86
+ - lib/fluent/plugin/filter_geovis.rb
87
+ - test/helper.rb
88
+ - test/plugin/test_filter_geovis.rb
82
89
  homepage: http://geovis.com.cn
83
90
  licenses:
84
91
  - ''
@@ -103,4 +110,6 @@ rubygems_version: 2.7.8
103
110
  signing_key:
104
111
  specification_version: 4
105
112
  summary: geovis.com.cn
106
- test_files: []
113
+ test_files:
114
+ - test/helper.rb
115
+ - test/plugin/test_filter_geovis.rb