2008-04-29 01:54:31 -07:00
|
|
|
require 'rubygems'
|
|
|
|
|
2009-04-29 22:30:29 -07:00
|
|
|
# Note that Haml's gem-compilation process requires access to the filesystem.
|
|
|
|
# This means that it cannot be automatically run by e.g. GitHub's gem system.
|
|
|
|
# However, a build server automatically packages the master branch
|
|
|
|
# every time it's pushed to; this is made available as the haml-edge gem.
|
2008-04-24 21:35:30 -07:00
|
|
|
HAML_GEMSPEC = Gem::Specification.new do |spec|
|
2009-04-29 16:52:57 -07:00
|
|
|
spec.rubyforge_project = 'haml'
|
2010-02-28 16:50:33 -08:00
|
|
|
spec.name = File.exist?(File.dirname(__FILE__) + '/EDGE_GEM_VERSION') ? 'haml-edge' : 'haml'
|
2008-04-24 21:35:30 -07:00
|
|
|
spec.summary = "An elegant, structured XHTML/XML templating engine.\nComes with Sass, a similar CSS templating engine."
|
2010-02-28 16:50:33 -08:00
|
|
|
spec.version = File.read(File.dirname(__FILE__) + '/VERSION').strip
|
2010-05-11 19:51:33 -07:00
|
|
|
spec.authors = ['Nathan Weizenbaum', 'Chris Eppstein', 'Hampton Catlin']
|
2008-04-24 21:35:30 -07:00
|
|
|
spec.email = 'haml@googlegroups.com'
|
|
|
|
spec.description = <<-END
|
|
|
|
Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
|
|
|
|
that's designed to express the structure of XHTML or XML documents
|
|
|
|
in a non-repetitive, elegant, easy way,
|
|
|
|
using indentation rather than closing tags
|
|
|
|
and allowing Ruby to be embedded with ease.
|
|
|
|
It was originally envisioned as a plugin for Ruby on Rails,
|
|
|
|
but it can function as a stand-alone templating engine.
|
|
|
|
END
|
|
|
|
|
2010-01-17 16:23:29 -08:00
|
|
|
spec.add_development_dependency 'yard', '>= 0.5.3'
|
2009-07-04 15:56:32 -07:00
|
|
|
spec.add_development_dependency 'maruku', '>= 0.5.9'
|
|
|
|
|
2010-08-15 13:01:59 -07:00
|
|
|
readmes = Dir['*'].reject{ |x| x =~ /(^|[^.a-z])[a-z]+/ || x == "TODO" }
|
2010-03-31 00:27:15 -07:00
|
|
|
spec.executables = ['haml', 'html2haml', 'sass', 'css2sass', 'sass-convert']
|
2010-08-15 13:01:59 -07:00
|
|
|
spec.files = Dir['rails/init.rb', 'lib/**/*', 'vendor/**/*',
|
2010-02-06 13:04:03 -08:00
|
|
|
'bin/*', 'test/**/*', 'extra/**/*', 'Rakefile', 'init.rb',
|
2010-08-15 13:01:59 -07:00
|
|
|
'.yardopts'] + readmes
|
2009-11-28 15:17:33 -08:00
|
|
|
spec.homepage = 'http://haml-lang.com/'
|
2008-04-24 21:35:30 -07:00
|
|
|
spec.has_rdoc = true
|
|
|
|
spec.extra_rdoc_files = readmes
|
|
|
|
spec.rdoc_options += [
|
|
|
|
'--title', 'Haml',
|
|
|
|
'--main', 'README.rdoc',
|
|
|
|
'--exclude', 'lib/haml/buffer.rb',
|
|
|
|
'--line-numbers',
|
|
|
|
'--inline-source'
|
|
|
|
]
|
2010-08-15 13:01:59 -07:00
|
|
|
spec.test_files = Dir['test/**/*_test.rb']
|
2008-04-24 21:35:30 -07:00
|
|
|
end
|