зеркало из https://github.com/github/ruby.git
[ruby/open-uri] Expose OpenURI::VERSION
https://github.com/ruby/open-uri/commit/666768d960
This commit is contained in:
Родитель
76aaaf6434
Коммит
61bd69470a
|
@ -1,6 +1,13 @@
|
|||
name = File.basename(__FILE__, ".gemspec")
|
||||
version = ["lib", "."].find do |dir|
|
||||
break File.foreach(File.join(__dir__, dir, "#{name}.rb")) do |line|
|
||||
/^\s*VERSION\s*=\s*"(.*)"/ =~ line and break $1
|
||||
end rescue nil
|
||||
end
|
||||
|
||||
Gem::Specification.new do |spec|
|
||||
spec.name = "open-uri"
|
||||
spec.version = "0.3.0"
|
||||
spec.name = name
|
||||
spec.version = version
|
||||
spec.authors = ["Tanaka Akira"]
|
||||
spec.email = ["akr@fsij.org"]
|
||||
|
||||
|
|
|
@ -89,6 +89,9 @@ end
|
|||
# Author:: Tanaka Akira <akr@m17n.org>
|
||||
|
||||
module OpenURI
|
||||
|
||||
VERSION = "0.3.0"
|
||||
|
||||
Options = {
|
||||
:proxy => true,
|
||||
:proxy_http_basic_authentication => true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче