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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0201f931bd57dcdc4271ce7d1e2caea6cc5496cc
|
4
|
+
data.tar.gz: af84168a88253250f5573a8253338c2e694c1376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a25f8fc724162b49ceca4d3b72c1a768cb62ca430b681abe033014ed834354bf36f30d3e51960fd7087d7c2623f635b406d23806edf4e57f87eb45beb1ee9906
|
7
|
+
data.tar.gz: efbf5a6aa2cc0eb54a8464285dd8a0ea35b4927ebec21f10f82ca6637968093b447859db88df4cad86e4b6259316a391dde0af654d2f4b3595543b8ee5d91045
|
data/Gemfile.lock
CHANGED
@@ -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
|
-
|
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
|
-
|
36
|
-
browser.close
|
37
|
-
deposits
|
42
|
+
extract_deposits_from_html
|
38
43
|
end
|
39
44
|
|
40
45
|
def execute_transfer(transfer_data)
|
data/lib/bank_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2018-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pincers
|