ruby-nmap 0.9.1 → 0.9.2

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: 1ec9653096300b006396e901561274a5894b1911
4
- data.tar.gz: 6de1e05e3c5ca03ca8e9fb01fda0f57a53fd5ba0
3
+ metadata.gz: a8765d23433a0084314d1e77d295a5f4f3634db7
4
+ data.tar.gz: af7b74ff8336e49ddb704100fad33f10656ee959
5
5
  SHA512:
6
- metadata.gz: 964c9a724ea5c614424fcc1fa41c8e0ba17985f57d34c4251d7fa458aa207d56bf6b1df7a2794af6818c9d7dedeb17004fea77557bd1ed2f1eb475747d51dbaf
7
- data.tar.gz: 573184c1bd016b3689538ba5173d607590ba42572016b33c23494faecfbdc33f87a9e70bcab2d5a4d43d75df38e137514b47a2f26fbf7b1d3472ef86f0dca79a
6
+ metadata.gz: e21d33b52f03a2eeee743c81bb614e919be5ea9f160af50d6f6935de90368bbccba4f9989b070607c417b03cc0a21679c06a12afa4a81c951e8ab3e2ac8288d6
7
+ data.tar.gz: 368e3aebd55908e2bc4d0690e58ad51d4aa1c2c66d696d7430d3b53e32f40940348776cd2fdd0bf0bc2c6b47de70b3af325e7de1b8e00981006de433da2f5c53
@@ -1,3 +1,9 @@
1
+ ### 0.9.2 / 2017-01-13
2
+
3
+ * Fix file descriptor leak in {Nmap::XML#initialize} by using
4
+ `File.open(path) { |file| ... }` instead of `File.new(path)`, which keeps the
5
+ file descriptor open until GC collects the `File` instance.
6
+
1
7
  ### 0.9.1 / 2016-07-18
2
8
 
3
9
  * Fixed {Nmap::Host#ipv6} when there are no `ipv6` type addresses.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2014 Postmodern
1
+ Copyright (c) 2009-2017 Postmodern
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
data/README.md CHANGED
@@ -83,7 +83,7 @@ Print NSE script output from an XML scan file:
83
83
 
84
84
  ## License
85
85
 
86
- Copyright (c) 2009-2014 Postmodern
86
+ Copyright (c) 2009-2017 Postmodern
87
87
 
88
88
  See {file:LICENSE.txt} for license information.
89
89
 
@@ -1,4 +1,4 @@
1
1
  module Nmap
2
2
  # ruby-nmap version
3
- VERSION = '0.9.1'
3
+ VERSION = '0.9.2'
4
4
  end
@@ -39,7 +39,7 @@ module Nmap
39
39
  @doc = Nokogiri::XML(document)
40
40
  else
41
41
  @path = File.expand_path(document)
42
- @doc = Nokogiri::XML(open(@path))
42
+ @doc = File.open(@path) { |file| Nokogiri::XML(file) }
43
43
  end
44
44
 
45
45
  yield self if block_given?
@@ -60,7 +60,7 @@ module Nmap
60
60
  # @since 0.8.0
61
61
  #
62
62
  def self.parse(text,&block)
63
- new(Nokogiri::XML(text), &block)
63
+ new(Nokogiri::XML(text),&block)
64
64
  end
65
65
 
66
66
  #
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.1
4
+ version: 0.9.2
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-18 00:00:00.000000000 Z
11
+ date: 2017-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - nmap >= 5.00
159
159
  rubyforge_project:
160
- rubygems_version: 2.4.7
160
+ rubygems_version: 2.5.2
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: A Ruby interface to Nmap.