influxdb 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/influxdb/client.rb +2 -2
- data/lib/influxdb/version.rb +1 -1
- data/spec/influxdb/client_spec.rb +1 -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: dec07342cd8e538c3ebba57d893117c5dc3d0e35
|
4
|
+
data.tar.gz: a0c35f492f8fabc6b3df66da2725c35a5f67e06f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44e86d093b33b08031324467c78b518b49516a6374f9e6a5b0740f86b9d397f0e7ebf013f78aa6284aeee652924cce8576e5176c8f4c22c3212c0c1e9b2a90b1
|
7
|
+
data.tar.gz: 13493de5cfd094646fbf68baf1b15a1fa87ba434ef2d8c988edb21bca9dd5597ab83125582df63f16fa654563610cdea87fb174a0662a2bef6cea51b29c53842
|
data/lib/influxdb/client.rb
CHANGED
@@ -2,10 +2,10 @@ require 'uri'
|
|
2
2
|
require 'net/http'
|
3
3
|
require 'json'
|
4
4
|
|
5
|
+
|
5
6
|
module InfluxDB
|
6
7
|
class Client
|
7
8
|
attr_accessor :host, :port, :username, :password, :database
|
8
|
-
attr_accessor :worker
|
9
9
|
|
10
10
|
# Initializes a new Influxdb client
|
11
11
|
#
|
@@ -116,7 +116,7 @@ module InfluxDB
|
|
116
116
|
|
117
117
|
def denormalize_series series
|
118
118
|
columns = series['columns']
|
119
|
-
series['
|
119
|
+
series['points'].map { |point| Hash[columns.zip(point)]}
|
120
120
|
end
|
121
121
|
end
|
122
122
|
end
|
data/lib/influxdb/version.rb
CHANGED
@@ -140,7 +140,7 @@ describe InfluxDB::Client do
|
|
140
140
|
|
141
141
|
describe "#execute_queries" do
|
142
142
|
before(:each) do
|
143
|
-
data = [{ :name => "foo", :columns => ["name", "age"], :
|
143
|
+
data = [{ :name => "foo", :columns => ["name", "age"], :points => [["shahid", 99],["dix", 50]]}]
|
144
144
|
|
145
145
|
stub_request(:get, "http://influxdb.test:9999/db/database/series").with(
|
146
146
|
:query => { :q => "select * from foo", :u => "username", :p => "password"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: influxdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Persen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|