asynchronic 1.6.1 → 1.6.2

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: d7fb4fd2b230671121e3549ba81e3c1992fdd1a1
4
- data.tar.gz: fcf4f6568ada9b633b9c79df8e4454341eddfeb0
3
+ metadata.gz: 1a894f32132a0a511bd83773c446ce495de49f44
4
+ data.tar.gz: 9b6702827151e7bc0ade84a66edd372122a92f8c
5
5
  SHA512:
6
- metadata.gz: 9c52c72ca2da582331203903c69b2943537e4cad741eb9f1271e08c14310433c636c66d459347f45bf6f8ca2f4b96f41a76fa9d6bcbad12036da8e1c1bc58355
7
- data.tar.gz: 658d807dfbc86c9751a13b0d50dbfbec2758c190108ab6e0fc084bf0c3a31420b91aff1aff33907a740ea8c25c03076322f4fb04ccaf71439bfe216b90d513d6
6
+ metadata.gz: 56a7b05b1cd4bf276d1793c91fee9a4cdbb2832ac6605369e23c8ab123a258f4e13023ba30544dae38bf33d6833ea8ca91018da98995a7f1b130acd6bc7baa2b
7
+ data.tar.gz: 0a354c88eef225439e81a0ac3ee659cb733aa7f74a1d6550f686b4410a2a7a0b5b964b195872ea4778777885ba147e91619faea17ea2609b0ae7c568fa25e338
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.3.0
1
+ ruby-2.4.0
@@ -12,11 +12,11 @@ module Asynchronic
12
12
  end
13
13
 
14
14
  def [](key)
15
- @hash[key.to_s]
15
+ Marshal.load(@hash[key.to_s]) if @hash.key? key.to_s
16
16
  end
17
17
 
18
18
  def []=(key, value)
19
- @mutex.synchronize { @hash[key.to_s] = value }
19
+ @mutex.synchronize { @hash[key.to_s] = Marshal.dump(value) }
20
20
  end
21
21
 
22
22
  def delete(key)
@@ -1,3 +1,3 @@
1
1
  module Asynchronic
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asynchronic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-29 00:00:00.000000000 Z
11
+ date: 2019-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -290,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
290
290
  version: '0'
291
291
  requirements: []
292
292
  rubyforge_project:
293
- rubygems_version: 2.5.1
293
+ rubygems_version: 2.6.8
294
294
  signing_key:
295
295
  specification_version: 4
296
296
  summary: DSL for asynchronic pipeline using queues over Redis