Rakefile in thorero-0.9.4 vs Rakefile in thorero-0.9.4.1

- old
+ new

@@ -8,54 +8,60 @@ require Pathname('spec/rake/spectask') require Pathname('lib/extlib/version') ROOT = Pathname(__FILE__).dirname.expand_path -AUTHOR = "Test Test" -EMAIL = "test.test@gmail.com" - -PROJECT_NAME = "thorero" -PROJECT_URL = "http://thorero.rubyforge.org" -PROJECT_DESCRIPTION = PROJECT_SUMMARY = "Support Library for DataMapper and DataObjects" - -GEM_NAME = PROJECT_NAME -GEM_VERSION = Extlib::VERSION +AUTHOR = "Test test" +EMAIL = "test test@gmail.com" +GEM_NAME = "thorero" +GEM_VERSION = Extlib::VERSION GEM_DEPENDENCIES = [["english", ">=0.2.0"]] -GEM_EXTRAS = { :has_rdoc => false } +GEM_CLEAN = "*.gem", "**/.DS_Store" +GEM_EXTRAS = { :has_rdoc => false } -RUBY_FORGE_PROJECT = "release-task-playground" +PROJECT_NAME = "thorero" +PROJECT_URL = "http://thorero.rubyforge.org" +PROJECT_DESCRIPTION = PROJECT_SUMMARY = "test releases task" -PKG_NAME = GEM_NAME +RUBY_FORGE_PROJECT = "thorero" + +PKG_NAME = 'thorero' PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_VERSION = Extlib::VERSION + PKG_BUILD PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" RELEASE_NAME = "REL #{PKG_VERSION}" +RUBY_FORGE_USER = "webster132" -begin - require 'echoe' +require "lib/extlib/tasks/release" - Echoe.new(PROJECT_NAME, Extlib::VERSION) do |p| - p.rubyforge_name = PROJECT_NAME - - p.summary = PROJECT_SUMMARY - p.description = PROJECT_DESCRIPTION - p.url = PROJECT_URL - p.author = AUTHOR - p.email = EMAIL +spec = Gem::Specification.new do |s| + s.name = GEM_NAME + s.version = PKG_VERSION + s.platform = Gem::Platform::RUBY + s.author = AUTHOR + s.email = EMAIL + s.homepage = PROJECT_URL + s.summary = PROJECT_SUMMARY + s.description = PROJECT_DESCRIPTION + s.require_path = "lib" + s.files = ["LICENSE", "README.txt", "Rakefile"] + Dir["lib/**/*"] - # rdoc - p.has_rdoc = false - p.rdoc_pattern = /^(lib|bin|tasks|ext)|^README\.txt|^CHANGELOG|^TODO|^LICENSE$/ - - p.dependencies = ["english >=0.2.0"] - end + # rdoc + s.has_rdoc = false + s.extra_rdoc_files = ["LICENSE", "README.txt"] -rescue LoadError => boom - puts "You are missing a dependency required for meta-operations on this gem." - puts "#{boom.to_s.capitalize}." + # Dependencies + s.add_dependency "english", ">=0.2.0" end +Rake::GemPackageTask.new(spec) do |package| + package.gem_spec = spec +end + +############################################################################## +# Release +############################################################################## task :default => 'extlib:spec' task :spec => 'extlib:spec' desc 'Remove all package, docs and spec products'