redistimeseries 0.1.0 → 0.1.1

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: 4af4bf21201c52e7d9341772f9e42ef980bfbfda0e1d9e459d1ad3d6b937cc42
4
- data.tar.gz: 5d452593b2532a78b6ed38a11626ddb83fa5f91b5ee821e6f7d40d0769fd8add
3
+ metadata.gz: e3de654187c79b461ca14b8d8ea7fe7be7262ab68c76999aaae7ca5d114aa067
4
+ data.tar.gz: ea43a4257fcc410def290bfd33cc18be0851f3b95dc9fe3da5289060701027de
5
5
  SHA512:
6
- metadata.gz: d76f55ae9b6e42ab9f5999db3aa0d1444e668583084f30fe9e4cc868d3cb7ece238cd2916c3ceaff699163ae9f9aaf574fd2472bf046d65ed8c86653440f487a
7
- data.tar.gz: 231f52e8ed45b1fe36539ad3e6353541f6d3b6705563f16db2b66600b306014c7133142a81e04f6d390f35742b3eb76c2345b722aa1540dfdafa1a30de924cf5
6
+ metadata.gz: 1d38aa78c9952bec3249dac3491d509fb2727ae85e0b9b7643f16b1fa43e302920bca6bdd0887e9c1a4830f2bafdee95d44ad570aa48026b79709596a3137b23
7
+ data.tar.gz: 102afdfbc45b7ebfedf306023d89a062f50418b18743263f0cc4c72c5e1b57181c905c9608caae904e5930b8116ae665f67f85af46ce9470e571d6be13df7a22
@@ -9,8 +9,8 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- redistimeseries (0.1.0)
13
- redis (>= 4)
12
+ redistimeseries (0.1.1)
13
+ redis (~> 4)
14
14
 
15
15
  GEM
16
16
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -25,12 +25,15 @@ RedisTimeSeries gem uses Ruby's refinement to add timeseries methods to the Redi
25
25
  You need to include the line
26
26
 
27
27
  ```ruby
28
+ require 'redistimeseries'
28
29
  using Redistimeseries::RedisRefinement
29
- ```
30
30
 
31
- in files which use the redis timeseries functions.
31
+ client = Redis.new
32
+ client.ts_create(key: "mytimeseries")
33
+ client.ts_add(key: "mytimeseries", value: 141)
34
+ ```
32
35
 
33
- ### done
36
+ # Methods - see redis_refinement.rb
34
37
 
35
38
  ```ruby
36
39
  ts_create(key:, retention: nil, uncompressed: false, labels: [])
@@ -45,7 +45,9 @@ module Redistimeseries
45
45
  end
46
46
 
47
47
  def ts_mrange; end
48
+
48
49
  def ts_get; end
50
+
49
51
  def ts_mget; end
50
52
 
51
53
  def ts_info(key:)
@@ -1,3 +1,3 @@
1
1
  module Redistimeseries
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.metadata["source_code_uri"] = "https://github.com/eadz/redistimeseries"
18
18
  spec.metadata["changelog_uri"] = "https://github.com/eadz/redistimeseries"
19
19
 
20
- spec.add_dependency 'redis', '>= 4'
20
+ spec.add_dependency 'redis', '~> 4'
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redistimeseries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eaden McKee (eadz)
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: redis
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4'
27
27
  description: Ruby client for Redis Timeseries, a redis add-on module.
@@ -46,7 +46,6 @@ files:
46
46
  - bin/setup
47
47
  - lib/redistimeseries.rb
48
48
  - lib/redistimeseries/redis_refinement.rb
49
- - lib/redistimeseries/time_refinement.rb
50
49
  - lib/redistimeseries/version.rb
51
50
  - redistimeseries.gemspec
52
51
  homepage: https://github.com/eadz/redistimeseries
@@ -1,7 +0,0 @@
1
- module RefineTime
2
- refine Time do
3
- def to_ms
4
- (self.to_f * 1000.0).to_i
5
- end
6
- end
7
- end