redis-store 1.9.0 → 1.9.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: 476790788b3d0462db696bc3773a72c18b3f57f04db394e238bc849b04f6b54a
4
- data.tar.gz: 443eca0ff3f6acd16c696aadf4e8cb1c34edf213944d489d66fe6508a5ff2390
3
+ metadata.gz: f1313af60d82044041ee37781a16eb734332476e45ce6bc59d6c2ffa4e90c1d5
4
+ data.tar.gz: b17aa7cf4cc0439c2e1ee460dd15c4f16a43963370a742c9a3c9180dc970d5dc
5
5
  SHA512:
6
- metadata.gz: 104215ff505c8dd84b0baac16c99a75e117b33dafbc0f654f6f87acbf0fba1b0a1c34ce3e63530566f65289ca725a98b1e0a640cfc878f33e27fb51857a243df
7
- data.tar.gz: 49730d0bc9e9a1295aaa6b410cae27c58838f953a71fb6255c53e27dc4faa670b827effbe2d0f614d4d4dfbe5f91b333465c380db44475c466f261d534e2d91c
6
+ metadata.gz: ff9ea84a0b8daf75b59883ab6d2040a3726caaf43249d52661d1d9aa335ac2c25c7e53c351d45c81f2009b50a34d07bbe6a3d408d2701bdc7c7301959c2cb4dc
7
+ data.tar.gz: bccc369d3d57af1dcec02e1797b1e8527b3993c051c6ff3db60556638529630adbc3ba5a7b4d53b08ebe991f145abb7eaac37873fac734ca6c4bd6ec0ea31074
@@ -19,9 +19,9 @@ class Redis
19
19
 
20
20
  protected
21
21
  def setnx_with_expire(key, value, ttl, options = {})
22
- with_multi_or_pipelined(options) do
23
- setnx(key, value, :raw => true)
24
- expire(key, ttl)
22
+ with_multi_or_pipelined(options) do |transaction|
23
+ transaction.setnx(key, value, :raw => true)
24
+ transaction.expire(key, ttl)
25
25
  end
26
26
  end
27
27
 
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  class Store < self
3
- VERSION = '1.9.0'
3
+ VERSION = '1.9.1'
4
4
  end
5
5
  end
data/redis-store.gemspec CHANGED
@@ -13,8 +13,6 @@ Gem::Specification.new do |s|
13
13
  s.description = 'Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for Ruby web frameworks.'
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
16
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
17
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
16
  s.require_paths = ["lib"]
19
17
  s.license = 'MIT'
20
18
 
@@ -38,7 +38,7 @@ class MockRedis
38
38
  @setnxes << a
39
39
  end
40
40
 
41
- block.call
41
+ block.call(self)
42
42
  end
43
43
  end
44
44
  alias_method :pipelined, :multi
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luca Guidi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-22 00:00:00.000000000 Z
11
+ date: 2022-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -218,7 +218,7 @@ homepage: http://redis-store.org/redis-store
218
218
  licenses:
219
219
  - MIT
220
220
  metadata: {}
221
- post_install_message:
221
+ post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths:
224
224
  - lib
@@ -234,17 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  requirements: []
236
236
  rubygems_version: 3.1.2
237
- signing_key:
237
+ signing_key:
238
238
  specification_version: 4
239
239
  summary: Redis stores for Ruby frameworks
240
- test_files:
241
- - test/redis/distributed_store_test.rb
242
- - test/redis/store/factory_test.rb
243
- - test/redis/store/interface_test.rb
244
- - test/redis/store/namespace_test.rb
245
- - test/redis/store/redis_version_test.rb
246
- - test/redis/store/serialization_test.rb
247
- - test/redis/store/ttl_test.rb
248
- - test/redis/store/version_test.rb
249
- - test/redis/store_test.rb
250
- - test/test_helper.rb
240
+ test_files: []