acts_as_hashish 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,6 +50,7 @@ module Hashish
50
50
  data = o.to_json
51
51
  prefix = @options[:key_prefix]
52
52
  key = hashish_get_key(o)
53
+ hashish_delete(key)
53
54
  raise "Error: Computed data key as '#{key}'. Only alphanumeric characters and underscore allowed!" unless key.to_s =~ /^[\w_]+$/
54
55
  Hashish.redis_connection.multi do
55
56
  Hashish.redis_connection.zadd("#{prefix}*", t , "#{prefix}@#{key}")
@@ -1,3 +1,3 @@
1
1
  module Hashish
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: acts_as_hashish
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.0
5
+ version: 0.4.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Schubert Cardozo