[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / lib / erb.gemspec
blob94a8fd5c3ec795327fa5d0f7952f29e25850a230
1 begin
2   require_relative 'lib/erb/version'
3 rescue LoadError
4   # for Ruby core repository
5   require_relative 'erb/version'
6 end
8 Gem::Specification.new do |spec|
9   spec.name          = 'erb'
10   spec.version       = ERB.const_get(:VERSION, false)
11   spec.authors       = ['Masatoshi SEKI', 'Takashi Kokubun']
12   spec.email         = ['seki@ruby-lang.org', 'k0kubun@ruby-lang.org']
14   spec.summary       = %q{An easy to use but powerful templating system for Ruby.}
15   spec.description   = %q{An easy to use but powerful templating system for Ruby.}
16   spec.homepage      = 'https://github.com/ruby/erb'
17   spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
18   spec.licenses      = ['Ruby', 'BSD-2-Clause']
20   spec.metadata['homepage_uri'] = spec.homepage
21   spec.metadata['source_code_uri'] = spec.homepage
23   spec.files         = Dir.chdir(File.expand_path('..', __FILE__)) do
24     `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25   end
26   spec.bindir        = 'libexec'
27   spec.executables   = ['erb']
28   spec.require_paths = ['lib']
30   if RUBY_ENGINE == 'jruby'
31     spec.platform = 'java'
32   else
33     spec.required_ruby_version = '>= 2.7.0'
34     spec.extensions = ['ext/erb/escape/extconf.rb']
35   end
37   spec.add_dependency 'cgi', '>= 0.3.3'
38 end