Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 72 lines (54 sloc) 1.811 kB
ec8ae73 @tenderlove initial commit
authored
1 # -*- ruby -*-
2
3 require 'rubygems'
4 require 'hoe'
5
432ae1b @tenderlove adding hoe hacks to run tests without warnings
authored
6 class Hoe
7 remove_const :RUBY_FLAGS
8 RUBY_FLAGS = "-I#{%w(lib ext bin test).join(File::PATH_SEPARATOR)}"
9 end
10
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
11 gem 'rake-compiler', '>= 0.4.1'
12 require "rake/extensiontask"
ec8ae73 @tenderlove initial commit
authored
13
7aad593 @tenderlove * ext/psych/parser.c (parse): parse method can take an option file
authored
14 Hoe.plugin :doofus, :git, :gemspec, :isolate
ec8ae73 @tenderlove initial commit
authored
15
45dd295 @tenderlove add a test to munge the spec for inclusion in ruby-trunk
authored
16 $hoe = Hoe.spec 'psych' do
95fc907 @tenderlove syncing with ruby trunk
authored
17 developer 'Aaron Patterson', 'aaron@tenderlovemaking.com'
ec8ae73 @tenderlove initial commit
authored
18
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
19 self.extra_rdoc_files = Dir['*.rdoc']
20 self.history_file = 'CHANGELOG.rdoc'
21 self.readme_file = 'README.rdoc'
2d31ee3 @jbarnette Switch to MiniTest.
jbarnette authored
22 self.testlib = :minitest
ec8ae73 @tenderlove initial commit
authored
23
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
24 extra_dev_deps << ['rake-compiler', '>= 0.4.1']
25
1a5609f @tenderlove synching with ruby trunk
authored
26 self.spec_extras = {
27 :extensions => ["ext/psych/extconf.rb"],
28 :required_ruby_version => '>= 1.9.2'
29 }
35fb005 @tenderlove speed improvement
authored
30
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
31 Rake::ExtensionTask.new "psych", spec do |ext|
1a5609f @tenderlove synching with ruby trunk
authored
32 ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
33 end
ec8ae73 @tenderlove initial commit
authored
34 end
35
774977e @tenderlove implementing some deprecated api methods
authored
36 Hoe.add_include_dirs('.:lib/psych')
3a922f6 @l15n Add "." to Hoe include_dirs for Ruby 1.9.2
l15n authored
37
724e4e1 @jbarnette Rakefile and gitignore cleanup.
jbarnette authored
38 task :test => :compile
ec8ae73 @tenderlove initial commit
authored
39
45dd295 @tenderlove add a test to munge the spec for inclusion in ruby-trunk
authored
40 task :hack_spec do
41 $hoe.spec.extra_rdoc_files.clear
42 end
43 task 'core:spec' => [:hack_spec, 'gem:spec']
44
c6b71d9 @tenderlove * Rakefile: adding a task to sync psych with ruby-trunk
authored
45 desc "merge psych in to ruby trunk"
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
46 namespace :merge do
c6b71d9 @tenderlove * Rakefile: adding a task to sync psych with ruby-trunk
authored
47 basedir = File.expand_path File.dirname __FILE__
48 rubydir = File.join ENV['HOME'], 'git', 'ruby'
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
49 mergedirs = {
c6b71d9 @tenderlove * Rakefile: adding a task to sync psych with ruby-trunk
authored
50 # From # To
30f5307 @tenderlove fixing ruby sync
authored
51 [basedir, 'ext', 'psych/'] => [rubydir, 'ext', 'psych/'],
52 [basedir, 'lib/'] => [rubydir, 'ext', 'psych', 'lib/'],
53 [basedir, 'test', 'psych/'] => [rubydir, 'test', 'psych/'],
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
54 }
bd165cb @tenderlove do not sync extconf.rb
authored
55
675ba5b @tenderlove updating merge task
authored
56 rsync = 'rsync -av --exclude extconf.rb --exclude lib --exclude ".*" --exclude "*.o" --exclude Makefile --exclude mkmf.log --delete'
bd165cb @tenderlove do not sync extconf.rb
authored
57
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
58 task :to_ruby do
59 mergedirs.each do |from, to|
bd165cb @tenderlove do not sync extconf.rb
authored
60 sh "#{rsync} #{File.join(*from)} #{File.join(*to)}"
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
61 end
62 end
63
64 task :from_ruby do
65 mergedirs.each do |from, to|
bd165cb @tenderlove do not sync extconf.rb
authored
66 sh "#{rsync} #{File.join(*to)} #{File.join(*from)}"
fd0e3ca @tenderlove adding tasks to help merge back and forth to ruby
authored
67 end
c6b71d9 @tenderlove * Rakefile: adding a task to sync psych with ruby-trunk
authored
68 end
69 end
70
ec8ae73 @tenderlove initial commit
authored
71 # vim: syntax=ruby
Something went wrong with that request. Please try again.