CacheBar 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CacheBar.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{CacheBar}
8
- s.version = "1.0.0"
8
+ s.version = "1.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brian Landau", "David Eisinger"]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,8 +1,5 @@
1
1
  class Hash
2
2
  def require_keys(*valid_keys)
3
- unknown_keys = keys - [valid_keys].flatten
4
- raise(ArgumentError, "Unknown key(s): #{unknown_keys.join(", ")}") unless unknown_keys.empty?
5
-
6
3
  missing_keys = [valid_keys].flatten - keys
7
4
  raise(ArgumentError, "Missing some required keys: #{missing_keys.join(", ")}") unless missing_keys.empty?
8
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CacheBar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: redis
18
- requirement: &2156682440 !ruby/object:Gem::Requirement
18
+ requirement: &2152494480 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2156682440
26
+ version_requirements: *2152494480
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: redis-namespace
29
- requirement: &2156681960 !ruby/object:Gem::Requirement
29
+ requirement: &2152494000 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2156681960
37
+ version_requirements: *2152494000
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: httparty
40
- requirement: &2156681480 !ruby/object:Gem::Requirement
40
+ requirement: &2152493520 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 0.7.7
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2156681480
48
+ version_requirements: *2152493520
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: activesupport
51
- requirement: &2156672020 !ruby/object:Gem::Requirement
51
+ requirement: &2152493040 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '0'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2156672020
59
+ version_requirements: *2152493040
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: SystemTimer
62
- requirement: &2156671500 !ruby/object:Gem::Requirement
62
+ requirement: &2152492560 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2156671500
70
+ version_requirements: *2152492560
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: shoulda
73
- requirement: &2156671000 !ruby/object:Gem::Requirement
73
+ requirement: &2152492080 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0'
79
79
  type: :development
80
80
  prerelease: false
81
- version_requirements: *2156671000
81
+ version_requirements: *2152492080
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: bundler
84
- requirement: &2156670400 !ruby/object:Gem::Requirement
84
+ requirement: &2152491600 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ~>
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '1.0'
90
90
  type: :development
91
91
  prerelease: false
92
- version_requirements: *2156670400
92
+ version_requirements: *2152491600
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: jeweler
95
- requirement: &2156669900 !ruby/object:Gem::Requirement
95
+ requirement: &2152491120 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ~>
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: '1.6'
101
101
  type: :development
102
102
  prerelease: false
103
- version_requirements: *2156669900
103
+ version_requirements: *2152491120
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: rcov
106
- requirement: &2156669420 !ruby/object:Gem::Requirement
106
+ requirement: &2152490640 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: '0'
112
112
  type: :development
113
113
  prerelease: false
114
- version_requirements: *2156669420
114
+ version_requirements: *2152490640
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: webmock
117
- requirement: &2156668920 !ruby/object:Gem::Requirement
117
+ requirement: &2152490160 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: '0'
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2156668920
125
+ version_requirements: *2152490160
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: vcr
128
- requirement: &2156668320 !ruby/object:Gem::Requirement
128
+ requirement: &2152489680 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ! '>='
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: '0'
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156668320
136
+ version_requirements: *2152489680
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: mocha
139
- requirement: &2156667840 !ruby/object:Gem::Requirement
139
+ requirement: &2152489200 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: '0'
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *2156667840
147
+ version_requirements: *2152489200
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: rake
150
- requirement: &2156667360 !ruby/object:Gem::Requirement
150
+ requirement: &2152488720 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ~>
@@ -155,7 +155,7 @@ dependencies:
155
155
  version: 0.8.7
156
156
  type: :development
157
157
  prerelease: false
158
- version_requirements: *2156667360
158
+ version_requirements: *2152488720
159
159
  description: A simple API caching layer built on top of HTTParty and Redis
160
160
  email: brian.landau@viget.com
161
161
  executables: []
@@ -198,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  segments:
200
200
  - 0
201
- hash: -3416093338450689739
201
+ hash: 1378991500197492114
202
202
  required_rubygems_version: !ruby/object:Gem::Requirement
203
203
  none: false
204
204
  requirements: