Rakefile in adhearsion-0.8.1 vs Rakefile in adhearsion-0.8.2

- old
+ new

@@ -116,5 +116,12 @@ gemspec = File.read('adhearsion.gemspec') spec = nil Thread.new { spec = eval("$SAFE = 3\n#{gemspec}") }.join puts "SUCCESS: Gemspec runs at the $SAFE level 3." end + +desc 'Install the package as a gem.' +task :install_gem => [:clobber_package, :package] do + windows = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM + gem = Dir['pkg/*.gem'].first + sh "#{'sudo ' unless windows}gem install --local #{gem}" +end