Use gem extensions to freeze Haml root on install

This commit is contained in:
Joshua Peek 2010-03-20 22:03:25 -05:00
parent fa51997970
commit bb43b1304b
2 changed files with 4 additions and 0 deletions

3
ext/extconf.rb Normal file
View File

@ -0,0 +1,3 @@
File.open('Makefile', 'w') do |f|
f.puts("install:\n\trake freeze_root")
end

View File

@ -47,6 +47,7 @@ HAML_GEMSPEC = Gem::Specification.new do |spec|
spec.files = FileList['rails/init.rb', 'lib/**/*', 'vendor/**/*',
'bin/*', 'test/**/*', 'extra/**/*', 'Rakefile', 'init.rb',
'.yardopts'].to_a + readmes
spec.extensions = ['ext/extconf.rb']
spec.homepage = 'http://haml-lang.com/'
spec.has_rdoc = true
spec.extra_rdoc_files = readmes