-
Notifications
You must be signed in to change notification settings - Fork 52
/
wrest.gemspec
53 lines (44 loc) · 2.14 KB
/
wrest.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require 'wrest/version'
Gem::Specification.new do |s|
s.name = 'wrest'
s.version = Wrest::VERSION
s.authors = ['Sidu Ponnappa', 'Niranjan Paranjape']
s.email = ['[email protected]']
s.homepage = 'https://github.com/kaiwren/wrest'
s.summary = 'Wrest is a fluent, object oriented HTTP client library for CRuby 2.6.x, 3.x.x and JRuby 9.3.x.x'
s.description = 'Wrest is a fluent, easy-to-use, object oriented Ruby HTTP/REST client library with support for ' \
'RFC2616 HTTP caching, multiple HTTP backends and async calls. It runs on CRuby and JRuby and is ' \
'in production use at 10 * 🦄 scale.'
s.required_rubygems_version = '>= 3.0.0'
s.required_ruby_version = '>= 2.6.0'
s.requirements << "To use Memcached as caching back-end, install the 'dalli' gem."
s.requirements << "To use Redis as caching back-end, install the 'redis' gem."
s.requirements << "To use multipart post, install the 'multipart-post' gem."
s.requirements << "To use eventmachine as a parallel backend, install the 'eventmachine' gem."
s.files = Dir.glob('{bin/**/*,lib/**/*.rb}') + %w[README.md CHANGELOG LICENCE]
s.extra_rdoc_files = ['README.md']
s.rdoc_options = ['--charset=UTF-8']
s.executables = ['wrest']
s.require_path = 'lib'
# Test dependencies
s.add_development_dependency 'activesupport', ['~> 6']
s.add_development_dependency 'rake', ['~> 13.0']
s.add_development_dependency 'rdoc', ['~> 6.4']
s.add_development_dependency 'rspec', ['~> 3.11']
s.add_development_dependency 'rubocop', ['~> 1.35.0']
s.add_development_dependency 'rubocop-rake'
s.add_development_dependency 'rubocop-rspec'
s.add_development_dependency 'sinatra', ['~> 2.0.0']
s.add_development_dependency 'webrick'
s.add_runtime_dependency 'concurrent-ruby', ['~> 1.0']
s.add_runtime_dependency 'nokogiri', ['~> 1.0']
case RUBY_PLATFORM
when /java/
s.add_runtime_dependency('jruby-openssl', ['~> 0.9'])
s.platform = Gem::Platform::CURRENT
end
s.metadata['rubygems_mfa_required'] = 'true'
end