Who needs Jeweler?

This commit is contained in:
Samuel Cochran 2011-05-27 12:16:48 +08:00
parent 3ad06e148f
commit cbf6a77b5d
2 changed files with 32 additions and 116 deletions

View File

@ -1,43 +1,12 @@
require 'rubygems'
require 'rake'
require 'rdoc/task'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "mailcatcher"
gem.summary = %Q{Runs an SMTP server, catches and displays email in a web interface.}
gem.description = <<-EOD
MailCatcher runs a super simple SMTP server which catches any
message sent to it to display in a web interface. Run
mailcatcher, set your favourite app to deliver to
smtp://127.0.0.1:1025 instead of your default SMTP server,
then check out http://127.0.0.1:1080 to see the mail.
EOD
gem.email = "sj26@sj26.com"
gem.homepage = "http://github.com/sj26/mailcatcher"
gem.authors = ["Samuel Cochran"]
gem.add_dependency 'eventmachine'
gem.add_dependency 'mail'
gem.add_dependency 'sqlite3'
gem.add_dependency 'thin'
gem.add_dependency 'skinny', '>=0.1.2'
gem.add_dependency 'sinatra'
gem.add_dependency 'haml'
gem.add_dependency 'json'
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end
RDoc::Task.new do |rdoc|
version = File.read('VERSION')
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "MailCatcher #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/*.rb')
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end

View File

@ -1,84 +1,31 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
Gem::Specification.new do |s|
s.name = %q{mailcatcher}
s.version = "0.2.4"
s.name = "mailcatcher"
s.version = File.read(File.expand_path("../VERSION", __FILE__)).strip
s.summary = "Runs an SMTP server, catches and displays email in a web interface."
s.description = <<-END
MailCatcher runs a super simple SMTP server which catches any
message sent to it to display in a web interface. Run
mailcatcher, set your favourite app to deliver to
smtp://127.0.0.1:1025 instead of your default SMTP server,
then check out http://127.0.0.1:1080 to see the mail.
END
s.author = "Samuel Cochran"
s.email = "sj26@sj26.com"
s.homepage = "http://github.com/sj26/mailcatcher"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Samuel Cochran"]
s.date = %q{2011-05-10}
s.default_executable = %q{mailcatcher}
s.description = %q{ MailCatcher runs a super simple SMTP server which catches any
message sent to it to display in a web interface. Run
mailcatcher, set your favourite app to deliver to
smtp://127.0.0.1:1025 instead of your default SMTP server,
then check out http://127.0.0.1:1080 to see the mail.
}
s.email = %q{sj26@sj26.com}
s.executables = ["mailcatcher"]
s.extra_rdoc_files = [
"LICENSE",
"README.md"
]
s.files = [
"LICENSE",
"README.md",
"Rakefile",
"VERSION",
"bin/mailcatcher",
"contrib/mailcatcherd.bash",
"lib/mail_catcher.rb",
"lib/mail_catcher/events.rb",
"lib/mail_catcher/mail.rb",
"lib/mail_catcher/smtp.rb",
"lib/mail_catcher/web.rb",
"public/javascripts/application.js",
"public/javascripts/jquery.js",
"public/stylesheets/application.css",
"views/index.haml"
]
s.homepage = %q{http://github.com/sj26/mailcatcher}
s.files = Dir["README.md", "LICENSE", "bin/*", "lib/**/*.rb", "public/**/*", "views/**/*"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.6.2}
s.summary = %q{Runs an SMTP server, catches and displays email in a web interface.}
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q<eventmachine>, [">= 0"])
s.add_runtime_dependency(%q<mail>, [">= 0"])
s.add_runtime_dependency(%q<i18n>, [">= 0"])
s.add_runtime_dependency(%q<sqlite3-ruby>, [">= 0"])
s.add_runtime_dependency(%q<thin>, [">= 0"])
s.add_runtime_dependency(%q<skinny>, [">= 0.1.2"])
s.add_runtime_dependency(%q<sinatra>, [">= 0"])
s.add_runtime_dependency(%q<haml>, [">= 0"])
s.add_runtime_dependency(%q<json>, [">= 0"])
else
s.add_dependency(%q<eventmachine>, [">= 0"])
s.add_dependency(%q<mail>, [">= 0"])
s.add_dependency(%q<i18n>, [">= 0"])
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
s.add_dependency(%q<thin>, [">= 0"])
s.add_dependency(%q<skinny>, [">= 0.1.2"])
s.add_dependency(%q<sinatra>, [">= 0"])
s.add_dependency(%q<haml>, [">= 0"])
s.add_dependency(%q<json>, [">= 0"])
end
else
s.add_dependency(%q<eventmachine>, [">= 0"])
s.add_dependency(%q<mail>, [">= 0"])
s.add_dependency(%q<i18n>, [">= 0"])
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
s.add_dependency(%q<thin>, [">= 0"])
s.add_dependency(%q<skinny>, [">= 0.1.2"])
s.add_dependency(%q<sinatra>, [">= 0"])
s.add_dependency(%q<haml>, [">= 0"])
s.add_dependency(%q<json>, [">= 0"])
end
s.executables = ["mailcatcher"]
s.extra_rdoc_files = ["README.md", "LICENSE"]
s.add_dependency "activesupport", "~> 3.0"
s.add_dependency "eventmachine", "~> 0.12"
s.add_dependency "mail", "~> 2.3"
s.add_dependency "sqlite3", "~> 1.3"
s.add_dependency "thin", "~> 1.2"
s.add_dependency "skinny", "~> 0.1"
s.add_dependency "sinatra", "~> 1.2"
s.add_dependency "haml", "~> 3.1"
s.add_dependency "json", "~> 1.0"
end