Rakefile in progress-1.1.0 vs Rakefile in progress-1.1.1
- old
+ new
@@ -1,34 +1,27 @@
-begin
- require 'jeweler'
+require 'rubygems'
+require 'rake'
+require 'jeweler'
+require 'rake/gem_ghost_task'
+require 'spec/rake/spectask'
- name = 'progress'
- summary = 'Show progress of long running tasks'
+name = 'progress'
- jewel = Jeweler::Tasks.new do |j|
- j.name = name
- j.summary = summary
- j.homepage = "http://github.com/toy/#{name}"
- j.authors = ["Boba Fat"]
- 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{Show progress of long running tasks}
+ gem.homepage = "http://github.com/toy/#{name}"
+ gem.license = 'MIT'
+ gem.authors = ['Boba Fat']
+ gem.add_development_dependency 'jeweler', '~> 1.5.1'
+ gem.add_development_dependency 'rake-gem-ghost'
+ gem.add_development_dependency 'rspec'
end
+Jeweler::RubygemsDotOrgTasks.new
+Rake::GemGhostTask.new
-require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
+ spec.spec_opts = ['--colour --format progress --loadby mtime --reverse']
spec.spec_files = FileList['spec/**/*_spec.rb']
end
task :default => :spec