ruby-nmap 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +6 -0
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/nmap/version.rb +1 -1
- data/lib/nmap/xml.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8765d23433a0084314d1e77d295a5f4f3634db7
|
4
|
+
data.tar.gz: af7b74ff8336e49ddb704100fad33f10656ee959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e21d33b52f03a2eeee743c81bb614e919be5ea9f160af50d6f6935de90368bbccba4f9989b070607c417b03cc0a21679c06a12afa4a81c951e8ab3e2ac8288d6
|
7
|
+
data.tar.gz: 368e3aebd55908e2bc4d0690e58ad51d4aa1c2c66d696d7430d3b53e32f40940348776cd2fdd0bf0bc2c6b47de70b3af325e7de1b8e00981006de433da2f5c53
|
data/ChangeLog.md
CHANGED
@@ -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.
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
data/lib/nmap/version.rb
CHANGED
data/lib/nmap/xml.rb
CHANGED
@@ -39,7 +39,7 @@ module Nmap
|
|
39
39
|
@doc = Nokogiri::XML(document)
|
40
40
|
else
|
41
41
|
@path = File.expand_path(document)
|
42
|
-
@doc =
|
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)
|
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.
|
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:
|
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.
|
160
|
+
rubygems_version: 2.5.2
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: A Ruby interface to Nmap.
|