anschel 0.7.16 → 0.7.17

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: b5611f7bad8a6808996d244caf2482fef45e2641
4
- data.tar.gz: a6420bda8d746c71fe5aa30b7b5bc24f9a9f11a3
3
+ metadata.gz: 564ffbff082f29ab42433c5a0b172e9f67d79fe5
4
+ data.tar.gz: d47ee96175ed0548fe7547343a7d8e45ddac61c7
5
5
  SHA512:
6
- metadata.gz: 27a2fdfdb9a6f9aaca45b76a0248437fe378a71a9611bbf6330d7238b7994225c37cc15d1e303361fe4394fdbaec9242c8db32dce04e546993ee7a013f2c04e2
7
- data.tar.gz: 400c0258c448fa8d04c96b510d45d101f6d5ccbcc0ae8d27efa9ad4fc601a84a2ad1dd5012ee3fe6a8a7e4b8a5076e5bd928cab0668b71706fadeec970b83f63
6
+ metadata.gz: 6217f2630e912cecd1f4a17cb0bc333cf01b266e2fa998194215f9bfaab4eadcac52deab206fd0125c7e0617d40c5b422201d04ba6a86d9af8bf88d8667e9dc1
7
+ data.tar.gz: 2977ea58bf6565a5ea13450354fbe806e8114eeaa41db674f593629b16e0e309dc61d0ac3437aec8d1b7a1375f4f788ccc45a45277a89529edb3f5675f6397b9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.16
1
+ 0.7.17
@@ -16,6 +16,7 @@ module Anschel
16
16
  loop do
17
17
  f.puts @queue.shift
18
18
  f.flush
19
+ stats.inc 'output'
19
20
  end
20
21
  end
21
22
  end
@@ -39,6 +39,7 @@ module Anschel
39
39
 
40
40
  body = events.map do |e|
41
41
  id = e.delete(:@id)
42
+ type = e.delete(:@type) || e[:type]
42
43
  index = e.delete(:@index)
43
44
  routing = e.delete(:@routing)
44
45
 
@@ -51,7 +52,7 @@ module Anschel
51
52
  index = default_index
52
53
  end
53
54
 
54
- item = { _index: index, _type: e[:type], data: e }
55
+ item = { _index: index, _type: type, data: e }
55
56
  item[:_routing] = routing if routing
56
57
  item[:_id] = id if id
57
58
  { index: item }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anschel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.16
4
+ version: 0.7.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Clemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-05 00:00:00.000000000 Z
11
+ date: 2016-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement