fluent-plugin-indicative 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
  SHA256:
3
- metadata.gz: 9726291406c4deb4adb6ea6cfb8ec0da889f36c48825ba170ac4f146ebce7dc6
4
- data.tar.gz: ef26a743c3de5480e65aef1f421f2b04067f0f88d94ea23fbbdedaf9ee874ae6
3
+ metadata.gz: 89dfbfce81d05b8bf8b93141d722eab9bbeb88bdd92a88ac1d6e2abfa1dc8ba7
4
+ data.tar.gz: d71646b0fac4161dbe30ee5e9362b6d959138a30dfaceaaea85cd9dd8984858f
5
5
  SHA512:
6
- metadata.gz: e1d37374890aeea8d674a15292307505a46a4365413fa0a10a47490b0d54c551bd6ccbc69b2a06ecdc84ea3ca555127aea76d473889c3202a688a3320da221de
7
- data.tar.gz: 7a4045e12fd72d08088d42be7cdc6fb634695c3835ed64f22e8f498bb41b8a994d390cf054d838ff7d1054317c3cdcf7ef1b7c21557727d4b0743c5fe5c223fe
6
+ metadata.gz: 22d2abb17750310715710fa2f1847ffb44d7891b50dc9cdd37efffb88f92cb02320e897844349605ef8260ad993562836ed15a41b96130247dd3ba96e905f1e6
7
+ data.tar.gz: 92c62349f678b48557717c60e669bb503226cb6573b88f2cd2101556808d35f5d42dee03c7965c1c31e6f873c2e1f33a1c4fcdb0fa91ff991dc6660ce04bbe76
@@ -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-indicative"
6
- s.version = "0.1.2"
6
+ s.version = "0.1.3"
7
7
  s.authors = ["Sam Millar"]
8
8
  s.email = ["sam@millar.io"]
9
9
  s.homepage = "https://github.com/millar/fluent-plugin-indicative"
@@ -45,7 +45,7 @@ class Fluent::Plugin::IndicativeOutput < Fluent::Plugin::Output
45
45
  eventName: data[@event_name_key],
46
46
  eventUniqueId: unique_id_key && data[unique_id_key],
47
47
  properties: flatten_hash(data),
48
- eventTime: Date.parse(data[@event_time_key]).rfc3339
48
+ eventTime: DateTime.parse(data[@event_time_key]).rfc3339
49
49
  }
50
50
 
51
51
  http = Net::HTTP.new(uri.host, uri.port)
@@ -32,7 +32,7 @@ class IndicativeOutputTest < Test::Unit::TestCase
32
32
  d = create_driver(CONFIG)
33
33
  stub_request(:any, d.instance.api_url)
34
34
  d.run(default_tag: 'test') do
35
- d.feed({'event_name' => 'screen_view', 'created_at' => '2015-01-01T00:00:00.000Z', 'session_id' => 'a3bd2', 'user_id' => nil, 'screen' => {'id' => 'index'}})
35
+ d.feed({'event_name' => 'screen_view', 'created_at' => '2015-01-01T10:00:00.000Z', 'session_id' => 'a3bd2', 'user_id' => nil, 'screen' => {'id' => 'index'}})
36
36
  end
37
37
  events = d.events
38
38
  assert_equal 0, events.length
@@ -43,12 +43,12 @@ class IndicativeOutputTest < Test::Unit::TestCase
43
43
  'eventUniqueId' => 'a3bd2',
44
44
  'properties' => {
45
45
  'event_name' => 'screen_view',
46
- 'created_at' => '2015-01-01T00:00:00.000Z',
46
+ 'created_at' => '2015-01-01T10:00:00.000Z',
47
47
  'session_id' => 'a3bd2',
48
48
  'user_id' => nil,
49
49
  'screen.id' => 'index'
50
50
  },
51
- 'eventTime' => '2015-01-01T00:00:00+00:00'
51
+ 'eventTime' => '2015-01-01T10:00:00+00:00'
52
52
  }.to_json, times: 1
53
53
  end
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-indicative
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
  - Sam Millar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake