forked from bbcoimbra/system-getifaddrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsystem-getifaddrs.gemspec
28 lines (24 loc) · 1.43 KB
/
system-getifaddrs.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- encodign: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "system/getifaddrs/version"
Gem::Specification.new do |s|
s.name = "rumblinthebronx-system-getifaddrs"
s.version = System::Getifaddrs::VERSION
s.platform = Gem::Platform::RUBY
s.platform = Gem::Platform.new(['universal', 'java']) if RUBY_PLATFORM == "java"
s.authors = ["Sujin Philip", "Bruno Coimbra"]
s.email = %q{[email protected]}
s.homepage = %q{http://github.com/rumblinthebronx/system-getifaddrs}
s.summary = %q{This library provides the information about the inet interfaces. }
s.description = %q{This lib is a wrapper for get_ifaddrs C routine. The original routine returns a linked list that contains avaliable inet interfaces. This lib walks on list and return an hash that contains the interface names and sub-hashes with respectives ip addresses and netmasks.}
s.add_development_dependency(%q<rspec>, "~> 1.3")
s.add_development_dependency(%q<rake-compiler>, [">= 0"])
s.add_runtime_dependency(%q<netaddr>, "~> 1.5.0") if RUBY_PLATFORM == "java"
unless RUBY_PLATFORM.include?("mingw") || RUBY_PLATFORM == "java"
s.extensions = `git ls-files -- ext/*`.split("\n").select{|f| f =~ /extconf/}
end
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
end