appcast 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/README.txt +6 -5
- data/Rakefile +3 -3
- data/lib/appcast.rb +1 -1
- data/lib/appcast/handlers.rb +8 -0
- metadata +6 -6
data/History.txt
CHANGED
data/README.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
appcast
|
2
|
-
by
|
3
|
-
|
2
|
+
by Rick Olson
|
3
|
+
http://activereload.net
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
|
7
|
+
Simple mongrel-based messaging system using ActiveRecord
|
8
8
|
|
9
9
|
== FEATURES/PROBLEMS:
|
10
10
|
|
@@ -12,11 +12,12 @@ FIX (describe your package)
|
|
12
12
|
|
13
13
|
== SYNOPSIS:
|
14
14
|
|
15
|
-
|
15
|
+
Use mongrel_appcast, like the mongrel_rails command.
|
16
16
|
|
17
17
|
== REQUIREMENTS:
|
18
18
|
|
19
|
-
*
|
19
|
+
* mongrel
|
20
|
+
* activerecord
|
20
21
|
|
21
22
|
== INSTALL:
|
22
23
|
|
data/Rakefile
CHANGED
@@ -9,9 +9,9 @@ Hoe.new('appcast', Appcast::VERSION) do |p|
|
|
9
9
|
p.rubyforge_name = 'appcast'
|
10
10
|
p.author = ['Tobi Lütke', 'Rick Olson']
|
11
11
|
p.email = 'technoweenie@gmail.com'
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
p.summary = 'Simple mongrel-based messaging system using ActiveRecord'
|
13
|
+
p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
|
14
|
+
p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
|
15
15
|
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
|
16
16
|
p.extra_deps << 'mongrel'
|
17
17
|
p.extra_deps << 'builder'
|
data/lib/appcast.rb
CHANGED
data/lib/appcast/handlers.rb
CHANGED
@@ -13,6 +13,11 @@ module Appcast
|
|
13
13
|
def initialize
|
14
14
|
@guard = Mutex.new
|
15
15
|
end
|
16
|
+
|
17
|
+
protected
|
18
|
+
def pre_process
|
19
|
+
ActiveRecord::Base.verify_active_connections!
|
20
|
+
end
|
16
21
|
end
|
17
22
|
|
18
23
|
# Stats handler which just displays some
|
@@ -22,6 +27,7 @@ module Appcast
|
|
22
27
|
LINES = "%-30s %-8s\n"
|
23
28
|
|
24
29
|
def process(request, response)
|
30
|
+
pre_process
|
25
31
|
response.start do |h, out|
|
26
32
|
h['Content-Type'] = 'text/plain'
|
27
33
|
@guard.synchronize do
|
@@ -35,6 +41,7 @@ module Appcast
|
|
35
41
|
|
36
42
|
class QueueHandler < BaseHandler
|
37
43
|
def process(request, response)
|
44
|
+
pre_process
|
38
45
|
case request.method
|
39
46
|
when 'POST'
|
40
47
|
msg = nil
|
@@ -57,6 +64,7 @@ module Appcast
|
|
57
64
|
ID_SCANNER = /\/(\d+)$/.freeze
|
58
65
|
|
59
66
|
def process(request, response)
|
67
|
+
pre_process
|
60
68
|
id = request.path.scan(ID_SCANNER)[0].first
|
61
69
|
|
62
70
|
case request.method
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: appcast
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-
|
8
|
-
summary:
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2007-09-26 00:00:00 -07:00
|
8
|
+
summary: Simple mongrel-based messaging system using ActiveRecord
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: technoweenie@gmail.com
|
12
|
-
homepage:
|
12
|
+
homepage: " by Rick Olson"
|
13
13
|
rubyforge_project: appcast
|
14
|
-
description:
|
14
|
+
description: "== FEATURES/PROBLEMS: * FIX (list of features or problems) == SYNOPSIS: Use mongrel_appcast, like the mongrel_rails command. == REQUIREMENTS:"
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|