influxdb-lineprotocol-parser 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b2490d6234974b7e68904ea3e1e0f8097d43aafd15946632222e6428bf84920b
4
+ data.tar.gz: 501f6bf3750299aea99024b1180841bbaee15e343cf7d9ab843726c0bfcdb5c1
5
+ SHA512:
6
+ metadata.gz: '094ae5413c86aab7448ca3b4b1e2a6ff90b70f8559434493e6efd02ade64cbf60e965eaf8f760e2fa00afe18e9c86880e3501c627e8aee569ba990b209d7d4b8'
7
+ data.tar.gz: 9f03253c475b67532099c956609ec833e5fb934c19979574ec4aafe382c8b8553b61e1bb2b533cedd20743adddcaf5f7e118675f7de914eccf7984dc6e0730bf
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ # Copyright 2019 Mikko Värri <mikko@varri.fi>
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ module InfluxDBExt
16
+ module LineProtocol
17
+ class Parser
18
+ # If block is given, yields each point in data.
19
+ # If block is not given, returns a list of points in data.
20
+ def each_point data
21
+ if block_given?
22
+ yield nil
23
+ else
24
+ []
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: influxdb-lineprotocol-parser
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mikko Värri
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'Streaming parser for InfluxDB line protocol.
14
+
15
+ '
16
+ email: mikko@varri.fi
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/influxdb/lineprotocol/parser.rb
22
+ homepage: https://rubygems.org/gems/influxdb-lineprotocol-parser
23
+ licenses:
24
+ - Apache-2.0
25
+ metadata:
26
+ bug_tracker_uri: https://github.com/vmj/influxdb-lineprotocol-parser/issues
27
+ source_code_uri: https://github.com/vmj/influxdb-lineprotocol-parser
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.0.3
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: InfluxDB line protocol parser
47
+ test_files: []