ruby-sslyze 0.2.0 → 0.2.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: 7170e79ae6e7d69becc03cea5c84b015253cce4d
4
- data.tar.gz: 06f17142a24b912a7c26983b6dae5b1b8f4c4f86
3
+ metadata.gz: c04db52b8cef3f43b85dc0eeabd6d54ea8677059
4
+ data.tar.gz: 945e8f92174305403a57fedbaee3f0e8aef1241b
5
5
  SHA512:
6
- metadata.gz: 6ec67afa81afa9ad7b3b1ffffc607c810a57b621a7a4f10444b554972d4b19822791b50ecf641cfbe66a963c836f791bd66913784da9426db327aa37720db80b
7
- data.tar.gz: e9282b4878788e92a6c8e4643ff19d57745381701d29f43651e7f794a1cc789315b7e5b7fb4d2c869526a86eb6767a48fbd7bba2bbc622f3a7e51064a198b2c5
6
+ metadata.gz: a6c8c76320828ed9b82cc0f512cf07760d14092730acdb5e07e6ff1d0efdcc822b3f9f21904fd5ffd509d804ab3d845a30a2904f9e22e3f6a0288b55f9d423f2
7
+ data.tar.gz: b8ed037b913ea17bd7f2c583f2e9bd09eb28f4fe3afb53f2ee7e261b61d1e5680241df8b64a5c6b10699b4d77eeecb74e4aea89fd5b80aa30e7a20330e222690
@@ -1,3 +1,9 @@
1
+ ### 0.2.1 / 2017-01-13
2
+
3
+ * Fix file descriptor leak in {SSLyze::XML.open} 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.2.0 / 2016-08-16
2
8
 
3
9
  * Requires sslyze 0.12.x.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2015 Hal Brodigan
1
+ Copyright (c) 2014-2017 Hal Brodigan
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
@@ -60,7 +60,7 @@ Parsing sslyze XML output:
60
60
 
61
61
  ## Copyright
62
62
 
63
- Copyright (c) 2014 Hal Brodigan
63
+ Copyright (c) 2014-2017 Hal Brodigan
64
64
 
65
65
  See {file:LICENSE.txt} for details.
66
66
 
@@ -199,7 +199,8 @@ module SSLyze
199
199
  # @return [Enumerator]
200
200
  # If a no block was given, an Enumerator will be returned.
201
201
  #
202
- # @see {#sslv2}, {#sslv3}
202
+ # @see #sslv2
203
+ # @see #sslv3
203
204
  #
204
205
  def each_ssl_protocol
205
206
  return enum_for(__method__) unless block_given?
@@ -229,7 +230,9 @@ module SSLyze
229
230
  # @return [Enumerator]
230
231
  # If a no block was given, an Enumerator will be returned.
231
232
  #
232
- # @see {#tlsv1}, {#tlsv1_1}, {#tlsv1_2}
233
+ # @see #tlsv1
234
+ # @see #tlsv1_1
235
+ # @see #tlsv1_2
233
236
  #
234
237
  def each_tls_protocol
235
238
  return enum_for(__method__) unless block_given?
@@ -260,7 +263,11 @@ module SSLyze
260
263
  # @return [Enumerator]
261
264
  # If a no block was given, an Enumerator will be returned.
262
265
  #
263
- # @see {#sslv2}, {#sslv3}, {#tlsv1}, {#tlsv1_1}, {#tlsv1_2}
266
+ # @see #sslv2
267
+ # @see #sslv3
268
+ # @see #tlsv1
269
+ # @see #tlsv1_1
270
+ # @see #tlsv1_2
264
271
  #
265
272
  def each_protocol(&block)
266
273
  return enum_for(__method__) unless block
@@ -1,4 +1,4 @@
1
1
  module SSLyze
2
2
  # ruby-sslyze version
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
@@ -42,7 +42,7 @@ module SSLyze
42
42
  # @return [XML]
43
43
  #
44
44
  def self.open(path)
45
- new(Nokogiri::XML(File.open(path)))
45
+ new(File.open(path) { |file| Nokogiri::XML(file) })
46
46
  end
47
47
 
48
48
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-sslyze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Brodigan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-16 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: rprogram
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - sslyze 0.12.x
142
142
  rubyforge_project:
143
- rubygems_version: 2.4.7
143
+ rubygems_version: 2.5.2
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Ruby interface to sslyze