2018-12-18 08:09:08 +03:00
|
|
|
# frozen_string_literal: true
|
2017-08-02 05:20:48 +03:00
|
|
|
# coding: utf-8
|
|
|
|
|
2022-02-08 08:32:40 +03: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 12:07:26 +03:00
|
|
|
/^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
|
|
|
|
end
|
|
|
|
|
2017-08-02 05:20:48 +03:00
|
|
|
Gem::Specification.new do |spec|
|
|
|
|
spec.name = "ipaddr"
|
2021-12-02 12:07:26 +03:00
|
|
|
spec.version = version
|
2017-08-02 05:20:48 +03: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 14:15:59 +03:00
|
|
|
spec.licenses = ["Ruby", "BSD-2-Clause"]
|
2017-08-02 05:20:48 +03:00
|
|
|
|
2019-07-09 14:16:13 +03:00
|
|
|
spec.files = ["LICENSE.txt", "README.md", "ipaddr.gemspec", "lib/ipaddr.rb"]
|
2017-08-02 05:20:48 +03:00
|
|
|
spec.require_paths = ["lib"]
|
2019-07-09 14:16:23 +03:00
|
|
|
|
2020-12-03 11:39:15 +03:00
|
|
|
spec.required_ruby_version = ">= 2.3"
|
2017-08-02 05:20:48 +03:00
|
|
|
end
|