|
42 | 42 |
|
43 | 43 | task :install => [ 'redis:install', 'dtach:install' ]
|
44 | 44 |
|
45 |
| -desc "Build a gem" |
46 |
| -task :gem => [ :test, :gemspec, :build ] |
47 |
| - |
48 | 45 | 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") |
83 | 48 | 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" |
86 | 51 | end
|
87 | 52 |
|
88 | 53 |
|
|
102 | 67 | #
|
103 | 68 |
|
104 | 69 | 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" |
111 | 77 | exec "rake pages"
|
112 | 78 | end
|
0 commit comments