sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit a6e6b04f20d574080b9f6a85286405673abc3b8b
parent 3da9737c6877314123597be0c9ebe2d861f2e472
Author: Whyme Lyu <callme5long@gmail.com>
Date:   Wed,  1 May 2013 20:48:37 +0800

Move gemspec from Rakefile to sup.gemspec

Diffstat:
M .gitignore | 3 ++-
M Rakefile | 33 ++-------------------------------
A sup.gemspec | 31 +++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 32 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -2,8 +2,9 @@
 *.swp
 # i use emacs
 *~
-# i use rake package task
+# artifact
 pkg/
+*.gem
 # i have accidently added this one one too many times
 sup-exception-log.txt
 
diff --git a/Rakefile b/Rakefile
@@ -7,40 +7,11 @@ Rake::TestTask.new(:test) do |test|
   test.verbose = true
 end
 
-$:.push "lib"
 require 'rubygems/package_task'
 
-unless Kernel.respond_to?(:require_relative)
-  require "./sup-files"
-  require "./sup-version"
-else
-  require_relative "sup-files"
-  require_relative "sup-version"
-end
-
-spec = Gem::Specification.new do |s|
-  s.name = %q{sup}
-  s.version = SUP_VERSION
-  s.date = Time.now.strftime "%Y-%m-%d"
-  s.authors = ["William Morgan"]
-  s.email   = "sup-talk@rubyforge.org"
-  s.summary = %q{A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.}
-  s.homepage = %q{https://github.com/sup-heliotrope/sup/wiki}
-  s.description = %q{Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact-list management, and more. If you're the type of person who treats email as an extension of your long-term memory, Sup is for you.  Sup makes it easy to: - Handle massive amounts of email.  - Mix email from different sources: mbox files (even across different machines), Maildir directories, POP accounts, and GMail accounts.  - Instantaneously search over your entire email collection. Search over body text, or use a query language to combine search predicates in any way.  - Handle multiple accounts. Replying to email sent to a particular account will use the correct SMTP server, signature, and from address.  - Add custom code to handle certain types of messages or to handle certain types of text within messages.  - Organize email with user-defined labels, automatically track recent contacts, and much more!  The goal of Sup is to become the email client of choice for nerds everywhere.}
-  s.files = SUP_FILES
-  s.executables = SUP_EXECUTABLES
-
-  s.add_dependency "xapian-full-alaveteli", "~> 1.2"
-  s.add_dependency "ncursesw-sup", "~> 1.3", ">= 1.3.1"
-  s.add_dependency "rmail", ">= 0.17"
-  s.add_dependency "highline"
-  s.add_dependency "trollop", ">= 1.12"
-  s.add_dependency "lockfile"
-  s.add_dependency "mime-types", "~> 1"
-  s.add_dependency "gettext"
-end
+load "sup.gemspec"
 
-Gem::PackageTask.new(spec) do |pkg|
+Gem::PackageTask.new(Redwood::Gemspec) do |pkg|
     pkg.need_tar = true
 end
 
diff --git a/sup.gemspec b/sup.gemspec
@@ -0,0 +1,31 @@
+unless Kernel.respond_to?(:require_relative)
+  require "./sup-files"
+  require "./sup-version"
+else
+  require_relative "sup-files"
+  require_relative "sup-version"
+end
+
+module Redwood
+  Gemspec = Gem::Specification.new do |s|
+    s.name = %q{sup}
+    s.version = SUP_VERSION
+    s.date = Time.now.strftime "%Y-%m-%d"
+    s.authors = ["William Morgan"]
+    s.email   = "sup-talk@rubyforge.org"
+    s.summary = %q{A console-based email client with the best features of GMail, mutt, and emacs. Features full text search, labels, tagged operations, multiple buffers, recent contacts, and more.}
+    s.homepage = %q{https://github.com/sup-heliotrope/sup/wiki}
+    s.description = %q{Sup is a console-based email client for people with a lot of email. It supports tagging, very fast full-text search, automatic contact-list management, and more. If you're the type of person who treats email as an extension of your long-term memory, Sup is for you.  Sup makes it easy to: - Handle massive amounts of email.  - Mix email from different sources: mbox files (even across different machines), Maildir directories, POP accounts, and GMail accounts.  - Instantaneously search over your entire email collection. Search over body text, or use a query language to combine search predicates in any way.  - Handle multiple accounts. Replying to email sent to a particular account will use the correct SMTP server, signature, and from address.  - Add custom code to handle certain types of messages or to handle certain types of text within messages.  - Organize email with user-defined labels, automatically track recent contacts, and much more!  The goal of Sup is to become the email client of choice for nerds everywhere.}
+    s.files = SUP_FILES
+    s.executables = SUP_EXECUTABLES
+
+    s.add_dependency "xapian-full-alaveteli", "~> 1.2"
+    s.add_dependency "ncursesw-sup", "~> 1.3", ">= 1.3.1"
+    s.add_dependency "rmail", ">= 0.17"
+    s.add_dependency "highline"
+    s.add_dependency "trollop", ">= 1.12"
+    s.add_dependency "lockfile"
+    s.add_dependency "mime-types", "~> 1"
+    s.add_dependency "gettext"
+  end
+end