sendhub 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  module Sendhub
2
2
  class Client
3
3
 
4
- VERSION = '0.1.13'
4
+ VERSION = '0.1.14'
5
5
 
6
6
  def initialize(config=nil)
7
7
  config[:host] ||= 'api.sendhub.net'
data/lib/sendhub/http.rb CHANGED
@@ -23,7 +23,7 @@ module Sendhub
23
23
  if @uri.scheme == 'https'
24
24
  connection.use_ssl = true
25
25
  connection.verify_mode = OpenSSL::SSL::VERIFY_PEER
26
- connection.ca_file = 'lib/sendhub/ca.pem'
26
+ connection.ca_file = File.expand_path(File.join(File.dirname(__FILE__), "ca.pem"))
27
27
  connection.verify_callback = proc { |preverify_ok, ssl_context| verify_ssl_certificate(preverify_ok, ssl_context) }
28
28
  end
29
29
  connection.start do |http|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendhub
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 13
10
- version: 0.1.13
9
+ - 14
10
+ version: 0.1.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Taylor