unrest 0.1.2 → 0.1.3

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: c732bb4e6c9c8074259129c101f71493718798fb
4
- data.tar.gz: f22a644b6a0434c213e53180faf09d4bc14048fe
3
+ metadata.gz: 5f39214ed9228863c3edad78a3b06293deb6829b
4
+ data.tar.gz: 12a97ba60ad48de667d1c9fbea31d7b5acb1b23a
5
5
  SHA512:
6
- metadata.gz: 8c59ad4ce68f8e317b5a86a53424072eaff8b1d2cb7b68091a1a97f04fa8747986a0a457ce9ceacf4486535f8a59dc9d2cfe0819d7453be6d40d8211a81b592a
7
- data.tar.gz: 10cca679aeeafa7dd2df12a656fe9009e8c48a8d3f29c9ce029d75723389bea1dcbb9fe808f93d16f1cca05987939a931b187983987ff6ebbd59f69f56bd57ef
6
+ metadata.gz: e66e8da99e4983f97346adb45bdc86147652deb16201c9644f2cac1d692dcd537b75f47328618f68716caff988064bb6ed4edaa16f6956aa61a4211f697a6d29
7
+ data.tar.gz: 42f820666496e1f3198670ba4b6a4c46a92a4ccd2adfd31194be86f9717d6a3841d6c8d38e6764d795511b21e276dbb75f30230c671fd2fff3c4ce1e6d543293
@@ -45,7 +45,7 @@ class Unrest
45
45
  private
46
46
 
47
47
  def uri path=nil
48
- URI.parse([url, path].compact.join('/'))
48
+ URI.parse([@url, path].compact.join('/'))
49
49
  end
50
50
 
51
51
  def ssl? uri
@@ -59,8 +59,8 @@ class Unrest
59
59
  http_client.open_timeout = configuration.timeout
60
60
  http_client.read_timeout = configuration.timeout
61
61
 
62
- http_client.key = options.fetch(:http_client_key, nil)
63
- http_client.cert = options.fetch(:http_client_cert, nil)
62
+ http_client.key = OpenSSL::PKey::RSA.new(options.fetch(:http_client_key, nil))
63
+ http_client.cert = OpenSSL::X509::Certificate.new(options.fetch(:http_client_cert, nil))
64
64
 
65
65
  http_client.set_debug_output($stdout)
66
66
 
@@ -1,3 +1,3 @@
1
1
  class Unrest
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Eksteen