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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 86ce9db8e67f64000501c1db00199e43d8ab5e77
4
- data.tar.gz: ab7ec833b6428d02a5a06500140685268f4a27ce
3
+ metadata.gz: dec07342cd8e538c3ebba57d893117c5dc3d0e35
4
+ data.tar.gz: a0c35f492f8fabc6b3df66da2725c35a5f67e06f
5
5
  SHA512:
6
- metadata.gz: 61f2f05677101108e2322262166847dc010bd8615e69e2b53d1efab5968e7083f10e8dfdc4d5406cf47b1a65bed46a382d8b813a515d3a99176b687348401231
7
- data.tar.gz: 3db8c9ad364c52a04c1d66035c4ce80b6c9a3b0b9c6045a0f039e5b7d74faf2000d1ae183d3a33890710a70073b5b7f0daf2dffdf2ae6152f7c3eb05f6015bdd
6
+ metadata.gz: 44e86d093b33b08031324467c78b518b49516a6374f9e6a5b0740f86b9d397f0e7ebf013f78aa6284aeee652924cce8576e5176c8f4c22c3212c0c1e9b2a90b1
7
+ data.tar.gz: 13493de5cfd094646fbf68baf1b15a1fa87ba434ef2d8c988edb21bca9dd5597ab83125582df63f16fa654563610cdea87fb174a0662a2bef6cea51b29c53842
@@ -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['values'].map { |point| Hash[columns.zip(point)]}
119
+ series['points'].map { |point| Hash[columns.zip(point)]}
120
120
  end
121
121
  end
122
122
  end
@@ -1,3 +1,3 @@
1
1
  module InfluxDB
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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"], :values => [["shahid", 99],["dix", 50]]}]
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.8
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-13 00:00:00.000000000 Z
11
+ date: 2013-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json