Debian Codegraph @

lib/base64.gemspec

raw
1 name = File.basename(__FILE__, ".gemspec")
2 version = ["lib", Array.new(name.count("-")+1).join("/")].find do |dir|
3 break File.foreach(File.join(__dir__, dir, "#{name.tr('-', '/')}.rb")) do |line|
4 /^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
5 end rescue nil
6 end
7
8 Gem::Specification.new do |spec|
9 spec.name = name
10 spec.version = version
11 spec.authors = ["Yusuke Endoh"]
12 spec.email = ["[email protected]"]
13
14 spec.summary = %q{Support for encoding and decoding binary data using a Base64 representation.}
15 spec.description = %q{Support for encoding and decoding binary data using a Base64 representation.}
16 spec.homepage = "https://github.com/ruby/base64"
17 spec.required_ruby_version = Gem::Requirement.new(">= 2.4")
18 spec.licenses = ["Ruby", "BSD-2-Clause"]
19
20 spec.metadata["homepage_uri"] = spec.homepage
21 spec.metadata["source_code_uri"] = spec.homepage
22
23 spec.files = ["README.md", "LICENSE.txt", "lib/base64.rb"]
24 spec.bindir = "exe"
25 spec.executables = []
26 spec.require_paths = ["lib"]
27 end