ruby-nmap 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a11debc4eeccebd368b11d1d0444dd142f3dc91
4
- data.tar.gz: fa232e147c7cd46e96bd8a15468f6af5b4ff1723
3
+ metadata.gz: 1ec9653096300b006396e901561274a5894b1911
4
+ data.tar.gz: 6de1e05e3c5ca03ca8e9fb01fda0f57a53fd5ba0
5
5
  SHA512:
6
- metadata.gz: 62a04a0bde27b4ae0f9aa015cfa668ca9efe08d596f710c2b01816c9bf6bc333a5f098afb40287f8f918546286ee9414c166624343b9e1ad994009b48b299bec
7
- data.tar.gz: be13fe698e9c8197a6877cdcdd6193118326a683ee52b4e23c3f421ce48594faa333da8ead0cfa466ace383cb08d3433374ea28349e117ded444513b79699baa
6
+ metadata.gz: 964c9a724ea5c614424fcc1fa41c8e0ba17985f57d34c4251d7fa458aa207d56bf6b1df7a2794af6818c9d7dedeb17004fea77557bd1ed2f1eb475747d51dbaf
7
+ data.tar.gz: 573184c1bd016b3689538ba5173d607590ba42572016b33c23494faecfbdc33f87a9e70bcab2d5a4d43d75df38e137514b47a2f26fbf7b1d3472ef86f0dca79a
@@ -1,3 +1,8 @@
1
+ ### 0.9.1 / 2016-07-18
2
+
3
+ * Fixed {Nmap::Host#ipv6} when there are no `ipv6` type addresses.
4
+ * Fixed {Nmap::OS#fingerprint} when there is no `osfingerprint` element.
5
+
1
6
  ### 0.9.0 / 2016-07-14
2
7
 
3
8
  * Added {Nmap::Address#vendor}.
@@ -158,7 +158,7 @@ module Nmap
158
158
  # The IPv6 address of the host.
159
159
  #
160
160
  def ipv6
161
- @ipv6 ||= if (@node.at("address[@addrtype='ipv6']"))
161
+ @ipv6 ||= if (addr = @node.at("address[@addrtype='ipv6']"))
162
162
  addr['addr']
163
163
  end
164
164
  end
@@ -109,7 +109,9 @@ module Nmap
109
109
  # The OS fingerprint.
110
110
  #
111
111
  def fingerprint
112
- @fingerprint ||= @node.at("osfingerprint/@fingerprint").inner_text
112
+ @fingerprint ||= if (fingerprint = @node.at("osfingerprint/@fingerprint"))
113
+ fingerprint.inner_text
114
+ end
113
115
  end
114
116
 
115
117
  #
@@ -1,4 +1,4 @@
1
1
  module Nmap
2
2
  # ruby-nmap version
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-nmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-15 00:00:00.000000000 Z
11
+ date: 2016-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri