mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
27 lines
752 B
Ruby
27 lines
752 B
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.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
|