fluent-plugin-sakuraio 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7192fc68701dbba7439d09b9904c8ba1e1dad910
4
- data.tar.gz: b32997b1e8f3e02e152e5ac020e9237e5bc8d4c7
3
+ metadata.gz: c2d785f10e2637af608fbcdede42f849673e44ed
4
+ data.tar.gz: 5c1e19248f892d875d661d514ec7c6f6d32fd907
5
5
  SHA512:
6
- metadata.gz: 9258b69bf1c74cb1a10efd7c95328558763da025abce7028ae748b6bf0c23fdd3ee17a0a662299642bf139a0eb7aa8db9534269afd5dc26d4121069054f000ed
7
- data.tar.gz: addeaf81f1dbb421ad747b5c4c6619fa909527337936ecaa26a5366fef79f1cd6bb2d19ca1926e64bbf59563e3e65a661e3626253403fc2af70c71b98e1bf690
6
+ metadata.gz: e0da44bfc9559554995af08fbb17a0faa043ad0e6fde60cf69ff0eaa320ea645af417c26338727e064874c46f0718ebf60ba1f5bda9c691761dab99848019bb2
7
+ data.tar.gz: a2d3fbf84996ae8952889b53a6414f1c39cde82cc458a5f7cf4b0130b21adc269e9b314179c77c1fef72d26e29dfffa1c18770e2d1f3e345d7cb2c3b23233826
data/README.md CHANGED
@@ -1,8 +1,13 @@
1
1
  # fluent-plugin-sakuraio
2
2
 
3
- [![Build Status](https://travis-ci.org/higebu/fluent-plugin-sakuraio.svg?branch=master)](https://travis-ci.org/higebu/fluent-plugin-sakuraio)
3
+ [![Build Status](https://travis-ci.org/sakuraio/fluent-plugin-sakuraio.svg?branch=master)](https://travis-ci.org/sakuraio/fluent-plugin-sakuraio)
4
4
 
5
- Fluentd Input plugin to process message from sakura.io websocket API.
5
+ Fluentd Input plugin to process message from [sakura.io](https://sakura.io) WebSocket API.
6
+
7
+ ## Requirements
8
+
9
+ * Ruby >= 2.1
10
+ * Fluentd >= v0.14.0
6
11
 
7
12
  ## Installation
8
13
 
@@ -19,6 +24,19 @@ gem install 'fluent-plugin-sakuraio'
19
24
  </source>
20
25
  ```
21
26
 
27
+ ### Tag format
28
+
29
+ * `channels` type messages: `{module}.channels.{channel}`
30
+ * `connection` and `location` type messages: `{module}.{type}`
31
+
32
+ ### Record format
33
+
34
+ * `channels` type messages: `{"module":{module},"channel":{channel},"type":"{data type}","value":{value}}`
35
+ * `connection` type messages: `{"module":{module},"is_online":{is_online}}`
36
+ * `location` type messages: `{"module":{module},"latitude":{latitude},"longitude":"{longitude}","range_m":{range_m}}`
37
+
38
+ The details of sakura.io message spec: https://sakura.io/docs/pages/platform-specification/message.html
39
+
22
40
  ## License
23
41
 
24
42
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -4,13 +4,13 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'fluent-plugin-sakuraio'
7
- spec.version = '0.0.5'
7
+ spec.version = '0.0.6'
8
8
  spec.authors = ['Yuya Kusakabe']
9
9
  spec.email = ['yuya.kusakabe@gmail.com']
10
10
 
11
11
  spec.summary = 'fluentd plugin for sakura.io'
12
12
  spec.description = 'fluentd plugin for sakura.io'
13
- spec.homepage = 'https://github.com/higebu/fluent-plugin-sakuraio'
13
+ spec.homepage = 'https://github.com/sakuraio/fluent-plugin-sakuraio'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -2,7 +2,6 @@ require 'fluent/input'
2
2
  require 'yajl'
3
3
  require 'faye/websocket'
4
4
  require 'eventmachine'
5
- require 'time'
6
5
 
7
6
  module Fluent::Plugin
8
7
  class SakuraIOInput < Input
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sakuraio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuya Kusakabe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -151,7 +151,7 @@ files:
151
151
  - Rakefile
152
152
  - fluent-plugin-sakuraio.gemspec
153
153
  - lib/fluent/plugin/in_sakuraio.rb
154
- homepage: https://github.com/higebu/fluent-plugin-sakuraio
154
+ homepage: https://github.com/sakuraio/fluent-plugin-sakuraio
155
155
  licenses:
156
156
  - MIT
157
157
  metadata: {}