famoseagle-sweat_shop 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -2
- data/Rakefile +1 -1
- data/VERSION.yml +1 -1
- data/install.rb +22 -0
- metadata +4 -4
data/README.markdown
CHANGED
@@ -6,7 +6,7 @@ Currently, it runs rabbitmq and kestrel, but it can support any number of queues
|
|
6
6
|
## Installing
|
7
7
|
|
8
8
|
gem install sweat_shop
|
9
|
-
freeze in your
|
9
|
+
freeze in your gems directory (add config.gem 'sweat_shop' to your environment)
|
10
10
|
cd vendor/gems/sweat_shop
|
11
11
|
rake setup
|
12
12
|
|
@@ -14,7 +14,7 @@ Currently, it runs rabbitmq and kestrel, but it can support any number of queues
|
|
14
14
|
|
15
15
|
Put `email_worker.rb` into app/workers and sublcass `SweatShop::Worker`:
|
16
16
|
|
17
|
-
class EmailWorker
|
17
|
+
class EmailWorker < SweatShop::Worker
|
18
18
|
def send_mail(to)
|
19
19
|
user = User.find_by_id(to)
|
20
20
|
Mailer.deliver_welcome(to)
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ begin
|
|
12
12
|
s.homepage = "http://github.com/famoseagle/sweat-shop"
|
13
13
|
s.description = "TODO"
|
14
14
|
s.authors = ["Amos Elliston"]
|
15
|
-
s.files = FileList["[A-Z]*", "{lib,test,config}/**/*"]
|
15
|
+
s.files = FileList["[A-Z]*", "install.rb", "{lib,test,config}/**/*"]
|
16
16
|
s.add_dependency('famoseagle-carrot', '= 0.7.0')
|
17
17
|
end
|
18
18
|
rescue LoadError
|
data/VERSION.yml
CHANGED
data/install.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
root = File.dirname(__FILE__)
|
3
|
+
|
4
|
+
unless defined?(RAILS_ROOT)
|
5
|
+
search_paths = %W{/.. /../.. /../../..}
|
6
|
+
search_paths.each do |path|
|
7
|
+
if File.exist?(root + path + '/config/environment.rb')
|
8
|
+
RAILS_ROOT = root + path
|
9
|
+
break
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
return unless RAILS_ROOT
|
14
|
+
|
15
|
+
config = 'sweatshop.yml'
|
16
|
+
script = 'sweatshop'
|
17
|
+
|
18
|
+
FileUtils.cp(File.join(root, 'config', config), File.join(RAILS_ROOT, 'config', config))
|
19
|
+
FileUtils.cp(File.join(root, 'script', script), File.join(RAILS_ROOT, 'script', script))
|
20
|
+
puts "\n\ninstalled #{ [config, script].join(", ") } \n\n"
|
21
|
+
|
22
|
+
puts IO.read(File.join(root, 'README.txt'))
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: famoseagle-sweat_shop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amos Elliston
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-02 00:00:00 -07:00
|
13
13
|
default_executable: sweatd
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -39,6 +39,7 @@ files:
|
|
39
39
|
- VERSION.yml
|
40
40
|
- config/defaults.yml
|
41
41
|
- config/sweatshop.yml
|
42
|
+
- install.rb
|
42
43
|
- lib/message_queue/base.rb
|
43
44
|
- lib/message_queue/kestrel.rb
|
44
45
|
- lib/message_queue/rabbit.rb
|
@@ -53,7 +54,6 @@ files:
|
|
53
54
|
- test/test_sweatshop.rb
|
54
55
|
has_rdoc: true
|
55
56
|
homepage: http://github.com/famoseagle/sweat-shop
|
56
|
-
licenses:
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options:
|
59
59
|
- --charset=UTF-8
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
requirements: []
|
75
75
|
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 1.
|
77
|
+
rubygems_version: 1.2.0
|
78
78
|
signing_key:
|
79
79
|
specification_version: 2
|
80
80
|
summary: SweatShop is a simple asynchronous worker queue build on top of rabbitmq/ampq
|