timescaledb 0.2.2 → 0.2.3

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
  SHA256:
3
- metadata.gz: b622fffc9a920a95e1c0615df32fa13e6b60d21198ebd39a6c46d27a66e11df4
4
- data.tar.gz: 9da077e24cb64120e1d235e05234299f9c2fb7cbbbd63e50a68a13bad3a23898
3
+ metadata.gz: 0367f44853d1cd4845a905e4692691baca381b739f9fb35f6a2aa471f350c946
4
+ data.tar.gz: b6bd9df57b80f6570f341f4842949092b367da03c5e9ba2edae6df6826288729
5
5
  SHA512:
6
- metadata.gz: b4c098c20e3a99f5c8798f5ed2e29c095b5982b55defc5612128a33bf840c01d7eb457df2a5cd83fc41243be9b48184a8bc9b585800d2d7daa28085793263246
7
- data.tar.gz: b1420ac494f3a1ed6ebbd4ebd3701a9a3d33b122bbf3d6dd4b15c94159ce5299d24d0f08c68ef612b6758859b388811415593d4512fc39bfbff26876ec82efea
6
+ metadata.gz: 4e02cd458d020baeaa3658c20f6b502970f36772ef10f62162ad1028ad3ef7ab36943909815d3d6d04776d6cbbd8047f4705bfacbcc9315b89adaf516e54365c
7
+ data.tar.gz: 83f647f7814cf797155f599a3403e6641ea09edf6334f49f65279bed90c290686554b533eab852345367a0c76cf5f9a88d318d419fa46c9534aebb28a8922858
data/Fastfile ADDED
@@ -0,0 +1,17 @@
1
+
2
+ # Use `fast .version_up` to rewrite the version file
3
+ Fast.shortcut :version_up do
4
+ rewrite_file('(casgn nil VERSION (str _)', 'lib/timescaledb/version.rb') do |node|
5
+ target = node.children.last.loc.expression
6
+ pieces = target.source.split('.').map(&:to_i)
7
+ pieces.reverse.each_with_index do |fragment, i|
8
+ if fragment < 9
9
+ pieces[-(i + 1)] = fragment + 1
10
+ break
11
+ else
12
+ pieces[-(i + 1)] = 0
13
+ end
14
+ end
15
+ replace(target, "'#{pieces.join('.')}'")
16
+ end
17
+ end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- timescaledb (0.2.1)
4
+ timescaledb (0.2.3)
5
5
  activerecord
6
6
  activesupport
7
7
  pg (~> 1.2)
@@ -33,7 +33,7 @@ GEM
33
33
  concurrent-ruby (~> 1.0)
34
34
  method_source (1.0.0)
35
35
  minitest (5.14.4)
36
- pg (1.3.1)
36
+ pg (1.4.4)
37
37
  pry (0.14.1)
38
38
  coderay (~> 1.1)
39
39
  method_source (~> 1.0)
@@ -1,7 +1,7 @@
1
1
  module Timescaledb
2
2
  class Dimension < ActiveRecord::Base
3
3
  self.table_name = "timescaledb_information.dimensions"
4
- attribute :time_interval, :interval
4
+ # attribute :time_interval, :interval
5
5
  end
6
6
  Dimensions = Dimension
7
7
  end
@@ -3,6 +3,7 @@ module Timescaledb
3
3
  self.table_name = "timescaledb_information.job_stats"
4
4
 
5
5
  belongs_to :job
6
+ # attribute :last_run_duration, :interval
6
7
 
7
8
  scope :success, -> { where(last_run_status: "Success") }
8
9
  scope :scheduled, -> { where(job_status: "Scheduled") }
@@ -27,7 +27,7 @@ module Timescaledb
27
27
  private
28
28
 
29
29
  def timescale_hypertable(hypertable, stream)
30
- dim = hypertable.dimensions
30
+ dim = hypertable.dimensions.first
31
31
  extra_settings = {
32
32
  time_column: "#{dim.column_name}",
33
33
  chunk_time_interval: "#{dim.time_interval.inspect}"
@@ -1,3 +1,3 @@
1
1
  module Timescaledb
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timescaledb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jônatas Davi Paganini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2022-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -150,6 +150,7 @@ files:
150
150
  - ".tool-versions"
151
151
  - ".travis.yml"
152
152
  - CODE_OF_CONDUCT.md
153
+ - Fastfile
153
154
  - Gemfile
154
155
  - Gemfile.lock
155
156
  - Gemfile.scenic