mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Move the Haml gemspec into its own file.
This means GitHub will build the gem for us.
This commit is contained in:
parent
9d942ca94e
commit
6a60485101
2 changed files with 39 additions and 39 deletions
41
Rakefile
41
Rakefile
|
@ -52,46 +52,9 @@ END
|
||||||
|
|
||||||
require 'rake/gempackagetask'
|
require 'rake/gempackagetask'
|
||||||
require 'lib/haml'
|
require 'lib/haml'
|
||||||
|
load 'haml.gemspec'
|
||||||
|
|
||||||
spec = Gem::Specification.new do |spec|
|
Rake::GemPackageTask.new(HAML_GEMSPEC) do |pkg|
|
||||||
spec.name = 'haml'
|
|
||||||
spec.summary = "An elegant, structured XHTML/XML templating engine.\nComes with Sass, a similar CSS templating engine."
|
|
||||||
spec.version = File.read('VERSION').strip
|
|
||||||
spec.author = 'Hampton Catlin'
|
|
||||||
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
|
|
||||||
#'
|
|
||||||
|
|
||||||
readmes = FileList.new('*') do |list|
|
|
||||||
list.exclude(/(^|[^.a-z])[a-z]+/)
|
|
||||||
list.exclude('TODO')
|
|
||||||
list.include('REVISION')
|
|
||||||
end.to_a
|
|
||||||
spec.executables = ['haml', 'html2haml', 'sass', 'css2sass']
|
|
||||||
spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile', 'init.rb'].to_a + readmes
|
|
||||||
spec.autorequire = ['haml', 'sass']
|
|
||||||
spec.homepage = 'http://haml.hamptoncatlin.com/'
|
|
||||||
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'
|
|
||||||
]
|
|
||||||
spec.test_files = FileList['test/**/*_test.rb'].to_a
|
|
||||||
end
|
|
||||||
|
|
||||||
Rake::GemPackageTask.new(spec) do |pkg|
|
|
||||||
pkg.need_zip = true
|
pkg.need_zip = true
|
||||||
pkg.need_tar_gz = true
|
pkg.need_tar_gz = true
|
||||||
pkg.need_tar_bz2 = true
|
pkg.need_tar_bz2 = true
|
||||||
|
|
37
haml.gemspec
Normal file
37
haml.gemspec
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
HAML_GEMSPEC = Gem::Specification.new do |spec|
|
||||||
|
spec.name = 'haml'
|
||||||
|
spec.summary = "An elegant, structured XHTML/XML templating engine.\nComes with Sass, a similar CSS templating engine."
|
||||||
|
spec.version = File.read('VERSION').strip
|
||||||
|
spec.author = 'Hampton Catlin'
|
||||||
|
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
|
||||||
|
#'
|
||||||
|
|
||||||
|
readmes = FileList.new('*') do |list|
|
||||||
|
list.exclude(/(^|[^.a-z])[a-z]+/)
|
||||||
|
list.exclude('TODO')
|
||||||
|
list.include('REVISION')
|
||||||
|
end.to_a
|
||||||
|
spec.executables = ['haml', 'html2haml', 'sass', 'css2sass']
|
||||||
|
spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile', 'init.rb'].to_a + readmes
|
||||||
|
spec.autorequire = ['haml', 'sass']
|
||||||
|
spec.homepage = 'http://haml.hamptoncatlin.com/'
|
||||||
|
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'
|
||||||
|
]
|
||||||
|
spec.test_files = FileList['test/**/*_test.rb'].to_a
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue