Rakefile in tms-1.1.1.1 vs Rakefile in tms-1.1.2

- old
+ new

@@ -1,30 +1,25 @@ -begin - require 'jeweler' +require 'rubygems' +require 'rake' +require 'jeweler' +require 'rake/gem_ghost_task' +require 'rake/extensiontask' - name = 'tms' +name = 'tms' - Jeweler::Tasks.new do |gem| - gem.name = name - gem.summary = %Q{Time Machine Status} - gem.description = %Q{View avaliable Time Machine backups and show diff} - gem.homepage = "http://github.com/toy/#{name}" - gem.authors = ["Boba Fat"] - gem.add_dependency 'colored' - gem.add_dependency 'xattr' - gem.add_dependency 'mutter' - end - - Jeweler::GemcutterTasks.new - - require 'pathname' - desc "Replace system gem with symlink to this folder" - task 'ghost' do - gem_path = Pathname(Gem.searcher.find(name).full_gem_path) - current_path = Pathname('.').expand_path - system('rm', '-r', gem_path) - system('ln', '-s', current_path, gem_path) - end - -rescue LoadError - puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" +Jeweler::Tasks.new do |gem| + gem.name = name + gem.summary = %Q{Time Machine Status} + gem.description = %Q{View avaliable Time Machine backups and show diff} + gem.homepage = "http://github.com/toy/#{name}" + gem.license = 'MIT' + gem.authors = ['Boba Fat'] + gem.add_runtime_dependency 'colored' + gem.add_runtime_dependency 'xattr' + gem.add_runtime_dependency 'mutter' + gem.add_development_dependency 'jeweler', '~> 1.5.1' + gem.add_development_dependency 'rake-compiler' + gem.add_development_dependency 'rake-gem-ghost' end +Jeweler::RubygemsDotOrgTasks.new +Rake::GemGhostTask.new +Rake::ExtensionTask.new name