fluent-plugin-mysql-appender 0.2.5 → 0.2.6

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
  SHA1:
3
- metadata.gz: 108575a1c1fbc257f98d1774dc990bc5e986c48a
4
- data.tar.gz: 9ddb5e6082c93ece328f6fe8698bfd29f33e3655
3
+ metadata.gz: 62fd9e5656fcbf7fe91b3751fd12f9fd0ea8f887
4
+ data.tar.gz: 361d501666c05a962d1ae570d23f3d3f0ebec286
5
5
  SHA512:
6
- metadata.gz: 5a7c8de93dec0876f8efeb33075e9a46a9fc4f36355fc9112db343b194fe81fa2f743c19366c7f2244445d6c752e2262a98334d60eae3df51cbe57907861ff82
7
- data.tar.gz: 493086666985f0058554ad1d52c82d0e32d8057c8082cff2dc1488f514fd9c0019ce61fba3fc46f007bfa5c405f4f2d6f48fd27fa74baac60535b407192575fb
6
+ metadata.gz: 27f260fb31c67c9f6a49bc0e7987122318af1705a2435b330cf643189afb807a8cb14abf10c65511013dc55601a696fbd507dafd90dcdf9f84215c8279102023
7
+ data.tar.gz: ed96a381d33eafcdb301bb934d1005c7b83f5c6a0327c50bb6669d39e607a7189cdc83481fe060baf0c98eba3408e5debd74b129697aec3faca6942711ff4b68
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "fluent-plugin-mysql-appender"
4
- spec.version = "0.2.5"
4
+ spec.version = "0.2.6"
5
5
  spec.authors = ["TERASAKI Tsuyoshi"]
6
6
  spec.email = ["tsuyoshi_terasaki@realworld.jp"]
7
7
 
@@ -28,6 +28,14 @@ module Fluent
28
28
  super
29
29
  @interval = Config.time_value(@interval)
30
30
 
31
+ if @yaml_path.nil?
32
+ raise Fluent::ConfigError, "mysql_appender_multi: missing 'yaml_path' parameter or file not found."
33
+ end
34
+
35
+ if !File.exist?(@yaml_path)
36
+ raise Fluent::ConfigError, "mysql_appender_multi: 'yaml_path' No such file."
37
+ end
38
+
31
39
  if @tag.nil?
32
40
  raise Fluent::ConfigError, "mysql_appender_multi: missing 'tag' parameter. Please add following line into config like 'tag appender.${name}.${event}.${primary_key}'"
33
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mysql-appender
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - TERASAKI Tsuyoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-14 00:00:00.000000000 Z
11
+ date: 2016-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd