faraday/faraday.gemspec
Orien Madgwick 940e01ce38 Add project metadata to the gemspec (#1046)
As per https://guides.rubygems.org/specification-reference/#metadata,
add metadata to the gemspec file. This'll allow people to more easily
access the source code, raise issues and read the changelog. These
`bug_tracker_uri`, `changelog_uri`, `documentation_uri`, `wiki_uri` and
`source_code_uri` links will appear on the rubygems page at
https://rubygems.org/gems/faraday and be available via the rubygems
API after the next release.
2019-10-07 19:21:28 +02:00

40 lines
1.2 KiB
Ruby

# frozen_string_literal: true
lib = 'faraday'
lib_file = File.expand_path("../lib/#{lib}.rb", __FILE__)
File.read(lib_file) =~ /\bVERSION\s*=\s*["'](.+?)["']/
version = Regexp.last_match(1)
Gem::Specification.new do |spec|
spec.name = lib
spec.version = version
spec.summary = 'HTTP/REST API client library.'
spec.authors = ['Rick Olson']
spec.email = 'technoweenie@gmail.com'
spec.homepage = 'https://github.com/lostisland/faraday'
spec.licenses = ['MIT']
spec.metadata = {
'bug_tracker_uri' =>
'https://github.com/lostisland/faraday/issues',
'changelog_uri' =>
"https://github.com/lostisland/faraday/releases/tag/v#{spec.version}",
'documentation_uri' =>
"https://www.rubydoc.info/gems/faraday/#{spec.version}",
'source_code_uri' =>
"https://github.com/lostisland/faraday/tree/v#{spec.version}",
'wiki_uri' =>
'https://github.com/lostisland/faraday/wiki'
}
spec.required_ruby_version = '>= 2.3'
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
spec.require_paths = %w[lib spec/external_adapters]
spec.files = `git ls-files -z lib spec/external_adapters`.split("\0")
spec.files += %w[LICENSE.md README.md]
end