zenvia 0.0.4 → 0.0.5

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: e5383f5bb02d847cb61e775dd0477cf25c7f858a
4
- data.tar.gz: 680a851441688e5cf1a134e65b0de830ab01ca2c
3
+ metadata.gz: 5304a90b93caae0fb3dfb8abd05b7eb5584233e6
4
+ data.tar.gz: c5bc14b97159fed1ad03d6f05f80f9f79c26e143
5
5
  SHA512:
6
- metadata.gz: 1b60e9c96f1d737f4394a9e43d78e66e37f4bb8d88300e96bbc424f6bb3241be30b441e5c3b05e56547fb3b072976f03570e5b550894739b772b5b1dff1c37dd
7
- data.tar.gz: a0925de515127be510d4f5455138760a698b786fd4e5d55758a5d909a8b161a594d290d0d8112836e8338c32e4217887dcc00aee0c758faf9072857fac9f71bf
6
+ metadata.gz: 315ff0d2eedd60a263c821daa4cda522d5f37b350f97bbc61a68873febb65caae9ea152fb695a4eaf0ef0af2994cc70176a33fdf61a28e66ea6516d7286c810d
7
+ data.tar.gz: 07c472bf5dff01ea9e3f9fd1b690fe5f59ad48a0c193effae9ff3f4cc1e389bfe8889ff9915e96f2e62d359f4ba26287efa681a81d22ca545c5345c7454c3722
@@ -2,10 +2,14 @@ module Zenvia
2
2
  class Config
3
3
  include Singleton
4
4
 
5
- attr_accessor :account, :code, :timeout
5
+ attr_accessor :account, :code, :timeout, :connect_timeout
6
6
 
7
7
  def timeout
8
8
  @timeout || 10
9
9
  end
10
+
11
+ def connect_timeout
12
+ @connect_timeout || 5
13
+ end
10
14
  end
11
15
  end
@@ -6,8 +6,9 @@ module Zenvia
6
6
  attr_reader :params, :response
7
7
 
8
8
  def initialize
9
- session.base_url = BASE_URL
10
- session.timeout = Zenvia.config.timeout
9
+ session.base_url = BASE_URL
10
+ session.timeout = Zenvia.config.timeout
11
+ session.connect_timeout = Zenvia.config.connect_timeout
11
12
  end
12
13
 
13
14
  def post(params)
@@ -1,3 +1,3 @@
1
1
  module Zenvia
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zenvia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parafuzo Core Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2014-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler