public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
Added task for creating a Haml gem.


git-svn-id: svn://hamptoncatlin.com/haml/branches/1.0rc@209 
7063305b-7217-0410-af8c-cdc13e5119b9
nex3 (author)
Mon Dec 11 22:28:14 -0800 2006
commit  fb4703df458316957d3e3ea08131493827eafdec
tree    c1741433d55fbbb89fc1e1fb995ccc5d8751a5be
parent  7a8342e5d7c122defbf6c5c7bd9d8a7abaef32bb
...
36
37
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
40
41
...
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
0
@@ -36,6 +36,46 @@ if is_task?('test', 'default')
0
   end
0
 end
0
 
0
+# ----- Packaging -----
0
+
0
+if is_task?('package', 'repackage', 'clobber_package')
0
+ require 'rake/gempackagetask'
0
+
0
+ spec = Gem::Specification.new do |spec|
0
+ spec.name = 'haml'
0
+ spec.summary = 'An elegant, structured XHTML/XML templating engine.'
0
+ spec.version = File.read('VERSION').strip
0
+ spec.author = 'Hampton Catlin'
0
+ spec.email = 'haml@googlegroups.com'
0
+ spec.description = <<-END
0
+ Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML
0
+ that's designed to express the structure of XHTML or XML documents
0
+ in a non-repetitive, elegant, easy way,
0
+ using indentation rather than closing tags
0
+ and allowing Ruby to be embedded with ease.
0
+ It was originally envisioned as a plugin for Ruby on Rails,
0
+ but it can function as a stand-alone templating engine.
0
+ END
0
+
0
+ readmes = FileList.new('*') { |list| list.exclude(/[a-z]/) }.to_a
0
+ spec.executables = ['haml']
0
+ spec.files = FileList['lib/**/*', 'bin/*', 'test/**/*', 'Rakefile'].to_a + readmes
0
+ spec.homepage = 'http://haml.hamptoncatlin.com/'
0
+ spec.has_rdoc = true
0
+ spec.extra_rdoc_files = readmes
0
+ spec.rdoc_options += [
0
+ '--title', 'Haml',
0
+ '--main', 'REFERENCE',
0
+ '--exclude', 'lib/haml/buffer.rb',
0
+ '--line-numbers',
0
+ '--inline-source'
0
+ ]
0
+ spec.test_files = FileList['test/**/*_test.rb'].to_a
0
+ end
0
+
0
+ Rake::GemPackageTask.new(spec) { |pkg| }
0
+end
0
+
0
 # ----- Benchmarking -----
0
 
0
 if is_task?('benchmark')

Comments

    No one has commented yet.