fluent-plugin-pghstore 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-pghstore"
6
- s.version = "0.0.2"
6
+ s.version = "0.0.3"
7
7
  s.authors = ["WAKAYAMA Shirou"]
8
8
  s.email = ["shirou.faw@gmail.com"]
9
9
  s.homepage = "https://github.com/r_rudi/fluent-plugin-pghstore"
@@ -46,13 +46,7 @@ class Fluent::PgHStoreOutput < Fluent::BufferedOutput
46
46
  def generate_sql(tag, time, record)
47
47
  kv_list = []
48
48
  record.each {|(key,value)|
49
- begin
50
- v = Integer(value)
51
- rescue ArgumentError => e
52
- kv_list.push("#{key} => \"#{value}\"") # might be string
53
- else
54
- kv_list.push("#{key} => #{value}")
55
- end
49
+ kv_list.push("\"#{key}\" => \"#{value}\"")
56
50
  }
57
51
 
58
52
  tag_list = tag.split(".")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-pghstore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: