memcache_mock 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,4 +57,7 @@ class MemcacheMock
57
57
  def flush_all
58
58
  flush
59
59
  end
60
+
61
+ def touch(key, ttl = nil)
62
+ end
60
63
  end
@@ -1,3 +1,3 @@
1
1
  class MemcacheMock
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.13"
3
3
  end
@@ -90,4 +90,9 @@ class MemcacheMockTest < Test::Unit::TestCase
90
90
  @cache.delete( "key" )
91
91
  assert_nil( @cache.get( "key" ) )
92
92
  end
93
+
94
+ def test_touch
95
+ @cache.touch("key")
96
+ @cache.touch("key", 60)
97
+ end
93
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memcache_mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-11-20 00:00:00.000000000Z
13
+ date: 2012-11-26 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
17
- requirement: &70282321103440 !ruby/object:Gem::Requirement
17
+ requirement: &70178050682660 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.0.21
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70282321103440
25
+ version_requirements: *70178050682660
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rake
28
- requirement: &70282321102940 !ruby/object:Gem::Requirement
28
+ requirement: &70178050682160 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - =
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.9.2.2
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70282321102940
36
+ version_requirements: *70178050682160
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: mocha
39
- requirement: &70282321102480 !ruby/object:Gem::Requirement
39
+ requirement: &70178050681700 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - =
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 0.10.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *70282321102480
47
+ version_requirements: *70178050681700
48
48
  description: Simple key/value mocked storage system
49
49
  email:
50
50
  - fguillen.mail@gmail.com