Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 2453 Bytes
1 | require 'rubygems' |
2 | require 'rake' |
3 | |
4 | # Note that Haml's gem-compilation process requires access to the filesystem. |
5 | # This means that it cannot be automatically run by e.g. GitHub's gem system. |
6 | # However, a build server automatically packages the master branch |
7 | # every time it's pushed to; this is made available as the haml-edge gem. |
8 | HAML_GEMSPEC = Gem::Specification.new do |spec| |
9 | spec.rubyforge_project = 'haml' |
10 | spec.name = File.exist?(File.dirname(__FILE__) + '/EDGE_GEM_VERSION') ? 'haml-edge' : 'haml' |
11 | spec.summary = "An elegant, structured XHTML/XML templating engine.\nComes with Sass, a similar CSS templating engine." |
12 | spec.version = File.read(File.dirname(__FILE__) + '/VERSION').strip |
13 | spec.authors = ['Nathan Weizenbaum', 'Hampton Catlin'] |
14 | spec.email = 'haml@googlegroups.com' |
15 | spec.description = <<-END |
16 | Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML |
17 | that's designed to express the structure of XHTML or XML documents |
18 | in a non-repetitive, elegant, easy way, |
19 | using indentation rather than closing tags |
20 | and allowing Ruby to be embedded with ease. |
21 | It was originally envisioned as a plugin for Ruby on Rails, |
22 | but it can function as a stand-alone templating engine. |
23 | END |
24 | |
25 | spec.add_development_dependency 'yard', '>= 0.5.3' |
26 | spec.add_development_dependency 'maruku', '>= 0.5.9' |
27 | |
28 | have_revision = true |
29 | unless File.exist?('REVISION') |
30 | begin |
31 | # We need the revision file to exist, |
32 | # so we just create it if it doesn't. |
33 | # It'll usually just get overwritten, though. |
34 | File.open('REVISION', 'w') { |f| f.puts "(unknown)" } |
35 | rescue |
36 | # If the file can't be created (e.g. on Heroku) continue without it |
37 | have_revision = false |
38 | end |
39 | end |
40 | |
41 | readmes = FileList.new('*') do |list| |
42 | list.exclude(/(^|[^.a-z])[a-z]+/) |
43 | list.exclude('TODO') |
44 | list.include('REVISION') if have_revision |
45 | end.to_a |
46 | spec.executables = ['haml', 'html2haml', 'sass', 'css2sass'] |
47 | spec.files = FileList['rails/init.rb', 'lib/**/*', 'bin/*', 'test/**/*', |
48 | 'extra/**/*', 'Rakefile', 'init.rb', '.yardopts'].to_a + readmes |
49 | spec.homepage = 'http://haml-lang.com/' |
50 | spec.has_rdoc = true |
51 | spec.extra_rdoc_files = readmes |
52 | spec.rdoc_options += [ |
53 | '--title', 'Haml', |
54 | '--main', 'README.rdoc', |
55 | '--exclude', 'lib/haml/buffer.rb', |
56 | '--line-numbers', |
57 | '--inline-source' |
58 | ] |
59 | spec.test_files = FileList['test/**/*_test.rb'].to_a |
60 | end |