# Rakefile for RubyGems -*- ruby -*- require 'rubygems' require 'rake' require './lib/zip/version.rb' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = 'rzip' gem.version = Zip::VERSION gem.summary = 'rzip is a Ruby library for reading and writing Zip files' gem.description = 'rzip is a supported fork of rubyzip that supports Ruby 1.9 and other modern features' gem.email = 'alan@aussiegeek.net' gem.homepage = 'http://github.com/postmodern/rubyzip2' gem.authors = ['Alan Harper', 'Postmodern', 'Thomas Sondergaard'] gem.files = FileList[ 'README.txt', 'NEWS.txt', 'TODO.txt', 'ChangeLog.txt', 'Rakefile', 'lib/zip.rb', 'lib/zip/ioextras.rb', 'lib/zip/stdrubyext.rb', 'lib/zip/tempfile_bugfixed.rb', 'lib/zip/zip.rb', 'lib/zip/zipfilesystem.rb', 'lib/zip/ziprequire.rb', 'lib/zip/version.rb', 'samples/example.rb', 'samples/example_filesystem.rb', 'samples/gtk_zip.rb', 'samples/qt_zip.rb', 'samples/write_simple.rb', 'samples/zipfind.rb', 'test/alltests.rb', 'test/data/file1.txt', 'test/data/file1.txt.deflatedData', 'test/data/file2.txt', 'test/data/notzippedruby.rb', 'test/data/rubycode.zip', 'test/data/rubycode2.zip', 'test/data/testDirectory.bin', 'test/data/zipWithDirs.zip', ] # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end require 'rake/testtask' Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end task :test => :check_dependencies task :default => :test