Revert "Revert "Promote uri to default gems""

This reverts commit fdfad90522.

  f1f27da6c4 resolved this.
This commit is contained in:
Hiroshi SHIBATA 2019-11-11 22:17:50 +09:00
Родитель f1f27da6c4
Коммит bcfe94b7f2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
6 изменённых файлов: 42 добавлений и 8 удалений

Просмотреть файл

@ -99,8 +99,6 @@ Zachary Scott (zzak)
WATANABE Hirofumi (eban)
[lib/unicode_normalize.rb, lib/unicode_normalize/*]
Martin J. Dürst
[lib/uri.rb, lib/uri/*]
YAMADA, Akira (akira)
[lib/weakref.rb]
_unmaintained_
@ -263,6 +261,9 @@ Zachary Scott (zzak)
[lib/tracer.rb]
Keiju ISHITSUKA (keiju)
https://github.com/ruby/tracer
[lib/uri.rb, lib/uri/*]
YAMADA, Akira (akira)
https://github.com/ruby/uri
[lib/webrick.rb, lib/webrick/*]
Eric Wong (normalperson)
https://bugs.ruby-lang.org/

Просмотреть файл

@ -37,7 +37,6 @@ Time:: Extends the Time class with methods for parsing and conversion
tmpdir.rb:: Extends the Dir class to manage the OS temporary file path
TSort:: Topological sorting using Tarjan's algorithm
un.rb:: Utilities to replace common UNIX commands
URI:: A Ruby module providing support for Uniform Resource Identifiers
WeakRef:: Allows a referenced object to be garbage-collected
== Extensions
@ -86,6 +85,7 @@ RSS:: Family of libraries that support various formats of XML "feeds"
Singleton:: Implementation of the Singleton pattern for Ruby
Timeout:: Auto-terminate potentially long-running operations in Ruby
Tracer:: Outputs a source level execution trace of a Ruby program
URI:: A Ruby module providing support for Uniform Resource Identifiers
WEBrick:: An HTTP server toolkit for Ruby
YAML:: Ruby client library for the Psych YAML implementation

Просмотреть файл

@ -90,13 +90,9 @@
#
module URI
# :stopdoc:
VERSION_CODE = '001000'.freeze
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
# :startdoc:
end
require 'uri/version'
require 'uri/common'
require 'uri/generic'
require 'uri/file'

29
lib/uri/uri.gemspec Normal file
Просмотреть файл

@ -0,0 +1,29 @@
begin
require_relative "lib/uri/version"
rescue LoadError # Fallback to load version file in ruby core repository
require_relative "version"
end
Gem::Specification.new do |spec|
spec.name = "uri"
spec.version = URI::VERSION
spec.authors = ["Akira Yamada"]
spec.email = ["akira@ruby-lang.org"]
spec.summary = %q{URI is a module providing classes to handle Uniform Resource Identifiers}
spec.description = spec.summary
spec.homepage = "https://github.com/ruby/uri"
spec.license = "BSD-2-Clause"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = spec.homepage
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
end

6
lib/uri/version.rb Normal file
Просмотреть файл

@ -0,0 +1,6 @@
module URI
# :stopdoc:
VERSION_CODE = '001000'.freeze
VERSION = VERSION_CODE.scan(/../).collect{|n| n.to_i}.join('.').freeze
# :startdoc:
end

Просмотреть файл

@ -47,6 +47,7 @@
# * https://github.com/ruby/observer
# * https://github.com/ruby/timeout
# * https://github.com/ruby/yaml
# * https://github.com/ruby/uri
#
require 'fileutils'
@ -101,6 +102,7 @@ $repositories = {
observer: "ruby/observer",
timeout: "ruby/timeout",
yaml: "ruby/yaml",
uri: "ruby/uri",
}
def sync_default_gems(gem)