Rakefile in cjohansen-juicer-0.2.0 vs Rakefile in cjohansen-juicer-0.2.4
- old
+ new
@@ -4,24 +4,45 @@
begin
require 'bones'
Bones.setup
rescue LoadError
- load 'tasks/setup.rb'
+ begin
+ load 'tasks/setup.rb'
+ rescue LoadError
+ raise RuntimeError, '### please install the "bones" gem ###'
+ end
end
ensure_in_path 'lib'
require 'juicer'
+load 'tasks/test/setup.rake'
task :default => 'test:run'
PROJ.name = 'juicer'
PROJ.authors = 'Christian Johansen'
PROJ.email = 'christian@cjohansen.no'
PROJ.url = 'http://www.cjohansen.no/en/projects/juicer'
PROJ.version = Juicer::VERSION
PROJ.rubyforge.name = 'juicer'
PROJ.readme_file = 'Readme.rdoc'
+PROJ.exclude = %w(tmp$ bak$ ~$ CVS \.svn ^pkg ^doc \.git ^rcov ^test\/data gemspec ^test\/bin)
+PROJ.rdoc.remote_dir = 'juicer'
PROJ.spec.opts << '--color'
+PROJ.gem.extras[:post_install_message] = <<-MSG
+Juicer does not ship with third party libraries. You probably want to install
+Yui Compressor and JsLint now:
+
+juicer install yui_compressor
+juicer install jslint
+
+Happy juicing!
+MSG
+
+CLOBBER.include "test/data"
+
depend_on 'cmdparse'
+depend_on 'hpricot'
+depend_on 'rubyzip'