fluent-plugin-loggly 0.0.6 → 0.0.7

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: 761875401f1eb1ee4ac9bc1f3ded3b9b47272a2d
4
- data.tar.gz: 8a8af3f4ee035bd7ee8f1db41078d82403796c2f
3
+ metadata.gz: 65d0006313ddc9fcc95212520906f19f4a04d95e
4
+ data.tar.gz: 81608d38ba31a5a3f18d79862cb91405fdf367a9
5
5
  SHA512:
6
- metadata.gz: 445b44a387e1701e4663d0520ca20332a3c167f0049c36c4f4de8c62f7cb3b17c433fa4a81cc6b328059a0d227ed81f5b92ac5695090d2bfb0e02ac107395b75
7
- data.tar.gz: 39a8cbbe5778ac4becb889b1258795c43c2ad84a537ff2fd069e138820b0285551d51bde843263eb70fb6f94053fa6057bbeffd6d53662b4db311e15f60fa145
6
+ metadata.gz: 97ef91d3eb063eb6b7be9e88761e8a357741440c8527ae1d907befe32b96b3c36e1d6fd2d33ebd0d81b0259c218eb724ebdf44e76f49611546bf131c0eb41774
7
+ data.tar.gz: d57aedf80c60f487b1eced7af2a15e42adf4845a6f0a6a52896a2d5b34729871e27fff0314001574daae23e77c42a734b3a42c59468dd21f176b07fb590d27d4
@@ -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-loggly"
6
- s.version = "0.0.6"
6
+ s.version = "0.0.7"
7
7
  s.authors = ["Patrik Antonsson"]
8
8
  s.email = ["patant@gmail.com"]
9
9
  s.homepage = "https://github.com/patant/fluent-plugin-loggly"
@@ -18,4 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
  s.required_ruby_version = Gem::Requirement.new(">= 1.9.3")
20
20
  s.add_dependency('net-http-persistent', '>= 2.7')
21
+ s.add_dependency('yajl-ruby', '>= 1.0')
21
22
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Loggly
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  =begin
2
-
3
- Copyright (C) 2012 Patrik Antonsson
2
+
3
+ Copyright (C) 2012 Patrik Antonsson
4
4
 
5
5
  Licensed to the Apache Software Foundation (ASF) under one
6
6
  or more contributor license agreements. See the NOTICE file
@@ -45,7 +45,7 @@ class LogglyOutput < Fluent::Output
45
45
  def emit(tag, es, chain)
46
46
  chain.next
47
47
  es.each {|time,record|
48
- record_json = record.to_json
48
+ record_json = Yajl::Encoder.encode(record)
49
49
  $log.debug "Record sent #{record_json}"
50
50
  post = Net::HTTP::Post.new @uri.path
51
51
  post.body = record_json
@@ -55,7 +55,7 @@ class LogglyOutputBuffred < Fluent::BufferedOutput
55
55
  records = []
56
56
  chunk.msgpack_each {|tag,time,record|
57
57
  record['timestamp'] ||= Time.at(time).iso8601 if @output_include_time
58
- records.push(record.to_json)
58
+ records.push(Yajl::Encoder.encode(record))
59
59
  }
60
60
  $log.debug "#{records.length} records sent"
61
61
  post = Net::HTTP::Post.new @uri.path
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-loggly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Antonsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2015-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-http-persistent
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: yajl-ruby
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
27
41
  description: Fluentd pluging (fluentd.org) for output to loggly (loggly.com)
28
42
  email:
29
43
  - patant@gmail.com
@@ -60,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
74
  version: '0'
61
75
  requirements: []
62
76
  rubyforge_project: fluent-plugin-loggly
63
- rubygems_version: 2.1.11
77
+ rubygems_version: 2.4.6
64
78
  signing_key:
65
79
  specification_version: 4
66
80
  summary: Fluentd plugin for output to loggly