cachew 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cachew/adapter.rb +2 -3
- data/lib/cachew/version.rb +1 -1
- metadata +4 -4
data/lib/cachew/adapter.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
require "digest/
|
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::
|
74
|
+
Digest::SHA1.hexdigest Marshal.dump args
|
76
75
|
end
|
77
76
|
end
|
78
77
|
end
|
data/lib/cachew/version.rb
CHANGED
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.
|
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:
|
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:
|
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.
|
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
|