faraday/faraday.gemspec
rick olson 108a0a7b74 [ ok ]
2019-11-06 13:33:49 -07:00

33 lines
1.1 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 = ['@technoweenie', '@iMacTia', '@olleolleolle']
spec.email = 'technoweenie@gmail.com'
spec.homepage = 'https://lostisland.github.io/faraday'
spec.licenses = ['MIT']
spec.required_ruby_version = '>= 2.3'
spec.add_dependency 'multipart-post', '>= 1.2', '< 3'
files = %w[CHANGELOG.md LICENSE.md README.md Rakefile examples lib spec]
spec.files = `git ls-files -z #{files.join(' ')}`.split("\0")
spec.metadata = {
'homepage_uri' => 'https://lostisland.github.io/faraday',
'changelog_uri' =>
"https://github.com/lostisland/faraday/releases/tag/v#{spec.version}",
'source_code_uri' => 'https://github.com/lostisland/faraday',
'bug_tracker_uri' => 'https://github.com/lostisland/faraday/issues'
}
end