appcast 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == 1.0.1 / 2007-09-26
2
+
3
+ * Bug fix
4
+ * call ActiveRecord::Base.verify_active_connections! before each request
5
+
1
6
  == 1.0.0 / 2007-08-25
2
7
 
3
8
  * 1 major enhancement
data/README.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  appcast
2
- by FIX (your name)
3
- FIX (url)
2
+ by Rick Olson
3
+ http://activereload.net
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- FIX (describe your package)
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
- FIX (code sample of usage)
15
+ Use mongrel_appcast, like the mongrel_rails command.
16
16
 
17
17
  == REQUIREMENTS:
18
18
 
19
- * FIX (list of requirements)
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
- # p.summary = 'FIX'
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]
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'
@@ -38,7 +38,7 @@ require 'appcast/message'
38
38
  require 'appcast/handlers'
39
39
 
40
40
  module Appcast
41
- VERSION = '1.0.0'
41
+ VERSION = '1.0.1'
42
42
 
43
43
  def self.configure_database(config, log_file, log_level = nil)
44
44
  raise "Missing database config" if config.empty?
@@ -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
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.0
7
- date: 2007-08-26 00:00:00 -05:00
8
- summary: The author was too lazy to write a 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: http://www.zenspider.com/ZSS/Products/appcast/
12
+ homepage: " by Rick Olson"
13
13
  rubyforge_project: appcast
14
- description: The author was too lazy to write a 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