-
Notifications
You must be signed in to change notification settings - Fork 13
/
api_client.gemspec
52 lines (43 loc) · 1.49 KB
/
api_client.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
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "api_client/version"
Gem::Specification.new do |s|
s.name = "api_client"
s.version = ApiClient::VERSION
s.authors = ["Zendesk"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/futuresimple/api_client"
s.summary = %q{API client builder}
s.description = %q{API client builder}
s.license = "Apache License Version 2.0"
s.rubyforge_project = "api_client"
s.required_ruby_version = ">= 2.3.8"
s.platform = "java" if RUBY_PLATFORM == "java"
# Declare runtime dependencies here:
def s.add_runtime_dependencies(method)
if RUBY_PLATFORM == "java"
send method, 'jrjackson'
else
send method, 'yajl-ruby'
end
send method, 'hashie', [">= 2.0.5"]
send method, 'faraday', [">= 0.8.1", "< 2.0.0"]
send method, 'multi_json', [">= 1.6.1"]
end
# Declare development dependencies here:
s.add_development_dependency 'rspec', '< 4'
if s.respond_to? :specification_version then
s.specification_version = 3
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependencies(:add_runtime_dependency)
else
s.add_runtime_dependencies(:add_dependency)
end
else
s.add_runtime_dependencies(:add_dependency)
end
s.files = Dir['lib/**/*.rb'] + Dir['spec/**/*.rb'] + Dir['[A-Z]*']
s.test_files = Dir['spec/**/*.rb']
s.executables = []
s.require_paths = ["lib"]
end