1 # frozen_string_literal: true
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)
11 file = File.expand_path("../ipaddr.rb", __FILE__)
14 version = File.foreach(file).find do |line|
15 /^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
18 Gem::Specification.new do |spec|
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.
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"