require 'rubygems' require 'rbconfig' Gem::Specification.new do |gem| gem.name = 'ptools' gem.version = '1.2.2' gem.license = 'Artistic 2.0' gem.author = 'Daniel J. Berger' gem.email = 'djberg96@gmail.com' gem.homepage = 'http://www.rubyforge.org/projects/shards' gem.summary = 'Extra methods for the File class' gem.test_files = Dir['test/test*'] gem.files = Dir['**/*'] << '.gemtest' gem.rubyforge_project = 'shards' gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST'] gem.description = <<-EOF The ptools (power tools) library provides several handy methods to Ruby's core File class, such as File.which for finding executables, File.null to return the null device on your platform, and so on. EOF gem.add_development_dependency('test-unit', '>= 2.4.0') if File::ALT_SEPARATOR gem.platform = Gem::Platform.new(['universal', 'mingw32']) gem.add_dependency('win32-file', '>= 0.5.4') end end