fine_ants 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fine_ants/adapters/betterment.rb +3 -1
- data/lib/fine_ants/adapters/chase.rb +8 -7
- data/lib/fine_ants/adapters/simple.rb +15 -4
- data/lib/fine_ants/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec56d5872cd21507fba0d933ad1832ec6cff5e54
|
4
|
+
data.tar.gz: 803a523efd4633eda2520730953ae1641d7356ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc7d0087d6975cef5de69418c33f764e14bee553964cf88ba643b8dc70de514c6b8d16c333499b8f2d4501d5b6581a4fa8c14c0e2dc94bc9370337063886c14
|
7
|
+
data.tar.gz: a7a9921598b9fd3072085ab36cf4943399cb22bd8564d4d430665e57f3e3d499882633a3d7872df47372fc2bbfaef3b193cf3913afd655f2c3a3428eb5037392
|
@@ -30,7 +30,9 @@ module FineAnts
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def download
|
33
|
-
|
33
|
+
betterment_accounts = find("h2", text: "Betterment Accounts").
|
34
|
+
find(:xpath, "../..")
|
35
|
+
accounts = betterment_accounts.all(".SummaryTable-card")
|
34
36
|
accounts.map do |account|
|
35
37
|
{
|
36
38
|
:adapter => :betterment,
|
@@ -10,6 +10,7 @@ module FineAnts
|
|
10
10
|
|
11
11
|
def login
|
12
12
|
visit "https://www.chase.com"
|
13
|
+
|
13
14
|
within_frame(find("#logonbox")) do
|
14
15
|
fill_in "Username", :with => @user
|
15
16
|
fill_in "Password", :with => @password
|
@@ -19,6 +20,7 @@ module FineAnts
|
|
19
20
|
sleep 0.1
|
20
21
|
click_on "Sign in"
|
21
22
|
end
|
23
|
+
|
22
24
|
verify_login!
|
23
25
|
end
|
24
26
|
|
@@ -30,15 +32,14 @@ module FineAnts
|
|
30
32
|
# Select credit card
|
31
33
|
find("h3", text: "CREDIT CARDS")
|
32
34
|
.find(:xpath, "../..")
|
33
|
-
.
|
34
|
-
.first("div")
|
35
|
+
.first(".account-tile")
|
35
36
|
.click
|
36
37
|
|
37
|
-
credit_card_table = find("
|
38
|
+
credit_card_table = find("div.account")
|
38
39
|
|
39
|
-
balance = credit_card_table.find("#
|
40
|
-
available_balance = credit_card_table.find("#
|
41
|
-
next_due_date = credit_card_table.find("#
|
40
|
+
balance = credit_card_table.find("#accountCurrentBalanceWithToolTipValue").text
|
41
|
+
available_balance = credit_card_table.find("#availableCreditWithTransferBalanceValue").text
|
42
|
+
next_due_date = credit_card_table.find("#nextPaymentDueDateValue").text
|
42
43
|
|
43
44
|
accounts = [
|
44
45
|
{
|
@@ -68,7 +69,7 @@ module FineAnts
|
|
68
69
|
end
|
69
70
|
|
70
71
|
def verify_login!
|
71
|
-
find
|
72
|
+
find "#logonDetailsContainer"
|
72
73
|
rescue Capybara::ElementNotFound
|
73
74
|
raise FineAnts::LoginFailedError.new
|
74
75
|
end
|
@@ -12,10 +12,21 @@ module FineAnts
|
|
12
12
|
visit "https://www.simple.com"
|
13
13
|
click_link "Log In"
|
14
14
|
|
15
|
-
fill_in "
|
16
|
-
fill_in "
|
17
|
-
click_button "Sign
|
18
|
-
|
15
|
+
fill_in "login_username", :with => @user
|
16
|
+
fill_in "login_password", :with => @password
|
17
|
+
click_button "Sign In"
|
18
|
+
begin
|
19
|
+
find_field "Enter 4-digit code"
|
20
|
+
return false
|
21
|
+
rescue Capybara::ElementNotFound
|
22
|
+
verify_login!
|
23
|
+
return true
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def two_factor_response(answer)
|
28
|
+
fill_in "Enter 4-digit code", :with => answer
|
29
|
+
click_button "Verify"
|
19
30
|
end
|
20
31
|
|
21
32
|
def download
|
data/lib/fine_ants/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fine_ants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capybara
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
|
-
rubygems_version: 2.6.
|
135
|
+
rubygems_version: 2.6.11
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: Opens your browser and finds your bank account status.
|