mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
4381e9f9cd
Use keyword arguments for RestClient::Request#initialize. This means that when you call RestClient::Request.new() it will automatically require :url and :method. It will also raise ArgumentError for unexpected options. Change the API for the RestClient.get() helper methods so that they accept a URL, possibly a body, and then *options* rather than headers. This is the single biggest wart in the API that has been rankling for ages. Drop compatibility for all of the super hacky usage where options were hidden inside the headers hash. No longer accept passing :params or :cookies as part of the headers hash. Also remove a few other bits of vestigial code, and remove the not-very-useful SSLCertificateNotVerified exception.
31 lines
1.2 KiB
Ruby
31 lines
1.2 KiB
Ruby
# -*- encoding: utf-8 -*-
|
|
|
|
require File.expand_path('../lib/restclient/version', __FILE__)
|
|
|
|
Gem::Specification.new do |s|
|
|
s.name = 'rest-client'
|
|
s.version = RestClient::VERSION
|
|
s.authors = ['REST Client Team']
|
|
s.description = 'A simple HTTP and REST client for Ruby, inspired by the Sinatra microframework style of specifying actions: get, put, post, delete.'
|
|
s.license = 'MIT'
|
|
s.email = 'rest.client@librelist.com'
|
|
s.executables = ['restclient']
|
|
s.extra_rdoc_files = ['README.md', 'history.md']
|
|
s.files = `git ls-files -z`.split("\0")
|
|
s.test_files = `git ls-files -z spec/`.split("\0")
|
|
s.homepage = 'https://github.com/rest-client/rest-client'
|
|
s.summary = 'Simple HTTP and REST client for Ruby, inspired by microframework syntax for specifying actions.'
|
|
|
|
s.add_development_dependency('webmock', '~> 2.0')
|
|
s.add_development_dependency('rspec', '~> 3.0')
|
|
s.add_development_dependency('pry', '~> 0')
|
|
s.add_development_dependency('pry-doc', '~> 0')
|
|
s.add_development_dependency('rdoc', '>= 2.4.2', '< 5.0')
|
|
s.add_development_dependency('rubocop', '~> 0')
|
|
|
|
s.add_dependency('http-cookie', '>= 1.0.2', '< 2.0')
|
|
s.add_dependency('mime-types', '>= 1.16', '< 4.0')
|
|
s.add_dependency('netrc', '~> 0.8')
|
|
|
|
s.required_ruby_version = '>= 2.1.0'
|
|
end
|