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 +4 -4
- data/VERSION +1 -1
- data/lib/anschel/output/device.rb +1 -0
- data/lib/anschel/output/elasticsearch.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564ffbff082f29ab42433c5a0b172e9f67d79fe5
|
4
|
+
data.tar.gz: d47ee96175ed0548fe7547343a7d8e45ddac61c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6217f2630e912cecd1f4a17cb0bc333cf01b266e2fa998194215f9bfaab4eadcac52deab206fd0125c7e0617d40c5b422201d04ba6a86d9af8bf88d8667e9dc1
|
7
|
+
data.tar.gz: 2977ea58bf6565a5ea13450354fbe806e8114eeaa41db674f593629b16e0e309dc61d0ac3437aec8d1b7a1375f4f788ccc45a45277a89529edb3f5675f6397b9
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.17
|
@@ -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:
|
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.
|
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-
|
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
|