dohruby 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. data/lib/doh/util/http_helper.rb +3 -2
  2. metadata +2 -2
@@ -68,8 +68,9 @@ class HttpHelper
68
68
  end
69
69
 
70
70
  #shortcut method
71
- def self.load(url, use_ssl = true)
72
- helper = HttpHelper.new(URI.escape(url))
71
+ def self.load(url, use_ssl = true, encode_url = false)
72
+ url = URI.escape(url) if encode_url
73
+ helper = HttpHelper.new(url)
73
74
  helper.nossl if !use_ssl
74
75
  helper.get
75
76
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Makani & Kem Mason