forked from birkirb/wrest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrest.gemspec
44 lines (36 loc) · 1.86 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
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.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/gojek-engineering/wrest"
s.summary = "Wrest is a fluent, object oriented HTTP client library for 2.x.x, JRuby 9.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 substantial scale."
s.required_rubygems_version = ">= 1.3.0"
s.rubyforge_project = "wrest"
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 "rspec", ["~> 3.9"]
s.add_development_dependency "sinatra", ["~> 2.1.0"]
s.add_runtime_dependency "activesupport", ['>=4', '< 7']
s.add_runtime_dependency "builder", ["> 2.0"]
s.add_runtime_dependency "multi_json", ["~> 1.15"]
s.add_runtime_dependency "concurrent-ruby", ["~> 1.1"]
s.add_runtime_dependency "json", ["~> 2.3"]
case RUBY_PLATFORM
when /java/
s.add_runtime_dependency("jruby-openssl", ["~> 0.9"])
s.platform = Gem::Platform::CURRENT
end
end