Rakefile in fairchild-poolparty-1.2.12 vs Rakefile in fairchild-poolparty-1.3.5
- old
+ new
@@ -1,10 +1,10 @@
require 'config/requirements'
begin
require 'hanna/rdoctask'
-rescue Exception => e
+rescue LoadError => e
require "rake/rdoctask"
end
require 'config/jeweler' # setup gem configuration
@@ -24,37 +24,23 @@
%w(pkg).each do |dir|
FileUtils.rm_rf("#{File.dirname(__FILE__)}/#{dir}") if ::File.exists?("#{File.dirname(__FILE__)}/#{dir}")
end
end
-desc "Packge with timestamp"
-task :update_timestamp do
- data = open("PostInstall.txt").read
- str = "Updated at #{Time.now.strftime("%H:%M %D")}"
-
- if data.scan(/Updated at/).empty?
- data = data ^ {:updated_at => str}
- else
- data = data.gsub(/just installed PoolParty\!(.*)$/, "just installed PoolParty! (#{str})")
- end
- ::File.open("PostInstall.txt", "w+") {|f| f << data }
-end
namespace :gem do
task(:build).prerequisites.unshift :gemspec # Prepend the gemspec generation
- desc "Build the gem only if the specs pass"
- task :test_then_build => [:spec, :build]
+ desc "Build the gem only if the tests pass"
+ task :test_then_build => [:test, :build]
- desc "Build and install the gem only if the specs pass"
- task :test_then_install => [:spec, :install]
+ desc "Build and install the gem only if the tests pass"
+ task :test_then_install => [:test, :install]
end
-task :release => [:update_timestamp]
-
# Generate documentation
Rake::RDocTask.new do |rd|
- rd.main = "Readme.txt"
- rd.rdoc_files.include("Readme.txt", "lib/**/*.rb")
+ rd.main = "README.rdoc"
+ rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
rd.rdoc_dir = "rdoc"
# rd.template = "hanaa"
end
\ No newline at end of file