зеркало из https://github.com/github/ruby.git
[ruby/base64] Expose Base64::VERSION
https://github.com/ruby/base64/commit/dda85a0839
This commit is contained in:
Родитель
ba4f01f0a0
Коммит
14f442a958
|
@ -1,6 +1,13 @@
|
|||
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
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "base64"
|
||||
spec.version = "0.1.1"
|
||||
spec.name = name
|
||||
spec.version = version
|
||||
spec.authors = ["Yusuke Endoh"]
|
||||
spec.email = ["mame@ruby-lang.org"]
|
||||
|
||||
|
|
|
@ -22,6 +22,9 @@
|
|||
# binary data into purely printable characters.
|
||||
|
||||
module Base64
|
||||
|
||||
VERSION = "0.1.1"
|
||||
|
||||
module_function
|
||||
|
||||
# Returns the Base64-encoded version of +bin+.
|
||||
|
|
Загрузка…
Ссылка в новой задаче