Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e85abdd73c
Fetching contributors…

Cannot retrieve contributors at this time

69 lines (54 sloc) 1.655 kb
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/runtest'
PROJECT_NAME = 'midilib'
RDOC_DIR = 'html'
PKG_FILES = FileList[ 'ChangeLog', 'Credits', 'Rakefile',
'README.rdoc', 'TODO.rdoc',
'examples/**/*',
'html/**/*',
'install.rb',
'lib/**/*.rb',
'test/**/*']
task :default => [:package]
spec = Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = PROJECT_NAME
s.version = `ruby -Ilib -e 'require "midilib/info"; puts MIDI::Version'`.strip
s.requirements << 'none'
s.require_path = 'lib'
s.files = PKG_FILES.to_a
s.has_rdoc = true
s.rdoc_options << '--main' << 'README.rdoc'
s.extra_rdoc_files = ['README.rdoc', 'TODO.rdoc']
s.author = 'Jim Menard'
s.email = 'jim@jimmenard.com'
s.homepage = 'http://github.com/jimm/midilib'
s.rubyforge_project = PROJECT_NAME
s.summary = "MIDI file and event manipulation library"
s.description = <<EOF
midilib is a pure Ruby MIDI library useful for reading and
writing standard MIDI files and manipulating MIDI event data.
EOF
end
# Creates a :package task (also named :gem). Also useful are :clobber_package
# and :repackage.
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
# creates an "rdoc" task
Rake::RDocTask.new do | rd |
rd.main = 'README.rdoc'
rd.title = PROJECT_NAME
rd.rdoc_files.include('README.rdoc', 'TODO.rdoc', 'lib/**/*.rb')
end
task :publish => [:rdoc, :package] do
system "gem push"
end
task :test do
Rake::run_tests
end
task :clean => [:clobber_rdoc, :clobber_package]
Jump to Line
Something went wrong with that request. Please try again.