Skip to content

Commit 8a85950

Browse files
committed
Use mg
1 parent b9b5ec7 commit 8a85950

File tree

3 files changed

+54
-46
lines changed

3 files changed

+54
-46
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
*.gemspec
21
pkg
32
nbproject

Rakefile

Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -42,47 +42,12 @@ end
4242

4343
task :install => [ 'redis:install', 'dtach:install' ]
4444

45-
desc "Build a gem"
46-
task :gem => [ :test, :gemspec, :build ]
47-
4845
begin
49-
require 'jeweler'
50-
require 'resque/version'
51-
52-
Jeweler::Tasks.new do |gemspec|
53-
gemspec.name = "resque"
54-
gemspec.summary = "Resque is a Redis-backed queueing system."
55-
gemspec.email = "[email protected]"
56-
gemspec.homepage = "http://github.com/defunkt/resque"
57-
gemspec.authors = ["Chris Wanstrath"]
58-
gemspec.version = Resque::Version
59-
60-
gemspec.add_dependency "redis"
61-
gemspec.add_dependency "redis-namespace"
62-
gemspec.add_dependency "vegas", ">=0.1.2"
63-
gemspec.add_dependency "sinatra", ">=0.9.2"
64-
gemspec.add_development_dependency "jeweler"
65-
66-
gemspec.description = <<description
67-
Resque is a Redis-backed Ruby library for creating background jobs,
68-
placing those jobs on multiple queues, and processing them later.
69-
70-
Background jobs can be any Ruby class or module that responds to
71-
perform. Your existing classes can easily be converted to background
72-
jobs or you can create new classes specifically to do work. Or, you
73-
can do both.
74-
75-
Resque is heavily inspired by DelayedJob (which rocks) and is
76-
comprised of three parts:
77-
78-
* A Ruby library for creating, querying, and processing jobs
79-
* A Rake task for starting a worker which processes jobs
80-
* A Sinatra app for monitoring queues, jobs, and workers.
81-
description
82-
end
46+
require 'mg'
47+
MG.new("resque.gemspec")
8348
rescue LoadError
84-
puts "Jeweler not available. Install it with: "
85-
puts "gem install jeweler"
49+
warn "mg not available."
50+
warn "Install it with: gem i mg"
8651
end
8752

8853

@@ -102,11 +67,12 @@ end
10267
#
10368

10469
desc "Push a new version to Gemcutter"
105-
task :publish => [ :test, :gemspec, :build ] do
106-
system "git tag v#{Resque::Version}"
107-
system "git push origin v#{Resque::Version}"
108-
system "git push origin master"
109-
system "gem push pkg/resque-#{Resque::Version}.gem"
110-
system "git clean -fd"
70+
task :publish => "gem:publish" do
71+
require 'resque/version'
72+
73+
sh "git tag v#{Resque::Version}"
74+
sh "git push origin v#{Resque::Version}"
75+
sh "git push origin master"
76+
sh "git clean -fd"
11177
exec "rake pages"
11278
end

resque.gemspec

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
require 'resque/version'
2+
3+
Gem::Specification.new do |s|
4+
s.name = "resque"
5+
s.version = Resque::Version
6+
s.date = Time.now.strftime('%Y-%m-%d')
7+
s.summary = "Resque is a Redis-backed queueing system."
8+
s.homepage = "http://github.com/defunkt/mustache"
9+
s.email = "[email protected]"
10+
s.authors = [ "Chris Wanstrath" ]
11+
12+
s.files = %w( README.md Rakefile LICENSE )
13+
s.files += Dir.glob("lib/**/*")
14+
s.files += Dir.glob("bin/**/*")
15+
s.files += Dir.glob("man/**/*")
16+
s.files += Dir.glob("test/**/*")
17+
s.executables = [ "resque", "resque-web" ]
18+
19+
s.extra_rdoc_files = [ "LICENSE", "README.markdown" ]
20+
s.rdoc_options = ["--charset=UTF-8"]
21+
22+
s.add_dependency "redis"
23+
s.add_dependency "redis-namespace"
24+
s.add_dependency "vegas", ">= 0.1.2"
25+
s.add_dependency "sinatra", ">= 0.9.2"
26+
27+
s.description = <<description
28+
Resque is a Redis-backed Ruby library for creating background jobs,
29+
placing those jobs on multiple queues, and processing them later.
30+
31+
Background jobs can be any Ruby class or module that responds to
32+
perform. Your existing classes can easily be converted to background
33+
jobs or you can create new classes specifically to do work. Or, you
34+
can do both.
35+
36+
Resque is heavily inspired by DelayedJob (which rocks) and is
37+
comprised of three parts:
38+
39+
* A Ruby library for creating, querying, and processing jobs
40+
* A Rake task for starting a worker which processes jobs
41+
* A Sinatra app for monitoring queues, jobs, and workers.
42+
description
43+
end

0 commit comments

Comments
 (0)