influxer 0.3.1 → 0.4.0

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: ed8a85c7e2c801bd415689ccfbf4bddf020df2b6
4
- data.tar.gz: 9b42fc50e6dec5f287f193e0dbdb26ad983e533f
3
+ metadata.gz: cb2769b10dc827cd4fbf01f688ab5a51dc2c20c2
4
+ data.tar.gz: 6000427c5b89ce0e298d0eeef6c5d2a98d59976b
5
5
  SHA512:
6
- metadata.gz: 11ce8b4eb589f2a701603271b219f9c69004ed3854bc6c00cffb3b34ea7fd67faecfa5596c93af95b33f335c8105e390d2b9d5bf649164a1cf5b293cf3a79f36
7
- data.tar.gz: c6711090feeef17151a69282a42d8db28ca4b90115571d17023b44b93453d5a843cd0200d4fa5b586807f86d682146ef77236d6c1665396ac7ce74224a2f1511
6
+ metadata.gz: 5029154e957eaf73936e4891181cc542b18b0982b76cdcb81be9b3a4f9f9b6699c63dcddd6f5dda3541e5c36ac39b965cdbc9fbc47ad0a8599a3435ede15ea1b
7
+ data.tar.gz: a5f4e65fa1e7a723251437980335b29d8383c079c39a5ea55405325db3fc7b6c27408ac2c1136bafff25cc81792ee8ceb6f0ad209637e94d765777423f2f498f
@@ -1,9 +1,5 @@
1
- ## 0.3.1
2
- - Add order, soffset, slimit methods to Relation
3
- - Fix query statements order
4
-
5
- ## 0.3.0
6
- - Upgrade to InfluxDB 0.9.x
1
+ ## 0.4.0
2
+ - Rename default `time` attribute to `timestamp`
7
3
 
8
4
  ## 0.2.3
9
5
  - Parse fanout queries points to handle _fanouted_ values
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/palkan/influxer.svg?branch=master)](https://travis-ci.org/palkan/influxer) [![Vexor Status](https://ci.vexor.io/projects/55e92786-f1de-4e69-8f58-889453c2d71c/status.svg)](https://ci.vexor.io/ui/projects/55e92786-f1de-4e69-8f58-889453c2d71c/builds)
1
+ [![Gem Version](https://badge.fury.io/rb/influxer.svg)](https://rubygems.org/gems/influxer) [![Build Status](https://travis-ci.org/palkan/influxer.svg?branch=master)](https://travis-ci.org/palkan/influxer) [![Vexor Status](https://ci.vexor.io/projects/55e92786-f1de-4e69-8f58-889453c2d71c/status.svg)](https://ci.vexor.io/ui/projects/55e92786-f1de-4e69-8f58-889453c2d71c/builds)
2
2
  ## Influxer
3
3
 
4
4
  **NOTE**: Version 0.3.x supports InfluxDB >= 0.9.0. For InfluxDB 0.8.x use [version 0.2.5](https://github.com/palkan/influxer/tree/0.2.5).
@@ -162,7 +162,7 @@ module Influxer
162
162
  @attributes.select { |k, _| tag_names.include?(k.to_s) }
163
163
  end
164
164
 
165
- attributes :time
165
+ attributes :timestamp
166
166
 
167
167
  private
168
168
 
@@ -1,3 +1,3 @@
1
1
  module Influxer # :nodoc:
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -61,7 +61,7 @@ describe Influxer::Metrics, :query do
61
61
  it "sets current time" do
62
62
  Timecop.freeze(Time.local(2015))
63
63
  dummy_metrics.write!
64
- expect(dummy_metrics.time).to eq Time.local(2015)
64
+ expect(dummy_metrics.timestamp).to eq Time.local(2015).to_i
65
65
  end
66
66
  end
67
67
  end
@@ -4,7 +4,7 @@ class DummyMetrics < Influxer::Metrics # :nodoc:
4
4
 
5
5
  validates_presence_of :dummy_id, :user_id
6
6
 
7
- before_write -> { self.time = DateTime.now }
7
+ before_write -> { self.timestamp = Time.now.to_i }
8
8
 
9
9
  scope :calc, ->(method, *args) { send(method, *args) }
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: influxer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Dem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-11 00:00:00.000000000 Z
11
+ date: 2016-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -233,9 +233,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  version: '0'
234
234
  requirements: []
235
235
  rubyforge_project:
236
- rubygems_version: 2.2.2
236
+ rubygems_version: 2.5.1
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: InfluxDB for Rails
240
240
  test_files: []
241
- has_rdoc: