westpac_com_au 0.6.0 → 0.6.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 +4 -4
- data/CHANGELOG +7 -0
- data/lib/WestpacComAu/Account.rb +0 -16
- data/lib/WestpacComAu/VERSION.rb +1 -1
- data/westpac_com_au.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8553ad989a56d55230e2d87f5e5b113757bbdd58dd0c980e3d26228171380478
|
|
4
|
+
data.tar.gz: ddc5a8b1eebb90eb798f4e3ae9a8a96ce84c3ac47e564f92e990d92250f4cd1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6c6d1d55abc6492efaf5fe8d1df3725f4a07d31afa6801f28f9124a4ece67385a734033cf44e8993c1f3748092168c38bfc7dbf8677be80f9f78290bcbf13a6
|
|
7
|
+
data.tar.gz: 238e274515d2d3c3019f0c0e3a703cc38908476a8c6ba52bcc6e72bd8ab15d4847618b9aec5e2dc0c7f0bba2fb601a7037de380c7b531493d69fa4ce502e1141
|
data/CHANGELOG
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## 20261116
|
|
4
4
|
|
|
5
|
+
0.6.1: - WestpacComAu::Account#login, #validate_args: Now uses superclass WebAccount.
|
|
6
|
+
|
|
7
|
+
1. ~ westpac_com_au.gemspec: webaccount /'~> 0.9'/'~> 0.10'/
|
|
8
|
+
2. - WestpacComAu::Account#login, WebAccount 0.10.0's naming every missing value at once.
|
|
9
|
+
3. - WestpacComAu::Account#validate_args, WebAccount 0.10.0's being inherited.
|
|
10
|
+
4. ~ WestpacComAu::VERSION: /0.6.0/0.6.1/
|
|
11
|
+
|
|
5
12
|
0.6.0: Ready for publishing.
|
|
6
13
|
|
|
7
14
|
1. + westpac_com_au.gemspec
|
data/lib/WestpacComAu/Account.rb
CHANGED
|
@@ -35,11 +35,6 @@ module WestpacComAu
|
|
|
35
35
|
export_button: {css: 'button.export-link'}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
def login(username: nil, password: nil)
|
|
39
|
-
validate_args(username: username || self.username, password: password || self.password)
|
|
40
|
-
super
|
|
41
|
-
end
|
|
42
|
-
|
|
43
38
|
# period is :all, the last year, or :last_month. Without it, from_date and to_date, which default to a year ago and today. Returns the name of the CSV file downloaded.
|
|
44
39
|
def download_transactions(account_number:, period: nil, from_date: nil, to_date: nil)
|
|
45
40
|
from_date, to_date = dates(period: period, from_date: from_date, to_date: to_date)
|
|
@@ -52,17 +47,6 @@ module WestpacComAu
|
|
|
52
47
|
|
|
53
48
|
private
|
|
54
49
|
|
|
55
|
-
def validate_args(args)
|
|
56
|
-
missing_args = []
|
|
57
|
-
args.each do |arg_name, value|
|
|
58
|
-
missing_args << arg_name unless value
|
|
59
|
-
end
|
|
60
|
-
return if missing_args.empty?
|
|
61
|
-
aggregate_error = missing_args.join(', ')
|
|
62
|
-
copula = missing_args.count > 1 ? 'are' : 'is'
|
|
63
|
-
raise ArgumentError, "#{aggregate_error} #{copula} missing."
|
|
64
|
-
end
|
|
65
|
-
|
|
66
50
|
# cookie notice
|
|
67
51
|
|
|
68
52
|
# Didomi draws its notice once the page has loaded, so it's waited for briefly. Where the choice is remembered, as in a profile kept between runs, there's none.
|
data/lib/WestpacComAu/VERSION.rb
CHANGED
data/westpac_com_au.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: westpac_com_au
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -29,14 +29,14 @@ dependencies:
|
|
|
29
29
|
requirements:
|
|
30
30
|
- - "~>"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '0.
|
|
32
|
+
version: '0.10'
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0.
|
|
39
|
+
version: '0.10'
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: minitest
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|