Sha256: f04b7e61d30e44d156f035a5e35f7af3f48fea84d56699d226c805e7b488df6f

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

# coding: utf-8
require 'bundler/gem_tasks'
require_relative 'lib/tools/version'

# Default.
task :default => :help

# Help.
desc 'Help'
task :help do
  system('rake -T')
end

desc 'Makes you a tools developer'
task :dev do
  if ENV['GEM_HOME'].nil?
    puts 'Environment variable GEM_HOME is empty, you should be using RVM for ths task to work.'
    exit(1)
  end

  Rake::Task['install'].invoke

  source = File.dirname(File.absolute_path __FILE__)
  target = "#{ENV['GEM_HOME']}/gems/tools-#{Tools::VERSION}"
  target_bin = "#{ENV['GEM_HOME']}/bin/tools"
  system("rm -f #{target_bin}")
  system("rm -rf #{target}")
  system("ln -s #{source} #{target}")
  system("ln -s #{source}/bin/tools #{target_bin}")

  puts 'You may now start editing and testing files from within this repo.'
end


desc "Release the gem in Artifactory (DEV)"
task :push do
  gem_file   = "#{ENV['PWD']}/pkg/workin-#{Workin::VERSION}.gem"
  gem_server_url = 'https://rubygems.org'
  system("gem push #{gem_file}  --host #{gem_server_url}")
end


desc "Run all minitests."
task :mini do
  system("./test/minitest/run")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tools-0.0.7 Rakefile
tools-0.0.6 Rakefile
tools-0.0.5 Rakefile