forked from threedaymonk/text
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move gemspec out of rake. Simplify Rakefile.
- Loading branch information
1 parent
643f95d
commit 55af084
Showing
2 changed files
with
16 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,8 @@ | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/packagetask' | ||
require 'rake/gempackagetask' | ||
require 'rcov/rcovtask' | ||
require 'rake/rdoctask' | ||
|
||
$:.unshift(File.dirname(__FILE__) + '/lib') | ||
require 'text/version' | ||
|
||
gemspec = Gem::Specification.new do |s| | ||
s.name = 'text' | ||
s.version = Text::VERSION::STRING | ||
s.summary = 'A collection of text algorithms' | ||
s.description = 'A collection of text algorithms: Levenshtein, Soundex, Metaphone, Double Metaphone, Figlet, Porter Stemming' | ||
s.files = FileList['{lib,test}/**/*', 'README.rdoc', 'Rakefile'] | ||
s.require_path = 'lib' | ||
s.has_rdoc = true | ||
s.extra_rdoc_files = %w[README.rdoc] | ||
s.rubyforge_project = 'text' | ||
s.homepage = 'http://github.com/threedaymonk/text' | ||
s.authors = ['Paul Battley', 'Michael Neumann', 'Tim Fletcher'] | ||
s.email = "pbattley@gmail.com" | ||
end | ||
|
||
Rake::GemPackageTask.new(gemspec) do |pkg| | ||
pkg.need_tar_gz = true | ||
end | ||
|
||
Rake::PackageTask.new(gemspec.name, gemspec.version) do |pkg| | ||
pkg.need_tar_gz = true | ||
pkg.package_files.include gemspec.files | ||
end | ||
|
||
Rake::TestTask.new do |t| | ||
t.verbose = false | ||
end | ||
|
||
Rcov::RcovTask.new do |t| | ||
t.rcov_opts = [] | ||
end | ||
|
||
Rake::RDocTask.new do |t| | ||
t.main = 'README.rdoc' | ||
t.rdoc_files.include 'README.rdoc', 'lib/**/*.rb' | ||
end | ||
|
||
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require File.expand_path('../lib/text/version', __FILE__) | ||
|
||
gemspec = Gem::Specification.new do |s| | ||
s.name = 'text' | ||
s.version = Text::VERSION::STRING | ||
s.summary = 'A collection of text algorithms' | ||
s.description = 'A collection of text algorithms: Levenshtein, Soundex, Metaphone, Double Metaphone, Figlet, Porter Stemming' | ||
s.files = FileList['{lib,test}/**/*', 'README.rdoc', 'Rakefile'] | ||
s.require_path = 'lib' | ||
s.has_rdoc = true | ||
s.extra_rdoc_files = %w[README.rdoc] | ||
s.rubyforge_project = 'text' | ||
s.homepage = 'http://github.com/threedaymonk/text' | ||
s.authors = ['Paul Battley', 'Michael Neumann', 'Tim Fletcher'] | ||
s.email = "pbattley@gmail.com" | ||
end |