redlics 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 455cd347335aa108bc8b94735285f0d3931216b6
4
- data.tar.gz: feed8b18f2ceef5cfcac697f4cbe09bec82d8ecd
3
+ metadata.gz: 03c354152044a62cf2a313e57b2abdd007ec99c8
4
+ data.tar.gz: 6da2368b9fd7fa34c3269cc0fba59a3244b3014e
5
5
  SHA512:
6
- metadata.gz: 38d97d4f8aa09a8c2873aeb1b77336ec46f453069328c204b45b7c030ad90826891d03a4a9f830385ddc793ab0479f00a4bce4bdcc1696d7f9edb6b22d327345
7
- data.tar.gz: 9f624edc22fc913b66d247391826451916ab19ecdfa690425c7052140d66cba76e8d1067c35e600cd8611babd07dc47f0ccff6b8295577d1c324b2f60cdaf582
6
+ metadata.gz: 07719d523d0675359e319e65bacaf189328c9f1bbbfc7a3da8bde6410aff6d357cdfecf6131da71a5a0748053f9e9787a9aed8026de035aa64cea79871562866
7
+ data.tar.gz: cad96df38256ea283ccdc5ddf5fb6ff7e06ed4b8feddcd6fcaaec2a46c5e39c588b9a163c8f4ffb2c052ffb11bee0141cae964623b8f4003b05cdb6d87e0a792
data/README.md CHANGED
@@ -1,13 +1,14 @@
1
1
  # Redlics
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/redlics.svg)](https://rubygems.org/gems/redlics)
4
+ [![Gem](https://img.shields.io/gem/dt/redlics.svg?maxAge=2592000)](https://rubygems.org/gems/redlics)
4
5
  [![Build Status](https://secure.travis-ci.org/phlegx/redlics.svg?branch=master)](https://travis-ci.org/phlegx/redlics)
5
6
  [![Code Climate](http://img.shields.io/codeclimate/github/phlegx/redlics.svg)](https://codeclimate.com/github/phlegx/redlics)
6
7
  [![Inline Docs](http://inch-ci.org/github/phlegx/redlics.svg?branch=master)](http://inch-ci.org/github/phlegx/redlics)
7
8
  [![Dependency Status](https://gemnasium.com/phlegx/redlics.svg)](https://gemnasium.com/phlegx/redlics)
8
9
  [![License](https://img.shields.io/github/license/phlegx/redlics.svg)](http://opensource.org/licenses/MIT)
9
10
 
10
- Redis analytics with tracks (using bitmaps) and counts (using buckets) encoding numbers in Redis keys and values.
11
+ Record millions of tracks and counts consuming low memory! Redlics is a gem for Redis analytics with tracks (using bitmaps) and counts (using buckets) encoding numbers in Redis keys and values.
11
12
 
12
13
  ## Features
13
14
 
@@ -80,7 +81,7 @@ end
80
81
 
81
82
  #### Buckets
82
83
 
83
- If Redlics is configured to use buckets please configure Redis to allow an ideal size of list entries.
84
+ If Redlics is configured to use buckets, please configure Redis to allow an ideal size of list entries.
84
85
 
85
86
  ```ruby
86
87
  # Redlics config
@@ -107,10 +108,10 @@ Read more:
107
108
  * **Id:** 1234
108
109
  * **Bucket size**: 1000
109
110
 
110
- Results in:
111
+ results in:
111
112
 
112
113
  * **Bucket nr.:** 1 (part of Redis key)
113
- * **Bucket entry nr.:** 234 (part of Redis value)
114
+ * **Bucket entry nr.:** 234 (part of Redis value as hash key)
114
115
 
115
116
  #### Encoding
116
117
 
data/lib/redlics/key.rb CHANGED
@@ -97,7 +97,7 @@ module Redlics
97
97
  # @param string [String] the key name to check
98
98
  # @return [Boolean] true id key exists, false if not
99
99
  def exists?(key)
100
- Redlics.redis.exists(key) == 1
100
+ Redlics.redis.exists(key)
101
101
  end
102
102
 
103
103
 
data/lib/redlics/query.rb CHANGED
@@ -187,7 +187,7 @@ module Redlics
187
187
  # @return [Integer] result of Redis delete keys
188
188
  # @return [NilClass] nil if namespaces are empty
189
189
  def finalize(namespaces)
190
- proc { reset_redis_namespaces(namespaces); puts 'Redlics clean!' }
190
+ proc { reset_redis_namespaces(namespaces) }
191
191
  end
192
192
 
193
193
 
@@ -1,4 +1,4 @@
1
1
  # Redlics version.
2
2
  module Redlics
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redlics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Egon Zemmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-18 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool