Rakefile in gem_plugin-0.1 vs Rakefile in gem_plugin-0.2

- old
+ new

@@ -13,22 +13,28 @@ setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/**/*.rb', 'doc/**/*.rdoc'] desc "Does a full compile, test run" task :default => [:test, :package] -version="0.1" -summary = "A plugin system based only on rubygems" -test_file = "test/test_plugins.rb" -author="Zed A. Shaw" +version = "0.2" name="gem_plugin" -scripts=[] -setup_gem(name, version, author, summary, scripts, test_file) do |spec| - spec.autorequire = "gem_plugin" +setup_gem(name, version) do |spec| + spec.author="Zed A. Shaw" + spec.summary = "A plugin system based only on rubygems that uses dependencies only" + spec.description = spec.summary + spec.test_file = "test/test_plugins.rb" + spec.files += Dir.glob("resources/**/*") + spec.executables=["gpgen"] + spec.add_dependency("rake", ">= 0.7") end -task :gem_test => [:package] do - sh %{sudo gem install pkg/gem_plugin-#{version}} +task :install => [:test, :package] do + sh %{sudo gem install pkg/#{name}-#{version}} +end + +task :uninstall => [:clean] do + sh %{sudo gem uninstall #{name}} end task :site => [:rerdoc] do sh %{ scp -r doc/rdoc/* #{ENV['SSH_USER']}@rubyforge.org:/var/www/gforge-projects/mongrel/gem_plugin_rdoc/ } end