Debian Codegraph @

lib/ipaddr.gemspec

raw ◀ ▶
1 Debian patch touch this file
1 # frozen_string_literal: true
2 # coding: utf-8
3
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)
7
8 file = File.expand_path("ipaddr.rb", lib)
9 else
10 # for ruby-core
11 file = File.expand_path("../ipaddr.rb", __FILE__)
12 end
13
14 version = File.foreach(file).find do |line|
15 /^\s*VERSION\s*=\s*["'](.*)["']/ =~ line and break $1
16 end
17
18 Gem::Specification.new do |spec|
19 spec.name = "ipaddr"
20 spec.version = version
•21 spec.date = RUBY_RELEASE_DATE
22 spec.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
23 spec.email = ["[email protected]", "[email protected]"]
24
25 spec.summary = %q{A class to manipulate an IP address in ruby}
26 spec.description = <<-'DESCRIPTION'
27 IPAddr provides a set of methods to manipulate an IP address.
28 Both IPv4 and IPv6 are supported.
29 DESCRIPTION
30 spec.homepage = "https://github.com/ruby/ipaddr"
31 spec.licenses = ["Ruby", "BSD-2-Clause"]
32
33 spec.files = ["LICENSE.txt", "README.md", "ipaddr.gemspec", "lib/ipaddr.rb"]
34 spec.require_paths = ["lib"]
35
36 spec.required_ruby_version = ">= 2.3"
37 end