pagseguro-transparente 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32fff087ac60686db049294df104d2db1875eab0
4
- data.tar.gz: 26d0e9becb1b90d3f4f20546ad23f13fb9ca2472
3
+ metadata.gz: 8b8088b8877906203d00cc2294f9c7f8edacb523
4
+ data.tar.gz: e3046f46a0826f0f95e92737676add99d85c1b90
5
5
  SHA512:
6
- metadata.gz: 3da92e0f9f634f599d700b64eef5c8cfe79d0a6163117deea4a3f7a22e3a306838468567f043a25281e0d64d6f72ea5f4ffc69a5a6802f799b77d4673ae8da85
7
- data.tar.gz: bf29fb0b85366f3a1e4b7839f3cc9077a2d43a38e06a4d8f057ef2511a6c228a66f022844f19d74438a514bef7a0eaf72322efbf6143a6c086e691170edce2cb
6
+ metadata.gz: 4266606973370c28dd3851364c7aaa8ddf39efcc0e74d260814c68d57cb1b8beed2d77265e0b5f87824c15cf2022fbf222965f02769ee40e89dc6d413d196421
7
+ data.tar.gz: 7d5f884876144040e9a9c7d2dbc081e029c514db07ff15cc62418e3a7296efd90a8d5c335859f93c818d3d92035f23c1bf8435d029633329183d5142981947c3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pagseguro-transparente (0.2.0)
4
+ pagseguro-transparente (0.2.1)
5
5
  activemodel
6
6
  httparty (~> 0.13)
7
7
  i18n (~> 0.6)
data/lib/pagseguro.rb CHANGED
@@ -48,6 +48,9 @@ module PagSeguro
48
48
  # The PagSeguro environment.
49
49
  # Only +production+ for now.
50
50
  attr_accessor :environment
51
+
52
+ # Timeout value in seconds for requests.
53
+ attr_accessor :timeout
51
54
  end
52
55
 
53
56
  self.environment = :production
@@ -15,6 +15,7 @@ module PagSeguro
15
15
  def post(path, account = "default", params = {})
16
16
  options = { body: add_credencials(account) }
17
17
  options[:body].merge!(params)
18
+ options[:timeout] = PagSeguro.timeout unless PagSeguro.timeout.blank?
18
19
  self.class.post(path, options)
19
20
  end
20
21
 
@@ -1,3 +1,3 @@
1
1
  module PagSeguro
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -4,10 +4,12 @@ describe PagSeguro do
4
4
  before do
5
5
  PagSeguro.email = "EMAIL"
6
6
  PagSeguro.token = "TOKEN"
7
+ PagSeguro.timeout = 10
7
8
  end
8
9
 
9
10
  it { expect(PagSeguro.email).to eql("EMAIL") }
10
11
  it { expect(PagSeguro.token).to eql("TOKEN") }
12
+ it { expect(PagSeguro.timeout).to eql(10) }
11
13
 
12
14
  context "configuring library" do
13
15
  it "yields PagSeguro" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro-transparente
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cirdes Henrique
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-11-11 00:00:00.000000000 Z
12
+ date: 2014-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel