mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00

imported from Hamlit. I know we have Haml::Parser#parse_static_hash, but Ripper is safer for Ruby syntax changes. Because Haml::AttributeParser is used for optimization and optional, we don't have to make it available for Ripper-less platforms. If you want to optimize Haml for such platforms, I recommend you to fallback Haml::AttributeParser's implementation to Haml::Parser#parse_static_hash. For now, I didn't do it for simplicity. I don't like whitequark/parser gem because parsed Ruby version can differ from using Ruby and prints noisy warnings... Temple version is strictly specified because 0.8.0 will be breaking change for this implementation https://github.com/judofyr/temple/pull/107.
38 lines
1.5 KiB
Ruby
38 lines
1.5 KiB
Ruby
($LOAD_PATH << File.expand_path("../lib", __FILE__)).uniq!
|
|
require "haml/version"
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = 'haml'
|
|
spec.summary = "An elegant, structured (X)HTML/XML templating engine."
|
|
spec.version = Haml::VERSION
|
|
spec.authors = ['Natalie Weizenbaum', 'Hampton Catlin', 'Norman Clarke']
|
|
spec.email = ['haml@googlegroups.com', 'norman@njclarke.com']
|
|
|
|
readmes = Dir['*'].reject{ |x| x =~ /(^|[^.a-z])[a-z]+/ || x == "TODO" }
|
|
spec.executables = ['haml']
|
|
spec.files = Dir['lib/**/*', 'bin/*', 'test/**/*', 'extra/**/*',
|
|
'Rakefile', '.yardopts'] + readmes
|
|
spec.homepage = 'http://haml.info/'
|
|
spec.has_rdoc = false
|
|
spec.test_files = Dir["test/**/*_test.rb"]
|
|
spec.license = "MIT"
|
|
|
|
spec.required_ruby_version = '>= 2.0.0'
|
|
|
|
spec.add_dependency 'temple', '0.7.7'
|
|
spec.add_dependency 'tilt'
|
|
|
|
spec.add_development_dependency 'rails', '>= 4.0.0'
|
|
spec.add_development_dependency 'rbench'
|
|
spec.add_development_dependency 'minitest', '>= 4.0'
|
|
spec.add_development_dependency 'nokogiri'
|
|
|
|
spec.description = <<-END
|
|
Haml (HTML Abstraction Markup Language) is a layer on top of HTML or XML that's
|
|
designed to express the structure of documents in a non-repetitive, elegant, and
|
|
easy way by 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
|
|
|
|
end
|