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
|
# frozen_string_literal: true
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "http/form_data/version"
Gem::Specification.new do |spec|
spec.name = "http-form_data"
spec.version = HTTP::FormData::VERSION
spec.homepage = "https://github.com/httprb/form_data.rb"
spec.authors = ["Aleksey V Zapparov"]
spec.email = ["ixti@member.fsf.org"]
spec.license = "MIT"
spec.summary = "http-form_data-#{HTTP::FormData::VERSION}"
spec.description = <<-DESC.gsub(/^\s+> /m, "").tr("\n", " ").strip
> Utility-belt to build form data request bodies.
> Provides support for `application/x-www-form-urlencoded` and
> `multipart/form-data` types.
DESC
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin\/}).map { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)\/})
spec.require_paths = ["lib"]
end
|