ruby/lib/base64.gemspec

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 строки
1.1 KiB
Ruby
Исходник Обычный вид История

name = File.basename(__FILE__, ".gemspec")
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
end rescue nil
end
2020-09-10 12:56:13 +03:00
Gem::Specification.new do |spec|
spec.name = name
spec.version = version
2020-09-10 12:56:13 +03:00
spec.authors = ["Yusuke Endoh"]
spec.email = ["mame@ruby-lang.org"]
spec.summary = %q{Support for encoding and decoding binary data using a Base64 representation.}
spec.description = %q{Support for encoding and decoding binary data using a Base64 representation.}
spec.homepage = "https://github.com/ruby/base64"
spec.required_ruby_version = Gem::Requirement.new(">= 2.4")
2020-09-10 12:56:13 +03:00
spec.licenses = ["Ruby", "BSD-2-Clause"]
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
spec.files = ["README.md", "LICENSE.txt", "lib/base64.rb"]
2020-09-10 12:56:13 +03:00
spec.bindir = "exe"
spec.executables = []
2020-09-10 12:56:13 +03:00
spec.require_paths = ["lib"]
end