fluent-plugin-filter-geoip 0.5.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f2fd0ecc7c4107238ac0036c23619c8de8c22aa
4
- data.tar.gz: c670f95a24c05f40f4c85601296b9dec171a2414
3
+ metadata.gz: b2b912120c49b9b8aedfc16c1aa114d1cff01903
4
+ data.tar.gz: 53d5bda0b163c1c53f345b1253d8e35c388c8e71
5
5
  SHA512:
6
- metadata.gz: aef325575c76255ca1479f7649a38fb2bb19e963fa40fe403f804f92d7b91f7882474c09b8f7aba2f4c04acd0e2844bab5f878aaf4f4caaa9efbff6091b4e100
7
- data.tar.gz: 8a0661ce524170f0d6900789f4f4bc6d7954810813848e73a0f32606fbd6d11b5f9c3f4d5903f2a74836e6e7aaa4691375e4258de88e5b0477cb6438ff945378
6
+ metadata.gz: 826ebb9e102ce41fe3335c7f199cef9ff3b607b2f2c98bb69223b5e559e93ebc0514c95c64007e80974b7efa7882b42ca86063c48241cd7f6941a9188f74def2
7
+ data.tar.gz: 15cdf6ad78ef40087b8f027b5372d7294ad4c8532f5618529bd6fd255fbf6cb29617c741ec09abb24b218f9b3c2f2aa9e2aa7ad929060caa4e9056bb0c30fcde
data/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This is a [Fluentd](http://fluentd.org/) filter plugin for adding [GeoIP data](http://dev.maxmind.com/geoip/geoip2/geolite2/) to record. Supports the new Maxmind v2 database formats.
4
4
 
5
+ ## Requirements
6
+
7
+ | fluent-plugin-filter-geoip | fluentd | td-agent | ruby |
8
+ | -------------------------- | --------------- | -------- | ------ |
9
+ | 1.x.x | >= 0.14.0, < 2 | 3 | >= 2.1 |
10
+ | 0.x.x | ~> 0.12.0 | 2 | >= 1.9 |
11
+
12
+ * The 1.x.x series is developed from this branch (master)
13
+ * The 0.x.x series (compatible with fluentd v0.12, and td-agent 2) is developed on the [v0.x.x branch](https://github.com/mosuka/fluent-plugin-filter-geoip/tree/v0.x.x)
14
+
5
15
  ## Installation
6
16
 
7
17
  Install it yourself as:
@@ -216,7 +226,7 @@ connection_type true
216
226
 
217
227
  Assuming following inputs are coming:
218
228
 
219
- ```javascript
229
+ ```json
220
230
  {
221
231
  "clientip": "200.114.49.218"
222
232
  }
@@ -224,7 +234,7 @@ Assuming following inputs are coming:
224
234
 
225
235
  then output bocomes as belows:
226
236
 
227
- ```javascript
237
+ ```json
228
238
  {
229
239
  "clientip": "200.114.49.218",
230
240
  "geoip": {
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-filter-geoip"
7
- spec.version = "0.5.3"
7
+ spec.version = "1.0.0"
8
8
  spec.authors = ["Minoru Osuka"]
9
9
  spec.email = ["minoru.osuka@gmail.com"]
10
10
 
@@ -19,10 +19,10 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_runtime_dependency 'fluentd', '~> 0.12.32'
22
+ spec.add_runtime_dependency 'fluentd', ['>= 0.14.0', '< 2']
23
23
  spec.add_runtime_dependency 'maxminddb', '~> 0.1.11'
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.14.6'
25
+ spec.add_development_dependency 'bundler', '~> 1.14'
26
26
  spec.add_development_dependency 'rake', '~> 11.1.2'
27
27
  spec.add_development_dependency 'test-unit', '~> 3.1.5'
28
28
  spec.add_development_dependency 'minitest', '~> 5.8.3'
@@ -2,8 +2,9 @@ require 'maxminddb'
2
2
  require 'json'
3
3
  require 'fileutils'
4
4
  require 'open-uri'
5
+ require 'fluent/plugin/filter'
5
6
 
6
- module Fluent
7
+ module Fluent::Plugin
7
8
  class GeoIPFilter < Filter
8
9
  Fluent::Plugin.register_filter('geoip', self)
9
10
 
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-filter-geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minoru Osuka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-13 00:00:00.000000000 Z
11
+ date: 2017-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.14.0
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: 0.12.32
22
+ version: '2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.14.0
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: 0.12.32
32
+ version: '2'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: maxminddb
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,14 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: 1.14.6
53
+ version: '1.14'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: 1.14.6
60
+ version: '1.14'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rake
57
63
  requirement: !ruby/object:Gem::Requirement