2018-12-18 00:09:08 -05:00
|
|
|
# frozen_string_literal: true
|
2017-08-01 22:20:48 -04:00
|
|
|
# coding: utf-8
|
|
|
|
|
2022-02-08 00:32:40 -05:00
|
|
|
if File.exist?(File.expand_path("ipaddr.gemspec"))
|
|
|
|
lib = File.expand_path("../lib", __FILE__)
|
|
|
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
|
|
|
|
|
file = File.expand_path("ipaddr.rb", lib)
|
|
|
|
else
|
|
|
|
# for ruby-core
|
|
|
|
file = File.expand_path("../ipaddr.rb", __FILE__)
|
|
|
|
end
|
|
|
|
|
|
|
|
version = File.foreach(file).find do |line|
|
2021-12-02 04:07:26 -05:00
|
|
|
/^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
|
|
|
|
end
|
|
|
|
|
2017-08-01 22:20:48 -04:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "ipaddr"
|
2021-12-02 04:07:26 -05:00
|
|
|
spec.version = version
|
2017-08-01 22:20:48 -04:00
|
|
|
spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
|
|
|
|
spec.email = ["knu@idaemons.org", "ume@mahoroba.org"]
|
|
|
|
|
|
|
|
spec.summary = %q{A class to manipulate an IP address in ruby}
|
|
|
|
spec.description = <<-'DESCRIPTION'
|
|
|
|
IPAddr provides a set of methods to manipulate an IP address.
|
|
|
|
Both IPv4 and IPv6 are supported.
|
|
|
|
DESCRIPTION
|
|
|
|
spec.homepage = "https://github.com/ruby/ipaddr"
|
2020-08-18 07:15:59 -04:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-08-01 22:20:48 -04:00
|
|
|
|
2019-07-09 07:16:13 -04:00
|
|
|
spec.files = ["LICENSE.txt", "README.md", "ipaddr.gemspec", "lib/ipaddr.rb"]
|
2017-08-01 22:20:48 -04:00
|
|
|
spec.require_paths = ["lib"]
|
2019-07-09 07:16:23 -04:00
|
|
|
|
2020-12-03 03:39:15 -05:00
|
|
|
spec.required_ruby_version = ">= 2.3"
|
2017-08-01 22:20:48 -04:00
|
|
|
end
|