background_cache 0.2.4 → 0.2.5

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.4'
9
+ s.version = '0.2.5'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ "Winton Welsh" ]
12
12
  s.email = [ "mail@wintoni.us" ]
@@ -42,5 +42,12 @@ module BackgroundCache
42
42
 
43
43
  response
44
44
  end
45
+
46
+ def queued
47
+ queues = @redis_2.keys 'background_cache:queue:*'
48
+ queues.collect do |q|
49
+ Hash[*eval(q['background_cache:queue:'.length..-1]).flatten]
50
+ end
51
+ end
45
52
  end
46
53
  end
@@ -15,7 +15,7 @@ module BackgroundCache
15
15
  options = YAML.load(File.read(yaml))
16
16
  else
17
17
  puts "\nFAIL: config/background_cache.yml not found"
18
- shutdown
18
+ shut_down
19
19
  end
20
20
 
21
21
  puts "\nStarting background cache server (redis @ #{options['redis']})..."
metadata CHANGED
@@ -1,79 +1,105 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: background_cache
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.4
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 5
10
+ version: 0.2.5
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Winton Welsh
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-03 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-11-03 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rails
16
- requirement: &70331331287780 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - =
20
- - !ruby/object:Gem::Version
25
+ requirements:
26
+ - - "="
27
+ - !ruby/object:Gem::Version
28
+ hash: 23
29
+ segments:
30
+ - 2
31
+ - 3
32
+ - 10
21
33
  version: 2.3.10
22
34
  type: :development
23
- prerelease: false
24
- version_requirements: *70331331287780
25
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
26
37
  name: rspec
27
- requirement: &70331331287300 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
41
+ requirements:
30
42
  - - ~>
31
- - !ruby/object:Gem::Version
32
- version: '1.0'
43
+ - !ruby/object:Gem::Version
44
+ hash: 15
45
+ segments:
46
+ - 1
47
+ - 0
48
+ version: "1.0"
33
49
  type: :development
34
- prerelease: false
35
- version_requirements: *70331331287300
36
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
37
52
  name: rack-test
38
- requirement: &70331331286900 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
39
55
  none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
44
63
  type: :runtime
45
- prerelease: false
46
- version_requirements: *70331331286900
47
- - !ruby/object:Gem::Dependency
64
+ version_requirements: *id003
65
+ - !ruby/object:Gem::Dependency
48
66
  name: redis
49
- requirement: &70331331286440 !ruby/object:Gem::Requirement
67
+ prerelease: false
68
+ requirement: &id004 !ruby/object:Gem::Requirement
50
69
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ hash: 3
74
+ segments:
75
+ - 0
76
+ version: "0"
55
77
  type: :runtime
56
- prerelease: false
57
- version_requirements: *70331331286440
58
- - !ruby/object:Gem::Dependency
78
+ version_requirements: *id004
79
+ - !ruby/object:Gem::Dependency
59
80
  name: yajl-ruby
60
- requirement: &70331331286020 !ruby/object:Gem::Requirement
81
+ prerelease: false
82
+ requirement: &id005 !ruby/object:Gem::Requirement
61
83
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ hash: 3
88
+ segments:
89
+ - 0
90
+ version: "0"
66
91
  type: :runtime
67
- prerelease: false
68
- version_requirements: *70331331286020
92
+ version_requirements: *id005
69
93
  description: Bust caches before your users do.
70
- email:
94
+ email:
71
95
  - mail@wintoni.us
72
- executables:
96
+ executables:
73
97
  - background_cache
74
98
  extensions: []
99
+
75
100
  extra_rdoc_files: []
76
- files:
101
+
102
+ files:
77
103
  - .gitignore
78
104
  - Gemfile
79
105
  - LICENSE
@@ -113,29 +139,38 @@ files:
113
139
  - tasks/background_cache.rake
114
140
  homepage: http://github.com/winton/background_cache
115
141
  licenses: []
142
+
116
143
  post_install_message:
117
144
  rdoc_options: []
118
- require_paths:
145
+
146
+ require_paths:
119
147
  - lib
120
- required_ruby_version: !ruby/object:Gem::Requirement
148
+ required_ruby_version: !ruby/object:Gem::Requirement
121
149
  none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- required_rubygems_version: !ruby/object:Gem::Requirement
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
127
158
  none: false
128
- requirements:
129
- - - ! '>='
130
- - !ruby/object:Gem::Version
131
- version: '0'
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ hash: 3
163
+ segments:
164
+ - 0
165
+ version: "0"
132
166
  requirements: []
167
+
133
168
  rubyforge_project:
134
- rubygems_version: 1.8.6
169
+ rubygems_version: 1.8.10
135
170
  signing_key:
136
171
  specification_version: 3
137
172
  summary: Bust caches before your users do
138
- test_files:
173
+ test_files:
139
174
  - spec/background_cache_spec.rb
140
175
  - spec/fixtures/rails/app/controllers/application_controller.rb
141
176
  - spec/fixtures/rails/app/helpers/application_helper.rb