background_cache 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "background_cache"
9
- s.version = '0.2.3'
9
+ s.version = '0.2.4'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ "Winton Welsh" ]
12
12
  s.email = [ "mail@wintoni.us" ]
@@ -36,7 +36,7 @@ module BackgroundCache
36
36
  request = Yajl::Parser.parse(request)
37
37
  channel = request.delete('channel')
38
38
 
39
- cache_key = request.to_a.sort { |a, b| a.first <=> b.first }.inspect
39
+ cache_key = 'background_cache:queue:' + request.to_a.sort { |a, b| a.first <=> b.first }.inspect
40
40
 
41
41
  request.keys.each do |key|
42
42
  request[(key.to_sym rescue key) || key] = request.delete(key)
metadata CHANGED
@@ -1,105 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: background_cache
3
- version: !ruby/object:Gem::Version
4
- hash: 17
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.4
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 3
10
- version: 0.2.3
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Winton Welsh
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-10-25 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-03 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: rails
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &70331331287780 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - "="
27
- - !ruby/object:Gem::Version
28
- hash: 23
29
- segments:
30
- - 2
31
- - 3
32
- - 10
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
33
21
  version: 2.3.10
34
22
  type: :development
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
23
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *70331331287780
25
+ - !ruby/object:Gem::Dependency
26
+ name: rspec
27
+ requirement: &70331331287300 !ruby/object:Gem::Requirement
40
28
  none: false
41
- requirements:
29
+ requirements:
42
30
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
49
33
  type: :development
50
- version_requirements: *id002
51
- - !ruby/object:Gem::Dependency
52
- name: rack-test
53
34
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *70331331287300
36
+ - !ruby/object:Gem::Dependency
37
+ name: rack-test
38
+ requirement: &70331331286900 !ruby/object:Gem::Requirement
55
39
  none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
63
44
  type: :runtime
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: redis
67
45
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *70331331286900
47
+ - !ruby/object:Gem::Dependency
48
+ name: redis
49
+ requirement: &70331331286440 !ruby/object:Gem::Requirement
69
50
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
77
55
  type: :runtime
78
- version_requirements: *id004
79
- - !ruby/object:Gem::Dependency
80
- name: yajl-ruby
81
56
  prerelease: false
82
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *70331331286440
58
+ - !ruby/object:Gem::Dependency
59
+ name: yajl-ruby
60
+ requirement: &70331331286020 !ruby/object:Gem::Requirement
83
61
  none: false
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- hash: 3
88
- segments:
89
- - 0
90
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
91
66
  type: :runtime
92
- version_requirements: *id005
67
+ prerelease: false
68
+ version_requirements: *70331331286020
93
69
  description: Bust caches before your users do.
94
- email:
70
+ email:
95
71
  - mail@wintoni.us
96
- executables:
72
+ executables:
97
73
  - background_cache
98
74
  extensions: []
99
-
100
75
  extra_rdoc_files: []
101
-
102
- files:
76
+ files:
103
77
  - .gitignore
104
78
  - Gemfile
105
79
  - LICENSE
@@ -139,38 +113,29 @@ files:
139
113
  - tasks/background_cache.rake
140
114
  homepage: http://github.com/winton/background_cache
141
115
  licenses: []
142
-
143
116
  post_install_message:
144
117
  rdoc_options: []
145
-
146
- require_paths:
118
+ require_paths:
147
119
  - lib
148
- required_ruby_version: !ruby/object:Gem::Requirement
120
+ required_ruby_version: !ruby/object:Gem::Requirement
149
121
  none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 3
154
- segments:
155
- - 0
156
- version: "0"
157
- required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
127
  none: false
159
- requirements:
160
- - - ">="
161
- - !ruby/object:Gem::Version
162
- hash: 3
163
- segments:
164
- - 0
165
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
166
132
  requirements: []
167
-
168
133
  rubyforge_project:
169
- rubygems_version: 1.8.10
134
+ rubygems_version: 1.8.6
170
135
  signing_key:
171
136
  specification_version: 3
172
137
  summary: Bust caches before your users do
173
- test_files:
138
+ test_files:
174
139
  - spec/background_cache_spec.rb
175
140
  - spec/fixtures/rails/app/controllers/application_controller.rb
176
141
  - spec/fixtures/rails/app/helpers/application_helper.rb