nokogumbo 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. data/lib/nokogumbo.rb +9 -3
  2. metadata +2 -2
data/lib/nokogumbo.rb CHANGED
@@ -42,9 +42,15 @@ module Nokogiri
42
42
  http = Net::HTTP.new(uri.host, uri.port)
43
43
 
44
44
  # TLS / SSL support
45
- if uri.scheme == 'https'
46
- http.use_ssl = true
47
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE
45
+ http.use_ssl = true if uri.scheme == 'https'
46
+
47
+ # Pass through Net::HTTP override values, which currently include:
48
+ # :ca_file, :ca_path, :cert, :cert_store, :ciphers,
49
+ # :close_on_empty_response, :continue_timeout, :key, :open_timeout,
50
+ # :read_timeout, :ssl_timeout, :ssl_version, :use_ssl,
51
+ # :verify_callback, :verify_depth, :verify_mode
52
+ options.each do |key, value|
53
+ http.send "#{key}=", headers.delete(key) if http.respond_to? "#{key}="
48
54
  end
49
55
 
50
56
  request = Net::HTTP::Get.new(uri.request_uri)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogumbo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-22 00:00:00.000000000 Z
12
+ date: 2015-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri