[rubygems/rubygems] Use a constant empty tar header to avoid extra allocations
[ruby.git] / lib / ipaddr.gemspec
blob1f4798e43a9ba5af4030e7712f01131c1d5a8ecf
1 # frozen_string_literal: true
2 # coding: utf-8
4 if File.exist?(File.expand_path("ipaddr.gemspec"))
5   lib = File.expand_path("../lib", __FILE__)
6   $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
8   file = File.expand_path("ipaddr.rb", lib)
9 else
10   # for ruby-core
11   file = File.expand_path("../ipaddr.rb", __FILE__)
12 end
14 version = File.foreach(file).find do |line|
15   /^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
16 end
18 Gem::Specification.new do |spec|
19   spec.name          = "ipaddr"
20   spec.version       = version
21   spec.authors       = ["Akinori MUSHA", "Hajimu UMEMOTO"]
22   spec.email         = ["knu@idaemons.org", "ume@mahoroba.org"]
24   spec.summary       = %q{A class to manipulate an IP address in ruby}
25   spec.description   = <<-'DESCRIPTION'
26 IPAddr provides a set of methods to manipulate an IP address.
27 Both IPv4 and IPv6 are supported.
28   DESCRIPTION
29   spec.homepage      = "https://github.com/ruby/ipaddr"
30   spec.licenses      = ["Ruby", "BSD-2-Clause"]
32   spec.files         = ["LICENSE.txt", "README.md", "ipaddr.gemspec", "lib/ipaddr.rb"]
33   spec.require_paths = ["lib"]
35   spec.required_ruby_version = ">= 2.3"
36 end