2019-11-11 16:17:50 +03:00
|
|
|
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
|
2023-02-26 03:40:26 +03:00
|
|
|
|
|
|
|
github_link = "https://github.com/ruby/uri"
|
|
|
|
|
|
|
|
spec.homepage = github_link
|
2020-08-18 14:15:59 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2019-11-11 16:17:50 +03:00
|
|
|
|
2021-03-05 02:20:28 +03:00
|
|
|
spec.required_ruby_version = '>= 2.4'
|
|
|
|
|
2023-02-26 03:36:34 +03:00
|
|
|
spec.metadata = {
|
2023-02-26 03:40:26 +03:00
|
|
|
"bug_tracker_uri" => "#{github_link}/issues",
|
|
|
|
"changelog_uri" => "#{github_link}/releases",
|
2023-03-01 19:18:14 +03:00
|
|
|
"documentation_uri" => "https://ruby.github.io/uri/",
|
2023-02-26 03:36:34 +03:00
|
|
|
"homepage_uri" => spec.homepage,
|
2023-02-26 03:40:26 +03:00
|
|
|
"source_code_uri" => github_link
|
2023-02-26 03:36:34 +03:00
|
|
|
}
|
2019-11-11 16:17:50 +03:00
|
|
|
|
|
|
|
# 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
|
2020-03-12 13:13:24 +03:00
|
|
|
`git ls-files -z 2>/dev/null`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
2019-11-11 16:17:50 +03:00
|
|
|
end
|
|
|
|
spec.bindir = "exe"
|
|
|
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
|
|
spec.require_paths = ["lib"]
|
|
|
|
end
|