bank_api 0.2.9 → 0.3.0

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: 0df5c067f6382346c7503d9f7aee1c3bb68d4d7a
4
- data.tar.gz: b45f0c44b411b4af660a06d72cd82a8fce774d8a
3
+ metadata.gz: 0201f931bd57dcdc4271ce7d1e2caea6cc5496cc
4
+ data.tar.gz: af84168a88253250f5573a8253338c2e694c1376
5
5
  SHA512:
6
- metadata.gz: 3569ff7aef5f550d0f1d5bbe3f298dca8ea54313996075d975af3c9bffd8ffd287d3e4aa51e4329e45722cf71a26bcd23e9be4c8b2dfbcfe65eb52a7547dbb2e
7
- data.tar.gz: 6e9a3d5b2f9c87a4bf269e307e9a46c29387d93af88359a06510e15212bba0966065e6c202ea3b4ca37efa9437446aa69123496607d5507590a7f5b063090c9a
6
+ metadata.gz: a25f8fc724162b49ceca4d3b72c1a768cb62ca430b681abe033014ed834354bf36f30d3e51960fd7087d7c2623f635b406d23806edf4e57f87eb45beb1ee9906
7
+ data.tar.gz: efbf5a6aa2cc0eb54a8464285dd8a0ea35b4927ebec21f10f82ca6637968093b447859db88df4cad86e4b6259316a391dde0af654d2f4b3595543b8ee5d91045
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bank_api (0.2.9)
4
+ bank_api (0.3.0)
5
5
  pincers
6
6
  timezone (~> 1.0)
7
7
 
@@ -39,12 +39,17 @@ module BankApi::Clients
39
39
 
40
40
  def get_deposits
41
41
  login
42
+ deposits_first_try = get_deposits_try
43
+ deposits_second_try = get_deposits_try
44
+ browser.close
45
+ deposits_first_try == deposits_second_try ? deposits_first_try : []
46
+ end
47
+
48
+ def get_deposits_try
42
49
  goto_deposits
43
50
  select_deposits_range
44
51
  submit_deposits_form
45
- deposits = extract_deposits_from_html
46
- browser.close
47
- deposits
52
+ extract_deposits_from_html
48
53
  end
49
54
 
50
55
  def login
@@ -29,12 +29,17 @@ module BankApi::Clients::BancoSecurity
29
29
 
30
30
  def get_deposits
31
31
  login
32
+ deposits_first_try = get_deposits_try
33
+ deposits_second_try = get_deposits_try
34
+ browser.close
35
+ deposits_first_try == deposits_second_try ? deposits_first_try : []
36
+ end
37
+
38
+ def get_deposits_try
32
39
  goto_company_dashboard
33
40
  goto_deposits
34
41
  select_deposits_range
35
- deposits = extract_deposits_from_html
36
- browser.close
37
- deposits
42
+ extract_deposits_from_html
38
43
  end
39
44
 
40
45
  def execute_transfer(transfer_data)
@@ -1,3 +1,3 @@
1
1
  module BankApi
2
- VERSION = "0.2.9"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bank_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - oaestay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-05 00:00:00.000000000 Z
11
+ date: 2018-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pincers