sailthru-client 4.0.2 → 4.0.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: b193c03720b5d9f1c40aea0fa5560889e62fe87e
4
- data.tar.gz: 6a5d89224f591de5eb35507bfd389b953940d846
3
+ metadata.gz: b45d35c5d3292ac571513438e6d96a938c493f21
4
+ data.tar.gz: fa8db0b98ba41d0aa3a7878ba9b7bad7c6c5bb34
5
5
  SHA512:
6
- metadata.gz: 5cf236a07cb7043a93134ea0640e05af8ee4b5255940802d5b1b149967ebc0dd4bfe0df37f8b0238c288d207940305c8f2fcb96005cff2a938680efb7022b876
7
- data.tar.gz: 5817391a74c1aaba83ee442a4df491d575218ed690a6b8e0b598020a99bbd590f47f2d22b7f3cbac98ea89f3673add64a0d244ef2b5201941a9f6f0bfeec0322
6
+ metadata.gz: 82a15ccc9c4775a6751a69335c07f617aa849a402a8ea6c299a722c4a946d5583e9d4e318913ee7f6d905d0c812698521bd778a5c5ebd417a0c3dafe4add845c
7
+ data.tar.gz: 48fbcd89d152026fde063f9b8034bd830a4a8de0715c7a0dcd8892f432c02edf594f43404fec2ec489a8bf93c2122b36862b6d78e86b405d8e8c7baa0110a74a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 4.0.3
2
+ - Explicitly enable TLS (version 1.0)
3
+
4
+ ## 4.0.2
5
+ - Update contact information
6
+
1
7
  ## 4.0.1 (Jun 27, 2014)
2
8
  - Bug fix for https://github.com/sailthru/sailthru-ruby-client/pull/48
3
9
 
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-libraries/ruby](http://getstarted.sailthru.com/developers/api-libraries/ruby)
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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Sailthru
2
- VERSION = '4.0.2'
2
+ VERSION = '4.0.3'
3
3
  end
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.2
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-02-19 00:00:00.000000000 Z
13
+ date: 2015-05-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json