Permalink
Browse files

Use mg

  • Loading branch information...
1 parent b9b5ec7 commit 8a859509249be93d60b9f03b2f124a68b660c8f0 @defunkt defunkt committed Apr 9, 2010
Showing with 54 additions and 46 deletions.
  1. +0 −1 .gitignore
  2. +11 −45 Rakefile
  3. +43 −0 resque.gemspec
View
1 .gitignore
@@ -1,3 +1,2 @@
-*.gemspec
pkg
nbproject
View
56 Rakefile
@@ -42,47 +42,12 @@ end
task :install => [ 'redis:install', 'dtach:install' ]
-desc "Build a gem"
-task :gem => [ :test, :gemspec, :build ]
-
begin
- require 'jeweler'
- require 'resque/version'
-
- Jeweler::Tasks.new do |gemspec|
- gemspec.name = "resque"
- gemspec.summary = "Resque is a Redis-backed queueing system."
- gemspec.email = "chris@ozmm.org"
- gemspec.homepage = "http://github.com/defunkt/resque"
- gemspec.authors = ["Chris Wanstrath"]
- gemspec.version = Resque::Version
-
- gemspec.add_dependency "redis"
- gemspec.add_dependency "redis-namespace"
- gemspec.add_dependency "vegas", ">=0.1.2"
- gemspec.add_dependency "sinatra", ">=0.9.2"
- gemspec.add_development_dependency "jeweler"
-
- gemspec.description = <<description
- Resque is a Redis-backed Ruby library for creating background jobs,
- placing those jobs on multiple queues, and processing them later.
-
- Background jobs can be any Ruby class or module that responds to
- perform. Your existing classes can easily be converted to background
- jobs or you can create new classes specifically to do work. Or, you
- can do both.
-
- Resque is heavily inspired by DelayedJob (which rocks) and is
- comprised of three parts:
-
- * A Ruby library for creating, querying, and processing jobs
- * A Rake task for starting a worker which processes jobs
- * A Sinatra app for monitoring queues, jobs, and workers.
-description
- end
+ require 'mg'
+ MG.new("resque.gemspec")
rescue LoadError
- puts "Jeweler not available. Install it with: "
- puts "gem install jeweler"
+ warn "mg not available."
+ warn "Install it with: gem i mg"
end
@@ -102,11 +67,12 @@ end
#
desc "Push a new version to Gemcutter"
-task :publish => [ :test, :gemspec, :build ] do
- system "git tag v#{Resque::Version}"
- system "git push origin v#{Resque::Version}"
- system "git push origin master"
- system "gem push pkg/resque-#{Resque::Version}.gem"
- system "git clean -fd"
+task :publish => "gem:publish" do
+ require 'resque/version'
+
+ sh "git tag v#{Resque::Version}"
+ sh "git push origin v#{Resque::Version}"
+ sh "git push origin master"
+ sh "git clean -fd"
exec "rake pages"
end
View
43 resque.gemspec
@@ -0,0 +1,43 @@
+require 'resque/version'
+
+Gem::Specification.new do |s|
+ s.name = "resque"
+ s.version = Resque::Version
+ s.date = Time.now.strftime('%Y-%m-%d')
+ s.summary = "Resque is a Redis-backed queueing system."
+ s.homepage = "http://github.com/defunkt/mustache"
+ s.email = "chris@ozmm.org"
+ s.authors = [ "Chris Wanstrath" ]
+
+ s.files = %w( README.md Rakefile LICENSE )
+ s.files += Dir.glob("lib/**/*")
+ s.files += Dir.glob("bin/**/*")
+ s.files += Dir.glob("man/**/*")
+ s.files += Dir.glob("test/**/*")
+ s.executables = [ "resque", "resque-web" ]
+
+ s.extra_rdoc_files = [ "LICENSE", "README.markdown" ]
+ s.rdoc_options = ["--charset=UTF-8"]
+
+ s.add_dependency "redis"
+ s.add_dependency "redis-namespace"
+ s.add_dependency "vegas", ">= 0.1.2"
+ s.add_dependency "sinatra", ">= 0.9.2"
+
+ s.description = <<description
+ Resque is a Redis-backed Ruby library for creating background jobs,
+ placing those jobs on multiple queues, and processing them later.
+
+ Background jobs can be any Ruby class or module that responds to
+ perform. Your existing classes can easily be converted to background
+ jobs or you can create new classes specifically to do work. Or, you
+ can do both.
+
+ Resque is heavily inspired by DelayedJob (which rocks) and is
+ comprised of three parts:
+
+ * A Ruby library for creating, querying, and processing jobs
+ * A Rake task for starting a worker which processes jobs
+ * A Sinatra app for monitoring queues, jobs, and workers.
+description
+end

0 comments on commit 8a85950

Please sign in to comment.