tappay_ruby 0.16.1 → 0.17.0

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
  SHA256:
3
- metadata.gz: 15c44ff4750b4c720db7deb88827b0472dd40ee4c98ca1651bd4b54b25d31566
4
- data.tar.gz: 199a823aa6332a3d12769bdf9b0ef32d938aba6594f3365d1d8a3212d3475837
3
+ metadata.gz: f929ff6b0eda0d0c85f8388ac2b6a9a3d7ba8735cc5a7e04b264712de942065b
4
+ data.tar.gz: 33a766312347b10723c7d8ad10fd57952caa878424264a50521f7d772992ac09
5
5
  SHA512:
6
- metadata.gz: 3c8730263b0071ebdcee35dc634eb5abd7f863a37ff4c2132511579ae0988496d22236a3467215365157fea82fac33aca99fc4825606020787b4591b4463a33d
7
- data.tar.gz: '095757caf7c639691c14269e86bb246a01f90083cf1115a725381061da3a7daf23021c3861c6d1ca4e189e2b5ea48f52592013d3daa6a2628e2bfd5e075b001e'
6
+ metadata.gz: 28a0af7921fd4b7489701efb4564f280d5aaa1106af243c0595a94e44eae3f5f582298accdc183e4744a204775a0325cd44d22effa546d94de3af37c013f477b
7
+ data.tar.gz: 78026a104f92b6a58adb798d95e7b8a419a104f6e23490e53b10ecabb5181c178dad3c63c13f8f8d2b61369d1b41c2ce05012ab3286e188e7bd13c9945912063
data/lib/tappay/client.rb CHANGED
@@ -9,6 +9,7 @@ module Tappay
9
9
 
10
10
  def initialize(options = {})
11
11
  @options = options
12
+ @timeout = options.fetch(:timeout, 25)
12
13
  end
13
14
 
14
15
  def post(url, data)
@@ -35,7 +36,7 @@ module Tappay
35
36
  end
36
37
 
37
38
  def timeout
38
- 25 # seconds
39
+ @timeout
39
40
  end
40
41
 
41
42
  def validate_response
data/lib/tappay/refund.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  module Tappay
2
2
  class Refund < Client
3
3
  def initialize(options = {})
4
- super
4
+ super(timeout: 30)
5
+ @options = options
5
6
  validate_options!
6
7
  end
7
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tappay
4
- VERSION = "0.16.1"
4
+ VERSION = '0.17.0'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tappay_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zac
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-26 00:00:00.000000000 Z
10
+ date: 2025-02-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: httparty