docusignsdk 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{docusignsdk}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nicholas reed"]
12
- s.date = %q{2011-08-28}
12
+ s.date = %q{2011-11-02}
13
13
  s.description = %q{DocuSign Ruby Gem}
14
14
  s.email = %q{nicholas.a.reed@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -20,13 +20,7 @@ module Docusign
20
20
  def login(options={})
21
21
 
22
22
  connection = Docusign::APIServiceSoap.new
23
-
24
- # newly added by Nick for Heroku SSL
25
- #connection.options["protocol.http.ssl_config.verify_mode"] = nil
26
- #connection.options["protocol.http.ssl_config.verify_mode"] = OpenSSL::SSL::VERIFY_PEER
27
- #connection.options["protocol.http.ssl_config.ca_file"] = '/usr/lib/ssl/certs/ca-certificates.crt'
28
- connection.options["protocol.http.ssl_config.verify_mode"] = Docusign::Config[:verify_mode]
29
- connection.options["protocol.http.ssl_config.ca_file"] = Docusign::Config[:ca_file]
23
+ connection = configure_ssl(connection)
30
24
 
31
25
  if options[:integrators_key]
32
26
  header = IntegratorsKeyAuthHeaderHandler.new(
@@ -53,17 +47,18 @@ module Docusign
53
47
  def credentials(email, password, endpoint_url=nil)
54
48
 
55
49
  connection = Docusign::Credential::CredentialSoap.new
56
-
57
- # newly added by Nick for Heroku SSL
58
- #connection.options["protocol.http.ssl_config.verify_mode"] = OpenSSL::SSL::VERIFY_PEER
59
- #connection.options["protocol.http.ssl_config.ca_file"] = '/usr/lib/ssl/certs/ca-certificates.crt'
60
- connection.options["protocol.http.ssl_config.verify_mode"] = Docusign::Config[:verify_mode]
61
- connection.options["protocol.http.ssl_config.ca_file"] = Docusign::Config[:ca_file]
50
+ connection = configure_ssl(connection)
62
51
 
63
52
  connection.endpoint_url = endpoint_url if endpoint_url
64
53
 
65
54
  connection.login(:email => email, :password => password).loginResult
66
55
  end
56
+
57
+ def configure_ssl(connection)
58
+ connection.options["protocol.http.ssl_config.verify_mode"] = Docusign::Config[:verify_mode] if Docusign::Config[:verify_mode]
59
+ connection.options["protocol.http.ssl_config.ca_file"] = Docusign::Config[:ca_file] if Docusign::Config[:ca_file]
60
+ connection
61
+ end
67
62
  end
68
63
  end
69
64
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - nicholas reed
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-28 00:00:00 +00:00
17
+ date: 2011-11-02 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -132,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - ">="
134
134
  - !ruby/object:Gem::Version
135
- hash: -465261581
135
+ hash: 700789619
136
136
  segments:
137
137
  - 0
138
138
  version: "0"