summaryrefslogtreecommitdiff
path: root/Rakefile
blob: 7068c401eda357ae31dbc0ac4779829828cd1dad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- ruby -*-

require 'rubygems'
require 'hoe'

gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"

Hoe.plugin :debugging, :doofus, :git

Hoe.spec 'psych' do
  developer 'Aaron Patterson', 'aaronp@rubyforge.org'
  developer 'John Barnette',   'jbarnette@rubyforge.org'

  self.extra_rdoc_files  = Dir['*.rdoc']
  self.history_file      = 'CHANGELOG.rdoc'
  self.readme_file       = 'README.rdoc'
  self.testlib           = :minitest

  extra_dev_deps << ['rake-compiler', '>= 0.4.1']

  self.spec_extras = { :extensions => ["ext/psych/extconf.rb"] }

  Rake::ExtensionTask.new "psych", spec do |ext|
    ext.lib_dir = File.join(*['lib', 'psych', ENV['FAT_DIR']].compact)
  end
end

task :test => :compile

# vim: syntax=ruby