Sha256: 7855247a0820459502c089d2de087c6073e064c2f53e685683f58a0146aa2293

Contents?: true

Size: 1.32 KB

Versions: 1

Compression:

Stored size: 1.32 KB

Contents

#!/usr/bin/env rake

require 'hoe'

Hoe.plugin :hg
Hoe.plugin :yard
Hoe.plugin :signing

Hoe.plugins.delete :rubyforge

hoespec = Hoe.spec 'treequel' do
	self.name = 'treequel'
	self.readme_file = 'README.md'

	self.developer 'Michael Granger', 'ged@FaerieMUD.org'
	self.developer 'Mahlon E. Smith', 'mahlon@martini.nu'

	self.extra_deps <<
		['ruby-ldap', '~> 0.9.11']
	self.extra_dev_deps <<
		['rspec', '~> 2.1.0'] <<
		['ruby-termios', '~> 0.9.6'] <<
		['ruby-terminfo', '~> 0.1.1'] <<
		['yard', '~> 0.6.1']

	self.spec_extras[:licenses] = ["BSD"]
	self.spec_extras[:post_install_message] = [
			"If you want to use the included 'treequel' LDAP shell, you'll need to install",
			"the following libraries as well:",
			"    - termios",
			"    - ruby-terminfo",
			"    - columnize",
		  ].join( "\n" )

	self.require_ruby_version( '>=1.8.7' )

	self.yard_title = 'Treequel'
	self.yard_opts = [ '--use-cache', '--protected', '--verbose' ]
end

ENV['VERSION'] ||= hoespec.spec.version.to_s

include Hoe::MercurialHelpers

### Task: prerelease
desc "Append the package build number to package versions"
task :pre do
	rev = get_numeric_rev()
	trace "Current rev is: %p" % [ rev ]
	hoespec.spec.version.version << "pre#{rev}"
	Rake::Task[:gem].clear

	Gem::PackageTask.new( hoespec.spec ) do |pkg|
		pkg.need_zip = true
		pkg.need_tar = true
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
treequel-1.2.1 Rakefile