2023-03-30 07:06:08 +03:00
|
|
|
name = File.basename(__FILE__, ".gemspec")
|
2023-04-03 06:00:59 +03:00
|
|
|
version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
|
2023-03-30 07:06:08 +03:00
|
|
|
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|
|
2023-03-30 07:06:08 +03:00
|
|
|
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.3.0")
|
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
|
|
|
|
|
|
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
|
|
spec.metadata["source_code_uri"] = spec.homepage
|
|
|
|
|
2021-03-31 17:10:45 +03:00
|
|
|
spec.files = ["README.md", "LICENSE.txt", "lib/base64.rb"]
|
2020-09-10 12:56:13 +03:00
|
|
|
spec.bindir = "exe"
|
2021-03-31 17:08:35 +03:00
|
|
|
spec.executables = []
|
2020-09-10 12:56:13 +03:00
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
end
|