memcache_mock 0.0.5 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.2
4
+ - 1.9.3
@@ -14,7 +14,7 @@ class MemcacheMock
14
14
  end
15
15
 
16
16
  def get( key )
17
- @values[key] ? @values[key].to_s : nil
17
+ @values.fetch(key, nil)
18
18
  end
19
19
 
20
20
  def get_multi( keys )
@@ -26,7 +26,7 @@ class MemcacheMock
26
26
  end
27
27
 
28
28
  def update( key, default, ttl = nil, options = nil )
29
- @values[key] = yield( @values[key] || default )
29
+ @values[key] = yield( @values.fetch(key, default ))
30
30
  end
31
31
 
32
32
  def append( key, value )
@@ -1,3 +1,3 @@
1
1
  class MemcacheMock
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,64 +1,62 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: memcache_mock
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.7
4
5
  prerelease:
5
- version: 0.0.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Fernando Guillen
9
9
  - Carlos Moutinho
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
-
14
- date: 2012-01-20 00:00:00 Z
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
13
+ date: 2012-01-26 00:00:00.000000000 +01:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
17
  name: bundler
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &2157273340 !ruby/object:Gem::Requirement
20
19
  none: false
21
- requirements:
22
- - - "="
23
- - !ruby/object:Gem::Version
20
+ requirements:
21
+ - - =
22
+ - !ruby/object:Gem::Version
24
23
  version: 1.0.21
25
24
  type: :development
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: rake
29
25
  prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *2157273340
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: &2157272840 !ruby/object:Gem::Requirement
31
30
  none: false
32
- requirements:
33
- - - "="
34
- - !ruby/object:Gem::Version
31
+ requirements:
32
+ - - =
33
+ - !ruby/object:Gem::Version
35
34
  version: 0.9.2.2
36
35
  type: :development
37
- version_requirements: *id002
38
- - !ruby/object:Gem::Dependency
39
- name: mocha
40
36
  prerelease: false
41
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ version_requirements: *2157272840
38
+ - !ruby/object:Gem::Dependency
39
+ name: mocha
40
+ requirement: &2157272380 !ruby/object:Gem::Requirement
42
41
  none: false
43
- requirements:
44
- - - "="
45
- - !ruby/object:Gem::Version
42
+ requirements:
43
+ - - =
44
+ - !ruby/object:Gem::Version
46
45
  version: 0.10.0
47
46
  type: :development
48
- version_requirements: *id003
47
+ prerelease: false
48
+ version_requirements: *2157272380
49
49
  description: Simple key/value mocked storage system
50
- email:
50
+ email:
51
51
  - fguillen.mail@gmail.com
52
52
  - carlosmoutinho@gmail.com
53
53
  executables: []
54
-
55
54
  extensions: []
56
-
57
55
  extra_rdoc_files: []
58
-
59
- files:
56
+ files:
60
57
  - .gitignore
61
58
  - .rvmrc.example
59
+ - .travis.yml
62
60
  - Gemfile
63
61
  - README.md
64
62
  - Rakefile
@@ -67,33 +65,31 @@ files:
67
65
  - memcache_mock.gemspec
68
66
  - test/memcache_mock_test.rb
69
67
  - test/test_helper.rb
68
+ has_rdoc: true
70
69
  homepage: https://github.com/fguillen/MemcacheMock
71
70
  licenses: []
72
-
73
71
  post_install_message:
74
72
  rdoc_options: []
75
-
76
- require_paths:
73
+ require_paths:
77
74
  - lib
78
- required_ruby_version: !ruby/object:Gem::Requirement
75
+ required_ruby_version: !ruby/object:Gem::Requirement
79
76
  none: false
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: "0"
84
- required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
82
  none: false
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: "0"
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
90
87
  requirements: []
91
-
92
88
  rubyforge_project: memcache_mock
93
- rubygems_version: 1.8.15
89
+ rubygems_version: 1.6.2
94
90
  signing_key:
95
91
  specification_version: 3
96
92
  summary: Simple key/value mocked storage system
97
- test_files:
93
+ test_files:
98
94
  - test/memcache_mock_test.rb
99
95
  - test/test_helper.rb