fluent-plugin-geoip 1.3.0 → 1.3.1

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: eab0d5c4f07207bfeba15ba4c11ba6b9d4acc8538235e6b2820e7207817803cb
4
- data.tar.gz: 549a11f6f954945e37301b0cc010d8272193768a81e198f474552327e0d304ec
3
+ metadata.gz: f90a0511cb3b631423f10611fa9b31ce69a1ba2eb815a959ee31ea83bba7cd91
4
+ data.tar.gz: 0ff06245d1aa1633cebae4d3a764e24dc8a1af5c67b6c7fd7039350f55bf0067
5
5
  SHA512:
6
- metadata.gz: 7380799ed242d60ee4281870b8c2b23261428f02b5d4aa1b2908039219659fa8730b596b4713f09da6ea3c63d96e7795f7420ce0c62142f29e4542c13eb32706
7
- data.tar.gz: 737f87472b5d5e145294067be686b51b984433d9d360265fef59da0afa93a21d77a12db4612af0b4d3183c4439b33eebcf47e1ab5fd98a23f8e7701152adee30
6
+ metadata.gz: 513d669a7a40673aee8329be06f1dc4d024f286e13d1760126c0fe3b6f6ad15a06aee54c3bef8ebd227a506202d4e4886425caa540efcf80bd4bb4423ed45051
7
+ data.tar.gz: afcb9809f98196b6de647e58111dc608caf8143c6bd966b44d412eada89404efb46b842755484768dcb9faba781de8c44ad8f2aa5cf3ccb8f62e34b8a3f42363
@@ -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-geoip"
7
- spec.version = "1.3.0"
7
+ spec.version = "1.3.1"
8
8
  spec.authors = ["Kentaro Yoshida"]
9
9
  spec.email = ["y.ken.studio@gmail.com"]
10
10
  spec.summary = %q{Fluentd Filter plugin to add information about geographical location of IP addresses with Maxmind GeoIP databases.}
@@ -86,6 +86,7 @@ module Fluent::Plugin
86
86
  @placeholder_keys = @map.values.join.scan(REGEXP_PLACEHOLDER_SCAN).map{|placeholder| placeholder[0] }.uniq
87
87
  @placeholder_keys.each do |key|
88
88
  m = key.match(REGEXP_PLACEHOLDER_SINGLE)
89
+ raise Fluent::ConfigError, "Invalid placeholder attributes: #{key}" unless m
89
90
  geoip_key = m[:geoip_key]
90
91
  case @backend_library
91
92
  when :geoip
@@ -115,6 +115,19 @@ class GeoipFilterTest < Test::Unit::TestCase
115
115
  ]
116
116
  end
117
117
 
118
+ test "invalid placeholder attributes" do
119
+ assert_raise(Fluent::ConfigError) do
120
+ create_driver %[
121
+ geoip_lookup_keys host
122
+ backend_library geoip2_c
123
+
124
+ <record>
125
+ geoip.city_name ${city.names.en["host]}
126
+ </record>
127
+ ]
128
+ end
129
+ end
130
+
118
131
  data(geoip: "geoip",
119
132
  geoip2_compat: "geoip2_compat")
120
133
  test "unsupported key" do |backend|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-geoip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kentaro Yoshida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2019-02-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -208,8 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
208
  - !ruby/object:Gem::Version
209
209
  version: '0'
210
210
  requirements: []
211
- rubyforge_project:
212
- rubygems_version: 2.7.6
211
+ rubygems_version: 3.0.1
213
212
  signing_key:
214
213
  specification_version: 4
215
214
  summary: Fluentd Filter plugin to add information about geographical location of IP