Debian Codegraph @

lib/ipaddr.gemspec

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
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.authors = ["Akinori MUSHA", "Hajimu UMEMOTO"]
22 spec.email = ["[email protected]", "[email protected]"]
23
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"]
31
32 spec.files = ["LICENSE.txt", "README.md", "ipaddr.gemspec", "lib/ipaddr.rb"]
33 spec.require_paths = ["lib"]
34
35 spec.required_ruby_version = ">= 2.3"
36 end