rediska 0.2.0 → 0.2.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
  SHA1:
3
- metadata.gz: 4ec9829d3cd104273bee44047fcf203d762013c8
4
- data.tar.gz: 61e479768ba49b7b1ab7d9def68c60ef8648fb24
3
+ metadata.gz: d811065f6f03e77263d9c9c5833097bc2a01387f
4
+ data.tar.gz: a9948edc10ac0bb717ac9841fcf7cab6d1335fa9
5
5
  SHA512:
6
- metadata.gz: 35d0a35359099b4dfa0efa37085a17d277155cbc2caaf67e92bc66d016a826a64eb64ddacc887912063a38e1fba410016e1e3a98b9aeaea56dc5716215280f1b
7
- data.tar.gz: a3b49dc3a061032054fc54123b5f3e3939cf7240555c10439333964a9aa5c1a532614d83d8833a0b25ea0243802c10a819f631f33083a033c55b48adb9272b1c
6
+ metadata.gz: 291a5e198167da6bde6fd8656022e184b949134dd1e08dfb4fd3e4f3791fbe6a54eef7c63fa3dfc23071233d2176b39a693d9c6f0f4f93cc9684daaba784b0b6
7
+ data.tar.gz: 26d405fff44681f4ba5e9cd1b645f1b63d213d2cd3a00049a9cbf27c5eb1bef51d4b6ac44363e087f3c6886c120afcd743480280728fd98b04b5628a49773444
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rediska (0.2.0)
4
+ rediska (0.2.1)
5
5
  redis (>= 3)
6
6
 
7
7
  GEM
@@ -19,9 +19,9 @@ GEM
19
19
  diff-lcs (1.2.5)
20
20
  docile (1.1.5)
21
21
  json (1.8.1)
22
- mime-types (2.3)
22
+ mime-types (2.4.3)
23
23
  multi_json (1.10.1)
24
- netrc (0.7.7)
24
+ netrc (0.8.0)
25
25
  rake (10.3.2)
26
26
  rdoc (4.1.2)
27
27
  json (~> 1.4)
@@ -35,15 +35,15 @@ GEM
35
35
  rspec-core (~> 3.1.0)
36
36
  rspec-expectations (~> 3.1.0)
37
37
  rspec-mocks (~> 3.1.0)
38
- rspec-core (3.1.4)
38
+ rspec-core (3.1.7)
39
39
  rspec-support (~> 3.1.0)
40
- rspec-expectations (3.1.1)
40
+ rspec-expectations (3.1.2)
41
41
  diff-lcs (>= 1.2.0, < 2.0)
42
42
  rspec-support (~> 3.1.0)
43
- rspec-mocks (3.1.1)
43
+ rspec-mocks (3.1.3)
44
44
  rspec-support (~> 3.1.0)
45
- rspec-support (3.1.0)
46
- sidekiq (3.2.5)
45
+ rspec-support (3.1.2)
46
+ sidekiq (3.2.6)
47
47
  celluloid (= 0.15.2)
48
48
  connection_pool (>= 2.0.0)
49
49
  json
data/README.md CHANGED
@@ -40,7 +40,7 @@ The gem will automatically add its fake driver to Redis::Connection.drivers, so
40
40
 
41
41
  ## Configuration
42
42
 
43
- ### Database type/strategy
43
+ ### Database Strategy
44
44
  Rediska supports the following database strategies:
45
45
 
46
46
  * Memory (:memory): the data is being stored entirely in the memory and is not persistent nor shared between different processed.
@@ -56,7 +56,7 @@ Rediska.configure do |config|
56
56
  end
57
57
  ```
58
58
 
59
- ### Adding namespace
59
+ ### Adding Namespace
60
60
 
61
61
  If you choose to use the filesystem backed database, you can append an additional namespace in order to prevent conflicts like so:
62
62
 
@@ -66,6 +66,117 @@ Rediska.configure do |config|
66
66
  end
67
67
  ```
68
68
 
