ruby/lib/erb/erb.gemspec
Jason Garber 55e76b4cc9 [ruby/erb] Add changelog_uri to spec metadata
(https://github.com/ruby/erb/pull/89)

This project's `NEWS.md` file appears to be the closest thing to a
changelog file that I could find. The change here links to the file in
the released version's branch. RubyGems.org will use this metadata to
display a link to this file on the gem's release pages.

https://github.com/ruby/erb/commit/85a4f10332
2025-10-14 14:45:28 +00:00

38 lines
1.2 KiB
Ruby

begin
require_relative 'lib/erb/version'
rescue LoadError
# for Ruby core repository
require_relative 'version'
end
Gem::Specification.new do |spec|
spec.name = 'erb'
spec.version = ERB::VERSION
spec.authors = ['Masatoshi SEKI', 'Takashi Kokubun']
spec.email = ['seki@ruby-lang.org', 'k0kubun@ruby-lang.org']
spec.summary = %q{An easy to use but powerful templating system for Ruby.}
spec.description = %q{An easy to use but powerful templating system for Ruby.}
spec.homepage = 'https://github.com/ruby/erb'
spec.licenses = ['Ruby', 'BSD-2-Clause']
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = "https://github.com/ruby/erb/blob/v#{spec.version}/NEWS.md"
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = 'libexec'
spec.executables = ['erb']
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 3.2.0'
if RUBY_ENGINE == 'jruby'
spec.platform = 'java'
else
spec.extensions = ['ext/erb/escape/extconf.rb']
end
end