Sha256: f421d2b66ad6cc4210852c46785f5c1395c7213c7d646cb43826a38a62ae264c

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

#!/usr/bin/env rake
# encoding: UTF-8
require "bundler/gem_tasks"
require 'rspec/core/rake_task'
require 'pathname'

RSpec::Core::RakeTask.new(:spec)
task :default => :spec

task :binstubs do
  Pathname.glob('libexec/*.sh').each do |script|
    name = script.basename('.sh').to_s
    next if name == 'git-whistles'

    puts "bin/git-whistles -> bin/#{name}"
    FileUtils.remove_file("bin/#{name}")
    FileUtils.copy_file('bin/git-whistles', "bin/#{name}")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git-whistles-1.4.2 Rakefile
git-whistles-1.4 Rakefile
git-whistles-1.3 Rakefile
git-whistles-1.2.1 Rakefile