Sha256: b8c5a41b19f5033ab399ec5cf0429497da4c369ab0af10bf44922ad7bee2c6a8

Contents?: true

Size: 771 Bytes

Versions: 1

Compression:

Stored size: 771 Bytes

Contents

task :install do

  [ %q(chmod -R o+r .),
    %q(rm -f *.gem),
    %q(rm -rf build),
    %q(gem uninstall -quiet -a --executables warp-dir 2> /dev/null; true),
    %q(gem build warp-dir.gemspec)
  ].each do |command|
    sh command
  end

  sh <<-EOF.gsub(%r{^\s+}m, '')
    export gem_file=$(ls -1 *.gem | tail -1)
    export gem_name=${gem_file//.gem/}
    if [ "$(which ruby)" == "/usr/bin/ruby" ]; then
      gem install $gem_file -n /usr/local/bin --no-ri --no-rdoc
    else
      gem install $gem_file --no-ri --no-rdoc
    fi
  EOF
end

require 'bundler'
require "bundler/gem_tasks"
require 'rake/clean'

CLEAN.include %w(pkg coverage *.gem)

begin
  require 'rspec/core/rake_task'
  RSpec::Core::RakeTask.new(:spec)
rescue LoadError
end

task :default => [:spec]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
warp-dir-1.1.4 Rakefile