fluent-plugin-snowplow 0.1.3 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -1
- data/lib/fluent/plugin/out_snowplow.rb +9 -1
- data/lib/fluent/plugin/snowplow/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37790813e6e0f4a06d336c42942a45480729ea46
|
4
|
+
data.tar.gz: a7b633007f5031383f6ba1e43c7ccbd3cbccceb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90803ad9e269ec5fd54fe97d3703411447a8031224da752ef5380b97e0d861f76b7894154692c34d0d0771a034d5df2f20e73a14d237b204269ae03a2f2a3af2
|
7
|
+
data.tar.gz: b33c85878e7d7e5ff62b0604762ab799778eaac2048b794a51e2a30160c89b1509210c855c556153cf0d5ff6cadde64cf14c110642090c7c4dfe5684a2873033
|
data/Gemfile.lock
CHANGED
@@ -47,10 +47,18 @@ class Fluent::SomeOutput < Fluent::TimeSlicedOutput
|
|
47
47
|
message = JSON.parse record['message']
|
48
48
|
true_timestamp = record['true_timestamp']
|
49
49
|
application = record['application']
|
50
|
+
contexts = JSON.parse record.fetch('contexts', "[]")
|
50
51
|
tracker = tracker_for(application)
|
51
52
|
|
53
|
+
contexts = contexts.map do |context|
|
54
|
+
context_schema = context['schema']
|
55
|
+
context_message = context['message']
|
56
|
+
|
57
|
+
SnowplowTracker::SelfDescribingJson.new(context_schema, context_message)
|
58
|
+
end
|
59
|
+
|
52
60
|
self_describing_json = SnowplowTracker::SelfDescribingJson.new(schema, message)
|
53
|
-
tracker.track_self_describing_event(self_describing_json,
|
61
|
+
tracker.track_self_describing_event(self_describing_json, contexts, SnowplowTracker::TrueTimestamp.new(true_timestamp.to_i))
|
54
62
|
end
|
55
63
|
|
56
64
|
tracker.flush
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-snowplow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucas Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,9 +93,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.5.2
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Fluentd snowplow gem
|
100
100
|
test_files: []
|
101
|
-
has_rdoc:
|