Sha256: 8124e6ddccf446cd1fb32b27cde652505ec4f6ef45facb70ba8b2d6f9c8eb822

Contents?: true

Size: 964 Bytes

Versions: 3

Compression:

Stored size: 964 Bytes

Contents

begin
  require 'jeweler'

  name = 'progress'
  summary = 'Show progress of long running tasks'

  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
    cmd = gem_path.writable? && gem_path.parent.writable? ? %w() : %w(sudo)
    system(*cmd + %W[rm -r #{gem_path}])
    system(*cmd + %W[ln -s #{current_path} #{gem_path}])
  end

rescue LoadError
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
  spec.libs << 'lib' << 'spec'
  spec.spec_files = FileList['spec/**/*_spec.rb']
end
task :default => :spec

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
progress-0.2.2 Rakefile
progress-0.2.1 Rakefile
progress-0.2.0 Rakefile