subnet_calc 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 6765bee68b5f48ecbac6fdbb859652cd6146b9d7
4
- data.tar.gz: '049853d600678fc06a67c0035f98ff8883d80891'
3
+ metadata.gz: 3541fb5686bd771f912d578a7d12fda7a53cbeaa
4
+ data.tar.gz: 0a08287455c96a33016ac1e3be4c54c59e80786f
5
5
  SHA512:
6
- metadata.gz: f9ee059a44c6de04445fcb49e64568649995b3d4d4dde08e004269423d69acda1539bf7d7085868bc75969e73f9b4bba86f9f6dda0f17d82ba6bcd84125dde41
7
- data.tar.gz: f50ca74be7b2637c3244e264e45b0067f575748b57961388ddd79fea802c88d026838d742629366511fff444d5389506227de9bf9619911421725661041ca222
6
+ metadata.gz: 4fc514377befd4ff8fa3c6d8fa97c0ba9b3aab5e5dafae7807b2d8d483e0603ae8d813128ae5011949a54cdac09f1b2844f42e4c87721c371d727238a7079567
7
+ data.tar.gz: 9ca4eb4802ad73c97fae25fef5d0f0f2637cbc666c5df33e70e1fc15c90eda941dcb43cc0f0e864efc9f575f3128cf2b62baa79347a37e630aa06331232cea5b
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/subnet_calc.rb CHANGED
@@ -101,8 +101,8 @@ class SubnetCalc
101
101
  bit = octets[octet_n].bits[col]
102
102
 
103
103
  magic_number, prefix = bit.hosts_per_subnet, bit.prefix
104
- no_of_subnets = (2 ** 8) / bit.decimal
105
-
104
+
105
+ no_of_subnets = (2 ** 8) / bit.hosts_per_subnet
106
106
 
107
107
  n = col
108
108
 
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- ��Jў`��;V"Fz��=T����?ʖu���d����{_��'��f�Ӽ���խ`^�w�� V�[��Ra4n����A��g���É�]�ϋ��i�<H��d�߹"�&Zb�Pą���^d�A{���J��fVf���|^�|��� ]6�ob����ݕ���-̊���tg�`��$��0���b��o��w���`�xϮ�A���m`&AEIO��K������!Q�$d_W���4!�`jT���G��q91Я�
1
+ (`8�XP]?ز��n�%��F{�*]e�.!}X�@�f�>3 ��~�YG�������D+$����4%�v4f�[��̸O��V����cĝ�fx�Ҵ]+�R��7���*�`C\��I��XK�������o:���O��dR<�T�T&���U_����虒U}�`����A����=2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subnet_calc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file