pigeon 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -42,6 +42,8 @@ class Pigeon::Processor
42
42
  @lock.synchronize do
43
43
  if (!@task and @filter.call(task))
44
44
  @task = queue.claim(task)
45
+
46
+ before_task(@task)
45
47
 
46
48
  @task.run!(self) do
47
49
  switch_to_next_task!
@@ -94,6 +96,7 @@ protected
94
96
  if (@queue)
95
97
  if (@task = @queue.pop(&@filter))
96
98
  before_task(@task)
99
+
97
100
  @task.run!(self) do
98
101
  switch_to_next_task!
99
102
  end
data/pigeon.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{pigeon}
8
- s.version = "0.5.1"
8
+ s.version = "0.5.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tadman"]
12
- s.date = %q{2011-03-01}
12
+ s.date = %q{2011-04-07}
13
13
  s.default_executable = %q{launcher.example}
14
14
  s.description = %q{Pigeon is a simple way to get started building an EventMachine engine that's intended to run as a background job.}
15
15
  s.email = %q{github@tadman.ca}
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
54
54
  ]
55
55
  s.homepage = %q{http://github.com/twg/pigeon}
56
56
  s.require_paths = ["lib"]
57
- s.rubygems_version = %q{1.5.2}
57
+ s.rubygems_version = %q{1.6.0}
58
58
  s.summary = %q{Simple daemonized EventMachine engine framework with plug-in support}
59
59
  s.test_files = [
60
60
  "test/helper.rb",
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pigeon
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.1
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - tadman
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-01 00:00:00 -05:00
13
+ date: 2011-04-07 00:00:00 -04:00
14
14
  default_executable: launcher.example
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements: []
91
91
 
92
92
  rubyforge_project:
93
- rubygems_version: 1.5.3
93
+ rubygems_version: 1.6.0
94
94
  signing_key:
95
95
  specification_version: 3
96
96
  summary: Simple daemonized EventMachine engine framework with plug-in support