sailthru-client 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +10 -1
- data/lib/sailthru/client.rb +1 -0
- data/lib/sailthru/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45d35c5d3292ac571513438e6d96a938c493f21
|
4
|
+
data.tar.gz: fa8db0b98ba41d0aa3a7878ba9b7bad7c6c5bb34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a15ccc9c4775a6751a69335c07f617aa849a402a8ea6c299a722c4a946d5583e9d4e318913ee7f6d905d0c812698521bd778a5c5ebd417a0c3dafe4add845c
|
7
|
+
data.tar.gz: 48fbcd89d152026fde063f9b8034bd830a4a8de0715c7a0dcd8892f432c02edf594f43404fec2ec489a8bf93c2122b36862b6d78e86b405d8e8c7baa0110a74a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# sailthru-ruby-client
|
2
2
|
|
3
3
|
For installation instructions, documentation, and examples please visit:
|
4
|
-
[http://getstarted.sailthru.com/developers/api-
|
4
|
+
[http://getstarted.sailthru.com/new-for-developers-overview/api-client-library/ruby-gem](http://getstarted.sailthru.com/new-for-developers-overview/api-client-library/ruby-gem/)
|
5
5
|
|
6
6
|
A simple client library to remotely access the `Sailthru REST API` as per [http://getstarted.sailthru.com/api](http://getstarted.sailthru.com/api)
|
7
7
|
|
@@ -15,6 +15,15 @@ By default, it will make requests in `JSON` format.
|
|
15
15
|
|
16
16
|
This gem supports Ruby 1.9.3 and up.
|
17
17
|
|
18
|
+
## Optional parameters for connection/read timeout settings
|
19
|
+
|
20
|
+
Increase timeout from 10 (default) to 30 seconds.
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
sailthru = Sailthru::Client.new("api-key", "api-secret", "https://api.sailthru.com", nil, nil,
|
24
|
+
{:http_read_timeout => 30, :http_ssl_timeout => 30, :http_open_timeout => 30})
|
25
|
+
```
|
26
|
+
|
18
27
|
## License
|
19
28
|
|
20
29
|
Please see MIT-LICENSE for license.
|
data/lib/sailthru/client.rb
CHANGED
@@ -810,6 +810,7 @@ module Sailthru
|
|
810
810
|
http = Net::HTTP::Proxy(@proxy_host, @proxy_port).new(_uri.host, _uri.port)
|
811
811
|
|
812
812
|
if _uri.scheme == 'https'
|
813
|
+
http.ssl_version = :TLSv1
|
813
814
|
http.use_ssl = true
|
814
815
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if @verify_ssl != true # some openSSL client doesn't work without doing this
|
815
816
|
http.ssl_timeout = @opts[:http_ssl_timeout] || 5
|
data/lib/sailthru/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sailthru-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Prajwal Tuladhar
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|