time_series 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1 +1,4 @@
1
1
  *.gem
2
+ reinstall
3
+ .yardoc/
4
+ doc/
data/Gemfile.lock ADDED
@@ -0,0 +1,38 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ time_series (0.0.1)
5
+ activesupport
6
+ awesome_print
7
+ hiredis
8
+ redis
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ activesupport (4.0.0)
14
+ i18n (~> 0.6, >= 0.6.4)
15
+ minitest (~> 4.2)
16
+ multi_json (~> 1.3)
17
+ thread_safe (~> 0.1)
18
+ tzinfo (~> 0.3.37)
19
+ atomic (1.1.9)
20
+ awesome_print (1.1.0)
21
+ hiredis (0.4.5)
22
+ i18n (0.6.4)
23
+ minitest (4.7.4)
24
+ multi_json (1.7.6)
25
+ rake (10.0.4)
26
+ redis (3.0.4)
27
+ thread_safe (0.1.0)
28
+ atomic
29
+ tzinfo (0.3.37)
30
+
31
+ PLATFORMS
32
+ ruby
33
+
34
+ DEPENDENCIES
35
+ bundler (~> 1.3)
36
+ minitest
37
+ rake
38
+ time_series!
data/lib/time_series.rb CHANGED
@@ -2,6 +2,7 @@
2
2
  require 'bundler/setup'
3
3
 
4
4
  require 'active_support/core_ext/numeric/time.rb'
5
+ require 'active_support/core_ext/date/calculations.rb'
5
6
 
6
7
  #require 'active_support/core_ext/time/calculations.rb'
7
8
  require_relative "version"
@@ -35,8 +36,8 @@ class TimeSeries < RedisConnection
35
36
  unless resolutions.include?(@resolution) #or @resolution.is_a?(Integer)
36
37
  raise ArgumentError.new("resolution can be either :year or :month or :day or :hour or :minute or :second")
37
38
  end
38
- elsif keys.empty? # default resolution is :second
39
- @resolution = :second
39
+ elsif keys.empty? # default resolution is :minute
40
+ @resolution = :minute
40
41
  else # try to guess resolution from existing keys
41
42
  max_res = 0
42
43
  keys.each do |k|
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Time_Series
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/time_series.gemspec CHANGED
@@ -6,10 +6,10 @@ require 'version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "time_series"
8
8
  spec.version = Time_Series::VERSION
9
- spec.authors = ["panos"]
10
- spec.email = [""]
11
- spec.description = "Timeseries library using Redis as a backend"
12
- spec.summary = "Timeseries library using Redis as a backend"
9
+ spec.author = 'Panayiotis Vlantis'
10
+ spec.email = 'p.vlantis@di.uoa.gr'
11
+ spec.description = "Timeseries metrics store using Redis as a backend"
12
+ spec.summary = "Timeseries metrics store using Redis as a backend"
13
13
  spec.homepage = "https://github.com/panayiotis/time_series"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: time_series
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - panos
8
+ - Panayiotis Vlantis
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -123,15 +123,15 @@ dependencies:
123
123
  - - ! '>='
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
- description: Timeseries library using Redis as a backend
127
- email:
128
- - ''
126
+ description: Timeseries metrics store using Redis as a backend
127
+ email: p.vlantis@di.uoa.gr
129
128
  executables: []
130
129
  extensions: []
131
130
  extra_rdoc_files: []
132
131
  files:
133
132
  - .gitignore
134
133
  - Gemfile
134
+ - Gemfile.lock
135
135
  - LICENSE.txt
136
136
  - README.md
137
137
  - Rakefile
@@ -167,7 +167,7 @@ rubyforge_project:
167
167
  rubygems_version: 1.8.25
168
168
  signing_key:
169
169
  specification_version: 3
170
- summary: Timeseries library using Redis as a backend
170
+ summary: Timeseries metrics store using Redis as a backend
171
171
  test_files:
172
172
  - spec/compressor_spec.rb
173
173
  - spec/key_spec.rb