69
+ ### Supported Redis Commands
70
+
71
+ * APPEND
72
+ * AUTH
73
+ * BITCOUNT
74
+ * BGSAVE
75
+ * BGREWRITEAOF
76
+ * DBSIZE
77
+ * DECR
78
+ * DECRBY
79
+ * DEL
80
+ * DISCARD
81
+ * DUMP
82
+ * ECHO
83
+ * EXEC
84
+ * EXISTS
85
+ * EXPIRE
86
+ * EXPIREAT
87
+ * FLUSHALL
88
+ * FLUSHDB
89
+ * GET
90
+ * GETBIT
91
+ * GETRANGE
92
+ * GETSET
93
+ * HDEL
94
+ * HEXISTS
95
+ * HGET
96
+ * HGETALL
97
+ * HINCRBY
98
+ * HINCRBYFLOAT
99
+ * HKEYS
100
+ * HLEN
101
+ * HMGET
102
+ * HMSET
103
+ * HSET
104
+ * HSETNX
105
+ * HVALS
106
+ * INCR
107
+ * INCRBY
108
+ * INFO
109
+ * KEYS
110
+ * LASTSAVE
111
+ * LINDEX
112
+ * LINSERT
113
+ * LLEN
114
+ * LPOP
115
+ * LRANGE
116
+ * LREM
117
+ * LSET
118
+ * LTRIM
119
+ * MGET
120
+ * MOVE
121
+ * MONITOR
122
+ * MSET
123
+ * MSETNX
124
+ * MULTI
125
+ * PERSIST
126
+ * PING
127
+ * RANDOMKEY
128
+ * RENAME
129
+ * RENAMENX
130
+ * RESTORE
131
+ * RPOP
132
+ * RPOPLPUSH
133
+ * RPUSH
134
+ * RPUSHX
135
+ * SADD
136
+ * SAVE
137
+ * SCAN
138
+ * SCARD
139
+ * SDIFF
140
+ * SDIFFSTORE
141
+ * SELECT
142
+ * SET
143
+ * SETEX
144
+ * SETBIT
145
+ * SETNX
146
+ * SETRANGE
147
+ * SINTER
148
+ * SINTERSTORE
149
+ * SISMEMBER
150
+ * SMEMBERS
151
+ * SMOVE
152
+ * SORT
153
+ * SPOP
154
+ * SRANDMEMBER
155
+ * SREM
156
+ * STRLEN
157
+ * SUNION
158
+ * SUNIONSTORE
159
+ * TIME
160
+ * TTL
161
+ * TYPE
162
+ * UNWATCH
163
+ * WATCH
164
+ * ZADD
165
+ * ZCARD
166
+ * ZCOUNT
167
+ * ZINCRBY
168
+ * ZINTERSTORE
169
+ * ZUNIONSTORE
170
+ * ZRANK
171
+ * ZRANGE
172
+ * ZRANGEBYSCORE
173
+ * ZREM
174
+ * ZREMRANGEBYRANK
175
+ * ZREVRANGE
176
+ * ZREVRANGEBYSCORE
177
+ * ZREVRANK
178
+ * ZSCORE
179
+
69
180
  ## Credits and Contributors
70
181
 
71
182
  This gem was inspired by (and originally forked from) the [fakeredis](https://github.com/guilleiguaran/fakeredis) gem.
@@ -75,7 +75,7 @@ module Rediska
75
75
  def bgrewriteaof
76
76
  end
77
77
 
78
- def move key, destination_id
78
+ def move(key, destination_id)
79
79
  raise Redis::CommandError, 'ERR source and destination objects are the same' if destination_id == database_id
80
80
  destination = find_database(destination_id)
81
81
  return false unless data.has_key?(key)
@@ -1,3 +1,3 @@
1
1
  module Rediska
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -139,8 +139,8 @@ shared_examples 'sorted sets' do
139
139
  expect(subject.zrange('key', 0, -1)).to eq(['one', 'two', 'three'])
140
140
  expect(subject.zrange('key', 1, 2)).to eq(['two', 'three'])
141
141
  expect(subject.zrange('key', 0, -1, with_scores: true)).to eq([['one', 1], ['two', 2], ['three', 3]])
142
- expect(subject.zrange('key', 1, 2, with_scores: true)).to eq([['two', 2], ['three', 3]])
143
- end
142
+ expect(subject.zrange('key', 1, 2, with_scores: true)).to eq([['two', 2], ['three', 3]])
143
+ end
144
144
 
145
145
  it 'should sort zrange results logically' do
146
146
  subject.zadd('key', 5, 'val2')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rediska
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonid Beder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis