backgroundrb-rails3 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +4 -2
- data/backgroundrb-rails3.gemspec +5 -3
- data/lib/backgroundrb/railtie.rb +1 -1
- data/lib/generators/backgroundrb/bdrb_migration/USAGE +5 -3
- data/lib/generators/backgroundrb/bdrb_migration/bdrb_migration_generator.rb +1 -1
- data/lib/generators/backgroundrb/bdrb_migration/templates/migration.rb +3 -3
- metadata +5 -8
data/Rakefile
CHANGED
@@ -118,9 +118,11 @@ Jeweler::Tasks.new do |gem|
|
|
118
118
|
gem.summary = %Q{BackgrounDRb is a Ruby job server and scheduler.}
|
119
119
|
gem.description = %Q{
|
120
120
|
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks.
|
121
|
-
Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.
|
121
|
+
Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.
|
122
|
+
This is the RoR 3 version (Railtie based) of the gem. Please read the GitHub homepage for installation instructions.
|
123
|
+
}
|
122
124
|
gem.email = "mtylty@gmail.com"
|
123
125
|
gem.authors = ["Matteo Latini"]
|
124
|
-
gem.version = "1.1.
|
126
|
+
gem.version = "1.1.3"
|
125
127
|
end
|
126
128
|
Jeweler::RubygemsDotOrgTasks.new
|
data/backgroundrb-rails3.gemspec
CHANGED
@@ -5,14 +5,16 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{backgroundrb-rails3}
|
8
|
-
s.version = "1.1.
|
8
|
+
s.version = "1.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Matteo Latini"]
|
12
|
-
s.date = %q{2010-12-
|
12
|
+
s.date = %q{2010-12-29}
|
13
13
|
s.description = %q{
|
14
14
|
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks.
|
15
|
-
Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.
|
15
|
+
Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.
|
16
|
+
This is the RoR 3 version (Railtie based) of the gem. Please read the GitHub homepage for installation instructions.
|
17
|
+
}
|
16
18
|
s.email = %q{mtylty@gmail.com}
|
17
19
|
s.extra_rdoc_files = [
|
18
20
|
"ChangeLog",
|
data/lib/backgroundrb/railtie.rb
CHANGED
@@ -35,7 +35,7 @@ module BackgrounDRb
|
|
35
35
|
end
|
36
36
|
BackgrounDRb::BDRB_CONFIG = config.bdrb.config
|
37
37
|
|
38
|
-
MiddleMan = BackgrounDRb::ClusterConnection.new if File.exists?(config_file)
|
38
|
+
::MiddleMan = BackgrounDRb::ClusterConnection.new if File.exists?(config_file)
|
39
39
|
end
|
40
40
|
|
41
41
|
rake_tasks do
|
@@ -1,12 +1,14 @@
|
|
1
1
|
Description:
|
2
2
|
Creates a migration to add the job queue table used by BackgrounDRb.
|
3
|
-
|
3
|
+
At present, the migration name is FIXED!
|
4
|
+
This is mainly because the ActiveRecord model's name for storing the
|
5
|
+
queues is fixed.
|
4
6
|
|
5
7
|
Example:
|
6
|
-
rails generate backgroundrb:bdrb_migration
|
8
|
+
rails generate backgroundrb:bdrb_migration
|
7
9
|
|
8
10
|
Assuming this is run at 09:00:15h on 12 September, 2008, this will create the
|
9
11
|
CreateBackgroundrbQueue migration in:
|
10
12
|
|
11
|
-
db/migrate/
|
13
|
+
db/migrate/20080912090015_backgroundrb_create_backgroundrb_queue_table.rb
|
12
14
|
|
@@ -8,7 +8,7 @@ module Backgroundrb
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def copy_backgroundrb_migration
|
11
|
-
migration_template "migration.rb", "db/migrate/
|
11
|
+
migration_template "migration.rb", "db/migrate/backgroundrb_create_backgroundrb_queue_table"
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class CreateBackgroundrbQueueTable < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
|
-
create_table
|
3
|
+
create_table :bdrb_job_queues do |t|
|
4
4
|
t.column :args, :text
|
5
5
|
t.column :worker_name, :string
|
6
6
|
t.column :worker_method, :string
|
@@ -22,6 +22,6 @@ class BackgroundrbCreate<%= table_name.camelize %> < ActiveRecord::Migration
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.down
|
25
|
-
drop_table
|
25
|
+
drop_table :bdrb_job_queues
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backgroundrb-rails3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Matteo Latini
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-29 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -98,10 +98,7 @@ dependencies:
|
|
98
98
|
name: jeweler
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: *id005
|
101
|
-
description:
|
102
|
-
|
103
|
-
BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks.
|
104
|
-
Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.
|
101
|
+
description: "\n BackgrounDRb is a Ruby job server and scheduler. Its main intent is to be used with Ruby on Rails applications for offloading long-running tasks. \n Since a Rails application blocks while serving a request it is best to move long-running tasks off into a background process that is divorced from http request/response cycle.\n This is the RoR 3 version (Railtie based) of the gem. Please read the GitHub homepage for installation instructions.\n "
|
105
102
|
email: mtylty@gmail.com
|
106
103
|
executables: []
|
107
104
|
|