fine_ants 1.8.1 → 1.8.2

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
  SHA1:
3
- metadata.gz: bbd573795f1a1dd1d15d131430d843abc0704d83
4
- data.tar.gz: d168ff171a0b0656ddb1f11d33fe3e24cf489d5e
3
+ metadata.gz: ec56d5872cd21507fba0d933ad1832ec6cff5e54
4
+ data.tar.gz: 803a523efd4633eda2520730953ae1641d7356ba
5
5
  SHA512:
6
- metadata.gz: cc6645a8e0e127931f1a5094f0e0b26409e306330b3a75c1f99ebc1c7dfb42b625338abba3a7b68caf7747c9372db0934b9d64d2fbcb06bc6a73c745d0b25d54
7
- data.tar.gz: 857cac428e500f93af6658f881a42c5691846c40323f3818c930477d5405468675bf48b969129de824f3bdda5f01328a3b19dde1a78bcde4e5b26ad3aa0cda91
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
- accounts = all(".SummaryTable-card")
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
- .find("section")
34
- .first("div")
35
+ .first(".account-tile")
35
36
  .click
36
37
 
37
- credit_card_table = find("table.dl-box")
38
+ credit_card_table = find("div.account")
38
39
 
39
- balance = credit_card_table.find("#accountCurrentBalance").text
40
- available_balance = credit_card_table.find("#accountAvailableCreditBalance").text
41
- next_due_date = credit_card_table.find("#nextPaymentDueDate").text
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 '[data-attr="LOGON_DETAILS.lastLogonDetailsLabel"]'
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 "username", :with => @user
16
- fill_in "passphrase", :with => @password
17
- click_button "Sign in"
18
- verify_login!
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
@@ -1,3 +1,3 @@
1
1
  module FineAnts
2
- VERSION = "1.8.1"
2
+ VERSION = "1.8.2"
3
3
  end
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.1
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-09-06 00:00:00.000000000 Z
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.13
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.