Sha256: 4ec406ffbb8545ee094c992c9407b2eac1af63f7f4cd4429a922d516f49e9bfb

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rbconfig'
include Config

desc 'Install the win32-file-stat package (non-gem)'
task :install do
   sitelibdir = CONFIG['sitelibdir']
   installdir = sitelibdir + '/win32/file'
   basedir = File.dirname(installdir)
   file = 'lib\win32\file\stat.rb'
   
   Dir.mkdir(basedir) unless File.exists?(basedir)
   Dir.mkdir(installdir) unless File.exists?(installdir)
   FileUtils.cp(file, installdir, :verbose => true)
end

desc 'Install the win32-file-stat package as a gem'
task :install_gem do
   ruby 'win32-file-stat.gemspec'
   file = Dir["win32-file-stat*.gem"].first
   sh "gem install #{file}"
end

Rake::TestTask.new do |t|
   t.verbose = true
   t.warning = true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
win32-file-stat-1.2.8 Rakefile
win32-file-stat-1.3.0 Rakefile
win32-file-stat-1.3.1 Rakefile
win32-file-stat-1.3.2 Rakefile