bank_scrap 0.0.3 → 0.0.4
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/README.md +6 -1
- data/lib/bank_scrap/cli.rb +4 -4
- data/lib/bank_scrap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33d61fafde1f7ffbfc87e7da3171fd063aecbaa8
|
4
|
+
data.tar.gz: 15c312c337ba38ff1976cf1a9da9ffbe7d6a1458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034b2b526bc7abf50eaaf669e823696842037e4910cd6242ebac9f4e635d6c90053f693aa1d0f7db4df5677db31fb9d52fb7a64983a19d95656623b8259d151c
|
7
|
+
data.tar.gz: 9208005841d935817596cd9d9c6421ade12fd64aed9f0eb30a7e5056eac803998c5bc7f1c0e1d16e557e104ea85eb8ca598fa57d77af5fe60b7f0aa38e0cd410
|
data/README.md
CHANGED
@@ -52,10 +52,15 @@ Or, if you're using Bundler, just add the following to your Gemfile:
|
|
52
52
|
### From terminal
|
53
53
|
Retrieve balance account
|
54
54
|
|
55
|
-
$ bank_scrap balance BANK_NAME --user
|
55
|
+
$ bank_scrap balance BANK_NAME --user YOUR_BANK_USER --password YOUR_BANK_PASSWORD
|
56
56
|
|
57
57
|
BANK_NAME should be in underscore case (`bankinter`, `bbva`).
|
58
58
|
|
59
|
+
If you don't want to pass your user and password everytime you can define them in your .bash_profile by adding:
|
60
|
+
|
61
|
+
export BANK_SCRAP_USER=YOUR_BANK_USER
|
62
|
+
export BANK_SCRAP_PASSWORD=YOUR_BANK_PASSWORD
|
63
|
+
|
59
64
|
### From Ruby code
|
60
65
|
|
61
66
|
You can also use this gem from your own app as library. To do so first you must initialize a Bankscrapper::Bank object
|
data/lib/bank_scrap/cli.rb
CHANGED
@@ -5,8 +5,8 @@ module BankScrap
|
|
5
5
|
class Cli < Thor
|
6
6
|
|
7
7
|
desc "balance BANK", "get account's balance"
|
8
|
-
option :user, default: ENV['
|
9
|
-
option :password, default: ENV['
|
8
|
+
option :user, default: ENV['BANK_SCRAP_USER']
|
9
|
+
option :password, default: ENV['BANK_SCRAP_PASSWORD']
|
10
10
|
option :log, default: false
|
11
11
|
option :debug, default: false
|
12
12
|
def balance(bank)
|
@@ -23,8 +23,8 @@ module BankScrap
|
|
23
23
|
end
|
24
24
|
|
25
25
|
desc "transactions BANK", "get account's transactions"
|
26
|
-
option :user, default: ENV['
|
27
|
-
option :password, default: ENV['
|
26
|
+
option :user, default: ENV['BANK_SCRAP_USER']
|
27
|
+
option :password, default: ENV['BANK_SCRAP_PASSWORD']
|
28
28
|
option :log, default: false
|
29
29
|
option :debug, default: false
|
30
30
|
def transactions(bank)
|
data/lib/bank_scrap/version.rb
CHANGED