system-getifaddrs 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03b4675c0c6610e25ef0df1cd5229358c4dc4d4c655bca71c1f0831ab835250a
4
- data.tar.gz: c0110284fa5eb76b0e232cc15f921dd6a7581baa9438f23e92534e3b04c6a747
3
+ metadata.gz: fc351cf7715d70f35d5456adde7727b294e58b02916bb2155309a474cf989d43
4
+ data.tar.gz: 71aad189ce2b916f1bbaf60ff653639508a371aa703ec814bb42ed4afd6ced50
5
5
  SHA512:
6
- metadata.gz: 28985210767864e08342482e94c72e16abac96b70d67714bbcf2927b8aa25b293eaac1620e8bfbf252daf5a4c34c77de9948151a6b3757058c4eb65137780e0b
7
- data.tar.gz: a1e9fb27f139c583efafd05c321ad1fd68341e207deb3a61cb26022718b8bd5b21efe5c275e06fddad973b0f0d717b2bf51e9c09228f501332d88e79d4f02ddf
6
+ metadata.gz: 1eedcb08b4d8adb8dcdc58bc8785e793a81b69c839bab5ad33a63a56aa4ed7c6513085d41ba8ec39f4999089b9b4c9726cd5d2ce4db03b4ed02637ce07caed0f
7
+ data.tar.gz: e763a857a95899b0549d6650f7ffdb1aaaf583b67a9772a392c4e6b78da073b223abd569bf59187cc6f2ce408d2b248023290b6c84d9b8ab4e434bd9d7964089
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- system-getifaddrs (0.2.2)
4
+ system-getifaddrs (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  require 'ipaddr'
2
- require 'system/rb_getifaddrs'
2
+ require 'rb_getifaddrs'
3
3
 
4
4
  module System
5
5
  def self.get_ifaddrs
@@ -1,5 +1,5 @@
1
1
  module System
2
2
  class Getifaddrs
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -1,9 +1,4 @@
1
1
  $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  require 'system/getifaddrs'
4
- require 'spec'
5
- require 'spec/autorun'
6
-
7
- Spec::Runner.configure do |config|
8
-
9
- end
4
+ require 'rspec'
@@ -44,16 +44,16 @@ describe System do
44
44
  end
45
45
 
46
46
  it 'should return a hash' do
47
- @get_ifaddrs_interfaces.should be_kind_of(Hash)
47
+ expect(@get_ifaddrs_interfaces).to be_kind_of(Hash)
48
48
  end
49
49
 
50
50
  it 'should have same number of interfaces than system' do
51
- @get_ifaddrs_interfaces.keys.size.should have_at_least(@ifconfig_interfaces.keys.size).elements
51
+ expect(@get_ifaddrs_interfaces.keys.size).to be >= @ifconfig_interfaces.keys.size
52
52
  end
53
53
 
54
54
  it 'should have same interfaces than system' do
55
55
  @ifconfig_interfaces.keys.each do |k|
56
- @get_ifaddrs_interfaces.should include(k)
56
+ expect(@get_ifaddrs_interfaces).to include(k)
57
57
  end
58
58
  end
59
59
  end
@@ -65,11 +65,11 @@ describe System do
65
65
  end
66
66
 
67
67
  it 'should return an array' do
68
- @get_ifaddrs_interfaces.should be_kind_of(Array)
68
+ expect(@get_ifaddrs_interfaces).to be_kind_of(Array)
69
69
  end
70
70
 
71
71
  it 'should have same number of interfaces than system' do
72
- @get_ifaddrs_interfaces.size.should have_at_least(@ifconfig_interfaces.keys.size).elements
72
+ expect(@get_ifaddrs_interfaces.size).to be >= @ifconfig_interfaces.keys.size
73
73
  end
74
74
  end
75
75
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: system-getifaddrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Coimbra