cachew 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
- require "digest/md5"
2
- require "json"
1
+ require "digest/sha1"
3
2
 
4
3
  module Cachew
5
4
  # Base class for Cachew adapters.
@@ -72,7 +71,7 @@ module Cachew
72
71
 
73
72
  # :nodoc:
74
73
  def __key__(*args)
75
- Digest::MD5.hexdigest JSON.dump args
74
+ Digest::SHA1.hexdigest Marshal.dump args
76
75
  end
77
76
  end
78
77
  end
@@ -1,4 +1,4 @@
1
1
  module Cachew
2
2
  # Cachew version
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cachew
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -66,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  segments:
68
68
  - 0
69
- hash: 4155366000220806670
69
+ hash: 2775269040393156293
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
@@ -75,13 +75,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  segments:
77
77
  - 0
78
- hash: 4155366000220806670
78
+ hash: 2775269040393156293
79
79
  requirements: []
80
80
  rubyforge_project:
81
81
  rubygems_version: 1.8.23.2
82
82
  signing_key:
83
83
  specification_version: 3
84
- summary: cachew-0.2.0
84
+ summary: cachew-0.2.1
85
85
  test_files:
86
86
  - spec/lib/cachew/hash_spec.rb
87
87
  - spec/lib/cachew/null_spec.rb