From 16cc8101cb35996ccbee2336bce9056d5e034c1d Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Fri, 17 Sep 2010 15:05:43 +1000 Subject: [PATCH] whoops. fix Rakefile refs to my other plugin #cargocult --- Rakefile | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index 4a17287..ad3bdcd 100644 --- a/Rakefile +++ b/Rakefile @@ -5,9 +5,27 @@ require 'rubygems/specification' require 'rspec/core/rake_task' require 'lib/validates_timeliness/version' -GEM_NAME = "active_enum" +GEM_NAME = "validates_timeliness" GEM_VERSION = ValidatesTimeliness::VERSION +spec = Gem::Specification.new do |s| + s.name = GEM_NAME + s.version = GEM_VERSION + s.platform = Gem::Platform::RUBY + s.rubyforge_project = "validates_timeliness" + s.has_rdoc = true + s.extra_rdoc_files = ["README.rdoc", "LICENSE", "CHANGELOG"] + s.summary = %q{Date and time validation plugin for Rails which allows custom formats} + s.description = s.summary + s.author = "Adam Meehan" + s.email = "adam.meehan@gmail.com" + s.homepage = "http://github.com/adzap/validates_timeliness" + + s.require_path = 'lib' + s.autorequire = GEM_NAME + s.files = %w(validates_timeliness.gemspec LICENSE CHANGELOG README.rdoc Rakefile) + Dir.glob("{lib,spec}/**/*") +end + desc 'Default: run specs.' task :default => :spec @@ -25,7 +43,7 @@ end desc 'Generate documentation for plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'ActiveEnum' + rdoc.title = 'ValidatesTimeliness' rdoc.options << '--line-numbers' << '--inline-source' rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('lib/**/*.rb') @@ -36,7 +54,7 @@ task :install => [:package] do sh %{gem install pkg/#{GEM_NAME}-#{GEM_VERSION}} end -desc "create a gemspec file" +desc "Create a gemspec file" task :make_spec do File.open("#{GEM_NAME}.gemspec", "w") do |file| file.puts spec.to_ruby