rex-socket 0.1.11 → 0.1.12

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: 413e2b5105405f3401eed837bde126dca42e7322
4
- data.tar.gz: 9adb2f6f157fcf9ba5febca5a35228332b1da187
3
+ metadata.gz: 2f7be9a5921f70d75641dc2356ede27c47e38f7b
4
+ data.tar.gz: 39aa328105ad28c50e3ca44ad8a6692800dca622
5
5
  SHA512:
6
- metadata.gz: ec0f26df9e919828bfd6a3c57d6f101bb090a4fc0321b2c4cb12c4dce0fce353b0ebcb311dc36ba1860c45517170a58db43f4570e740529cb3b4468f76c37bb3
7
- data.tar.gz: e1498744fb63e61e47b366896aaed9690a68c43035d38089758419c73d3637c57c0743a3f9c6d2c19c9b3ec5cc1584c3c1d5444eeabfd10e1aa436e57793d5b6
6
+ metadata.gz: 5bd2c349091a42d5b16e6823ddef15435a55ba3aeb7852628ea769ab1f3b16ce12afb457effd4b989fc89a33fc23fc36b51ec803dc79b15b702908d575ded5aa
7
+ data.tar.gz: b2788b704b6a52759e427b197f77db7fdee9f5ee2ee418ad8801b7a15b2cf474b54e4062bc570683f5659755e979f441f25f38f0218f3deba5b327cc9a366c2e
@@ -1,2 +1 @@
1
- �=?�,��x/s����>�z��A�ַo�>��
2
- �/����p���]�eweA��򡵹F�ғe˳8�+8@P`�r�Mv��4!�'�6[ �f���
1
+
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- � g �M) ���ڄp�뼯M�����edr�&��7�^ڟ�U��{n��0^�� 6���{K}��c���,H9�x��e<�V��8�����'pM��� I˺�Ս�t���'�f،Kax��uV27�|��� ��]%f�V�l~�Y�����m��X�����I!�Y��
2
- {���C[��vmO����d[I�ܙ�[A�N*Hj����^oc^�I��q��F�\Q���`,��cru�:j<t�h�%
1
+ :5X��(�˫�ՃPc��(��q9g'����v��1Y
2
+ 0RiT6L( F&_����h��:Aw+ ��|�Sb��TW�&Ӱ�Z1~�<W��_d���~y���Na|��q٣�{Yڤo���t#z�\�grݶ��N6W���4OM����R�^L�Dqtun��Y3՟2�B�������� K^Sc��JɴFqR>�"��s���+_e��b��*Y\��_��`uOG��T]]vL��?f
@@ -88,7 +88,7 @@ module Socket
88
88
 
89
89
  MATCH_IPV4_PRIVATE = /^\s*(?:10\.|192\.168|172.(?:1[6-9]|2[0-9]|3[01])\.|169\.254)/
90
90
 
91
- MATCH_MAC_ADDR = /^\s*(([0-9a-fA-F]{2}[:-]){5}[0-9a-fA-F]{2})|([[0-9a-fA-F]{2}]{6})\s*$/i
91
+ MATCH_MAC_ADDR = /^(?:[[:xdigit:]]{2}([-:]))(?:[[:xdigit:]]{2}\1){4}[[:xdigit:]]{2}$/
92
92
 
93
93
  ##
94
94
  #
@@ -137,7 +137,7 @@ module Socket
137
137
  # Determine whether this is a MAC address
138
138
  #
139
139
  def self.is_mac_addr?(addr)
140
- addr =~ MATCH_MAC_ADDR ? true : false
140
+ !(addr =~ MATCH_MAC_ADDR).nil?
141
141
  end
142
142
 
143
143
  #
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.11"
3
+ VERSION = "0.1.12"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-socket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
metadata.gz.sig CHANGED
Binary file