-
Notifications
You must be signed in to change notification settings - Fork 326
Expand file tree
/
Copy pathhttp.gemspec
More file actions
48 lines (37 loc) · 1.69 KB
/
http.gemspec
File metadata and controls
48 lines (37 loc) · 1.69 KB
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
# frozen_string_literal: true
require_relative "lib/http/version"
Gem::Specification.new do |spec|
spec.name = "http"
spec.version = HTTP::VERSION
spec.authors = ["Tony Arcieri", "Erik Berlin", "Alexey V. Zapparov", "Zachary Anker"]
spec.email = ["bascule@gmail.com"]
spec.summary = "HTTP should be easy"
spec.homepage = "https://github.com/httprb/http"
spec.license = "MIT"
spec.description = <<~DESCRIPTION.strip.gsub(/\s+/, " ")
An easy-to-use client library for making requests from Ruby.
It uses a simple method chaining system for building requests,
similar to Python's Requests.
DESCRIPTION
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/v#{spec.version}"
spec.metadata["bug_tracker_uri"] = "#{spec.homepage}/issues"
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/v#{spec.version}/CHANGELOG.md"
spec.metadata["documentation_uri"] = "https://www.rubydoc.info/gems/http/#{spec.version}"
spec.metadata["rubygems_mfa_required"] = "true"
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
extras = %w[LICENSE.txt README.md sig/http.rbs] << File.basename(__FILE__)
ls.readlines("\x0", chomp: true).select do |f|
f.start_with?("lib/") || extras.include?(f)
end
end
spec.require_paths = ["lib"]
spec.required_ruby_version = ">= 3.2"
spec.add_dependency "http-cookie", "~> 1.0"
if RUBY_ENGINE == "jruby"
spec.platform = "java" if ENV["HTTP_PLATFORM"] == "java"
spec.add_dependency "llhttp-ffi", "~> 0.5.1"
else
spec.add_dependency "llhttp", "~> 0.6.1"
end
end