Rakefile in clipboard-0.9.5 vs Rakefile in clipboard-0.9.6

- old
+ new

@@ -1,9 +1,10 @@ require 'rake' require 'rake/rdoctask' require 'fileutils' +task :test => :spec task :default => :spec require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) do |t| t.rspec_opts = '--backtrace --color' end @@ -11,11 +12,11 @@ def gemspec @gemspec ||= eval(File.read('clipboard.gemspec'), binding, 'clipboard.gemspec') end desc "Build the gem" -task :gem=>:gemspec do +task :gem => :gemspec do sh "gem build clipboard.gemspec" FileUtils.mkdir_p 'pkg' FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg' end @@ -29,9 +30,10 @@ puts gemspec.to_ruby end desc "Validate the gemspec" task :gemspec do + require 'rubygems/user_interaction' # rubygems 1.5.0 gemspec.validate end Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION').chomp : ""