ticket_sharing 0.6.9 → 0.6.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/ticket_sharing/request.rb +7 -1
  2. metadata +2 -2
@@ -6,6 +6,8 @@ module TicketSharing
6
6
  # this should very rarely have to go above 2, and definitely never any higher than 5
7
7
  MAX_REDIRECTS = 2
8
8
 
9
+ CA_PATH = "/etc/ssl/certs"
10
+
9
11
  def initialize(request_class, uri, body)
10
12
  @redirects = 0
11
13
  @uri = URI.parse(uri)
@@ -22,7 +24,11 @@ module TicketSharing
22
24
  @raw_request.body = @body
23
25
 
24
26
  http = Net::HTTP.new(@uri.host, @uri.port)
25
- http.use_ssl = true if @uri.scheme == 'https'
27
+
28
+ if @uri.scheme == 'https'
29
+ http.use_ssl = true
30
+ http.ca_path = CA_PATH if File.exist?(CA_PATH)
31
+ end
26
32
 
27
33
  @raw_response = http.start do |http|
28
34
  http.request(@raw_request)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticket_sharing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.9
4
+ version: 0.6.10
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: 2012-07-31 00:00:00.000000000 Z
12
+ date: 2013-01-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: josh@zendesk.com