Debian Codegraph @

mustache.gemspec

raw
1 $LOAD_PATH.unshift 'lib'
2 require 'mustache/version'
3
4 module RubyVersion
5 def self.rbx?
6 defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
7 end
8
9 def self.jruby?
10 RUBY_PLATFORM =~ /java/
11 end
12 end
13
14 Gem::Specification.new do |s|
15 s.name = "mustache"
16 s.version = Mustache::VERSION
17 s.date = Time.now.strftime('%Y-%m-%d')
18 s.summary =
19 "Mustache is a framework-agnostic way to render logic-free views."
20 s.homepage = "https://github.com/mustache/mustache"
21 s.email = "[email protected]"
22 s.authors = [ "Chris Wanstrath", "Magnus Holm", "Pieter van de Bruggen", "Ricardo Mendes" ]
23 s.license = "MIT"
24 s.files = %w( README.md Rakefile LICENSE )
25 s.files += Dir.glob("lib/**/*")
26 s.files += Dir.glob("bin/**/*")
27 s.files += Dir.glob("man/**/*")
28 s.files += Dir.glob("test/**/*")
29 s.executables = %w( mustache )
30 s.description = <<desc
31 Inspired by ctemplate, Mustache is a framework-agnostic way to render
32 logic-free views.
33
34 As ctemplates says, "It emphasizes separating logic from presentation:
35 it is impossible to embed application logic in this template
36 language.
37
38 Think of Mustache as a replacement for your views. Instead of views
39 consisting of ERB or HAML with random helpers and arbitrary logic,
40 your views are broken into two parts: a Ruby class and an HTML
41 template.
42 desc
43
44 s.required_ruby_version = '>= 2.0'
45
46 s.add_development_dependency 'bundler', '~> 1.6'
47 s.add_development_dependency 'rake', '~> 10.3'
48 s.add_development_dependency 'minitest', '~> 5.4'
49 s.add_development_dependency 'benchmark-ips'
50 s.add_development_dependency 'ruby-prof' unless RubyVersion.rbx? || RubyVersion.jruby?
51 s.add_development_dependency 'rdoc', '~> 4.1'
52 s.add_development_dependency 'ronn', '~> 0.7' unless RubyVersion.rbx? || RubyVersion.jruby?
53 end