fluent-plugin-snowplow 0.1.2 → 0.1.3

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: 8ac4e04cdbc1a1575ecb5bbb3519e49158071162
4
- data.tar.gz: 832790a8ce83af161570561d51d63e9fa611cfde
3
+ metadata.gz: ffafeda9841cf47af54a794e24abfb8463250885
4
+ data.tar.gz: 978a8da22192dbad6185dfcdbc9800de0acfb76c
5
5
  SHA512:
6
- metadata.gz: 68a13d0ce72c8d8db784cf57a42938e5101dee9f14ab6abeda4fc89432777a4c16afd08715301db38db02acb3292f513a8da1107794bb7cf69e6f3b0ca65d726
7
- data.tar.gz: 5701f5cb61b74ed1f4c6a3c301a20ac18541afb3e2d1437618c64d5d94c3f4ef71770b7cc7f875052820e7f8569a096e917028103d37f725d213255bfe2e8943
6
+ metadata.gz: c2dbe951d332df308a5718c6bf8d06d189ed4ca9209c423919feaf82749c9ca995edcf579591e5f19abfa2a9ab0ebd49394204628b268495fe6d20a466d7e710
7
+ data.tar.gz: 6cfca5ce9fc0c92b4e94960e29d03c3e47308cc0835fb4d2fdcc8a3faf51a95eaca7bef2b1d10fc9f2ee956d088c37af9db6bcead9afe3fbefe7e4b2bd21393b
@@ -18,7 +18,9 @@ class Fluent::SomeOutput < Fluent::TimeSlicedOutput
18
18
  @emitter = SnowplowTracker::Emitter.new(@host, {
19
19
  buffer_size: @buffer_size,
20
20
  protocol: @protocol,
21
- method: @method
21
+ method: @method,
22
+ on_success: ->(_) { log.debug("Flush with success on snowplow") },
23
+ on_failure: ->(_, _) { raise "Error when flushing to snowplow" }
22
24
  })
23
25
 
24
26
  @trackers = {}
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Snowplow
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-snowplow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Souza