system-getifaddrs 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1946420b5c7744e7d60ef5159b00c8fc618b72e6
4
+ data.tar.gz: a4927092975f6b18bd0bfe4dd07bdb87645e0ba6
5
+ SHA512:
6
+ metadata.gz: ae6b13679133cd0bca22a53bdb03bd92e82540f5e90d849812f8120025a39d1432b75b709bd815c1108484e60e8565add39284aa5f75049c63673fcf510c4b9f
7
+ data.tar.gz: 90fbca9cc01d88642cf2b118a8138c1de0debb20933f7634d7eab4a882b80e258792b9793c229f72168a7ab6576f940a6cb3d2fb9027d2b8227f85edfd3ff173
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
  gem 'rake'
4
4
 
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- system-getifaddrs (0.2.0)
4
+ system-getifaddrs (0.2.1)
5
5
 
6
6
  GEM
7
- remote: http://rubygems.org/
7
+ remote: https://rubygems.org/
8
8
  specs:
9
9
  rake (10.0.4)
10
10
  rake-compiler (0.8.3)
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2013 Bruno Coimbra
1
+ Copyright (c) 2010-2014 Bruno Coimbra
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,4 +1,4 @@
1
- # system-ifaddrs ![https://secure.travis-ci.org/bbcoimbra/system-getifaddrs.png](https://secure.travis-ci.org/bbcoimbra/system-getifaddrs.png) [![Code Climate](https://codeclimate.com/github/bbcoimbra/system-getifaddrs.png)](https://codeclimate.com/github/bbcoimbra/system-getifaddrs)
1
+ # system-ifaddrs ![https://secure.travis-ci.org/bbcoimbra/system-getifaddrs.png](https://secure.travis-ci.org/bbcoimbra/system-getifaddrs.png) [![Code Climate](https://codeclimate.com/github/bbcoimbra/system-getifaddrs.png)](https://codeclimate.com/github/bbcoimbra/system-getifaddrs)[![Gem Version](https://badge.fury.io/rb/system-getifaddrs.png)](http://badge.fury.io/rb/system-getifaddrs)[![Dependency Status](https://gemnasium.com/bbcoimbra/system-getifaddrs.png)](https://gemnasium.com/bbcoimbra/system-getifaddrs)
2
2
 
3
3
  This lib is a wrapper for get\_ifaddrs C routine.
4
4
 
@@ -48,4 +48,4 @@ Should return:
48
48
 
49
49
  ## Copyright
50
50
 
51
- Copyright (c) 2010-2013 Bruno Coimbra. See LICENSE for details.
51
+ Copyright (c) 2010-2014 Bruno Coimbra. See LICENSE for details.
@@ -18,6 +18,8 @@ VALUE ipaddr(struct sockaddr *ip) {
18
18
  VALUE bytes;
19
19
 
20
20
  switch(ip->sa_family) {
21
+ // VirtualBox vboxnet interface does not specify family
22
+ case AF_UNSPEC:
21
23
  case AF_INET:
22
24
  bytes = rb_str_new(&((struct sockaddr_in *)ip)->sin_addr.s_addr, 4);
23
25
  break;
@@ -27,7 +29,7 @@ VALUE ipaddr(struct sockaddr *ip) {
27
29
  break;
28
30
 
29
31
  default:
30
- rb_raise(rb_eSystemCallError, "Unhandled IP family.");
32
+ rb_raise(rb_eSystemCallError, "Unhandled IP family %i.", ip->sa_family);
31
33
 
32
34
  }
33
35
 
@@ -1,5 +1,5 @@
1
1
  module System
2
2
  class Getifaddrs
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system-getifaddrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Bruno Coimbra
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-06 00:00:00.000000000 Z
11
+ date: 2014-01-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rspec
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,17 +27,15 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake-compiler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: This lib is a wrapper for get_ifaddrs C routine. The original routine
@@ -71,33 +66,26 @@ files:
71
66
  - system-getifaddrs.gemspec
72
67
  homepage: http://github.com/bbcoimbra/system-getifaddrs
73
68
  licenses: []
69
+ metadata: {}
74
70
  post_install_message:
75
71
  rdoc_options: []
76
72
  require_paths:
77
73
  - lib
78
74
  required_ruby_version: !ruby/object:Gem::Requirement
79
- none: false
80
75
  requirements:
81
- - - ! '>='
76
+ - - '>='
82
77
  - !ruby/object:Gem::Version
83
78
  version: '0'
84
- segments:
85
- - 0
86
- hash: 322430430249784826
87
79
  required_rubygems_version: !ruby/object:Gem::Requirement
88
- none: false
89
80
  requirements:
90
- - - ! '>='
81
+ - - '>='
91
82
  - !ruby/object:Gem::Version
92
83
  version: '0'
93
- segments:
94
- - 0
95
- hash: 322430430249784826
96
84
  requirements: []
97
85
  rubyforge_project:
98
- rubygems_version: 1.8.25
86
+ rubygems_version: 2.1.5
99
87
  signing_key:
100
- specification_version: 3
88
+ specification_version: 4
101
89
  summary: This lib is a wrapper for get_ifaddrs C routine
102
90
  test_files:
103
91
  - spec/spec_helper.rb