Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 58 lines (44 sloc) 1.516 kb
ec8ae73 Aaron Patterson initial commit
authored
1 # -*- ruby -*-
2
3 require 'rubygems'
4 require 'hoe'
5
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
6 gem 'rake-compiler', '>= 0.4.1'
7 require "rake/extensiontask"
ec8ae73 Aaron Patterson initial commit
authored
8
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
9 Hoe.plugin :debugging, :doofus, :git
ec8ae73 Aaron Patterson initial commit
authored
10
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
11 Hoe.spec 'psych' do
12 developer 'Aaron Patterson', 'aaronp@rubyforge.org'
13 developer 'John Barnette', 'jbarnette@rubyforge.org'
ec8ae73 Aaron Patterson initial commit
authored
14
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
15 self.extra_rdoc_files = Dir['*.rdoc']
16 self.history_file = 'CHANGELOG.rdoc'
17 self.readme_file = 'README.rdoc'
2d31ee3 John Barnette Switch to MiniTest.
jbarnette authored
18 self.testlib = :minitest
ec8ae73 Aaron Patterson initial commit
authored
19
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
20 extra_dev_deps << ['rake-compiler', '>= 0.4.1']
21
35fb005 Aaron Patterson speed improvement
authored
22 self.spec_extras = { :extensions => ["ext/psych/extconf.rb"] }
23
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
24 Rake::ExtensionTask.new "psych", spec do |ext|
25 ext.lib_dir = File.join(*['lib', 'psych', ENV['FAT_DIR']].compact)
26 end
ec8ae73 Aaron Patterson initial commit
authored
27 end
28
3a922f6 Leonard CHIN Add "." to Hoe include_dirs for Ruby 1.9.2
l15n authored
29 Hoe.add_include_dirs('.')
30
724e4e1 John Barnette Rakefile and gitignore cleanup.
jbarnette authored
31 task :test => :compile
ec8ae73 Aaron Patterson initial commit
authored
32
c6b71d9 Aaron Patterson * Rakefile: adding a task to sync psych with ruby-trunk
authored
33 desc "merge psych in to ruby trunk"
fd0e3ca Aaron Patterson adding tasks to help merge back and forth to ruby
authored
34 namespace :merge do
c6b71d9 Aaron Patterson * Rakefile: adding a task to sync psych with ruby-trunk
authored
35 basedir = File.expand_path File.dirname __FILE__
36 rubydir = File.join ENV['HOME'], 'git', 'ruby'
fd0e3ca Aaron Patterson adding tasks to help merge back and forth to ruby
authored
37 mergedirs = {
c6b71d9 Aaron Patterson * Rakefile: adding a task to sync psych with ruby-trunk
authored
38 # From # To
39 [basedir, 'ext', 'psych/'] => [rubydir, 'ext', 'psych/'],
40 [basedir, 'lib', 'psych/'] => [rubydir, 'lib', 'psych/'],
41 [basedir, 'test', 'psych/'] => [rubydir, 'test', 'psych/'],
42 [basedir, 'lib', 'psych.rb'] => [rubydir, 'lib', 'psych.rb'],
fd0e3ca Aaron Patterson adding tasks to help merge back and forth to ruby
authored
43 }
44 task :to_ruby do
45 mergedirs.each do |from, to|
46 sh "rsync -av --delete #{File.join(*from)} #{File.join(*to)}"
47 end
48 end
49
50 task :from_ruby do
51 mergedirs.each do |from, to|
52 sh "rsync -av --delete #{File.join(*to)} #{File.join(*from)}"
53 end
c6b71d9 Aaron Patterson * Rakefile: adding a task to sync psych with ruby-trunk
authored
54 end
55 end
56
ec8ae73 Aaron Patterson initial commit
authored
57 # vim: syntax=ruby
Something went wrong with that request. Please try again.