зеркало из https://github.com/github/ruby.git
[ruby/prettyprint] Expose PrettyPrint::VERSION
https://github.com/ruby/prettyprint/commit/c6f3947e96
This commit is contained in:
Родитель
3f8756484f
Коммит
6beb755d81
|
@ -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 = "prettyprint"
|
||||
spec.version = "0.1.1"
|
||||
spec.name = name
|
||||
spec.version = version
|
||||
spec.authors = ["Tanaka Akira"]
|
||||
spec.email = ["akr@fsij.org"]
|
||||
|
||||
|
|
|
@ -33,6 +33,8 @@
|
|||
#
|
||||
class PrettyPrint
|
||||
|
||||
VERSION = "0.1.1"
|
||||
|
||||
# This is a convenience method which is same as follows:
|
||||
#
|
||||
# begin
|
||||
|
|
Загрузка…
Ссылка в новой задаче