bank_api 1.1.0 → 1.1.1

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: 824a1460fdfece4945b291da2398b9c9ef6d4860937dd91b294dbcbd90829478
4
- data.tar.gz: 4cfdce182a2199b8df6125ca3761eb4f654cc5e6a631c48d378a5d9c7f5de5fe
3
+ metadata.gz: 7cfbbeb906a393612da18e76240e1191c588a4b8352d857ae415840b941418d1
4
+ data.tar.gz: ba4f03da8a3db36b41e9cde6a6c585553697692b3f147e79071a29b4bacbc4d1
5
5
  SHA512:
6
- metadata.gz: d35ca4393a0bf873515a6b4c8f40456d9a43191ad49e606589b77429f4c4a27f6c52349dba9d65e735b592e60bc7580fae91489acbfa5b7c4ae56a0bd40e315e
7
- data.tar.gz: 22f355ac3a900204d633201a1000440f39d638a2e0b4b2010358af40efdc772f313d89adc6cc5655909cc2281c0db4e4197240a345ef9363df49ff321ef1cc09
6
+ metadata.gz: 66b89f83d204608b81dc9d2da02c3a99e7a4e3d573c484c618994f2dac02094997dd47c860070b32e408f27467a5dd3632dcdc4167ded5761b1949d76b3ce06e
7
+ data.tar.gz: 94b5fb29ad967b02ce0d736792397650eef2a1821453dd7f7dc2778554ab870615c4715a575d33d40e894e724723320d4eafc55993b731bcba765c3098eea1f8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bank_api (1.1.0)
4
+ bank_api (1.1.1)
5
5
  pincers
6
6
  rest-client
7
7
  timezone (~> 1.0)
@@ -93,9 +93,7 @@ module BankApi::Clients::BancoSecurity
93
93
  def get_deposits_from_transfers_section
94
94
  goto_deposits
95
95
  select_deposits_range
96
- deposits = deposits_from_txt
97
- validate_deposits(deposits) unless deposits.empty?
98
- deposits
96
+ deposits_from_txt
99
97
  end
100
98
 
101
99
  def get_deposits_from_balance_section(account_number)
@@ -106,12 +106,6 @@ module BankApi::Clients::BancoSecurity
106
106
  browser.search("a:contains('Descargar TXT')").first.attribute("href")
107
107
  end
108
108
 
109
- def total_deposits
110
- pages_info = wait(".k-pager-info")
111
- matches = pages_info.text.match(/(\d+)[a-z\s-]+(\d+)[a-z\s-]+(\d+)/)
112
- matches[3].to_i
113
- end
114
-
115
109
  def any_deposits?
116
110
  browser.search(
117
111
  "#gridPrincipalRecibidas " \
@@ -119,14 +113,6 @@ module BankApi::Clients::BancoSecurity
119
113
  ).none?
120
114
  end
121
115
 
122
- def validate_deposits(deposits)
123
- total_deposits_ = total_deposits
124
- unless deposits.count == total_deposits_
125
- raise BankApi::Deposit::QuantityError, "Expected #{total_deposits_} deposits," +
126
- " got #{deposits.count}."
127
- end
128
- end
129
-
130
116
  def timezone
131
117
  @timezone ||= Timezone['America/Santiago']
132
118
  end
@@ -6,7 +6,6 @@ module BankApi
6
6
  end
7
7
  module Deposit
8
8
  class FetchError < StandardError; end
9
- class QuantityError < StandardError; end
10
9
  end
11
10
  module Withdrawal
12
11
  class FetchError < StandardError; end
@@ -1,3 +1,3 @@
1
1
  module BankApi
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
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: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - oaestay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-30 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pincers