bankscrap 2.0.3 → 2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c32e364101b8a544031edaabe5ad74cc4eb7e409
|
4
|
+
data.tar.gz: 33ef46ba3371c8ffe37fe655c6e6870239dbcc7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f61cceb18c2890144e1e633de95e4575068b0ce507560dbf2aae15e214fa3e58ea0ccae6d4997df7bac0f2ba657d1c627ce6a15387194687d711316691c86af2
|
7
|
+
data.tar.gz: ff3aae758d8e50385f9e8b07265be36b579ed473a153e4d0314316686983c0ee61cffc2313ea7c1e1b978cb27c99486a23a60e15f8c1efcba42ee4edfc7aded7
|
data/README.md
CHANGED
@@ -68,7 +68,7 @@ Note that you only need to install the gem for your selected bank – the main g
|
|
68
68
|
###### ING Direct
|
69
69
|
ING needs one more argument: your birthday.
|
70
70
|
|
71
|
-
$ bankscrap balance ING --credentials=
|
71
|
+
$ bankscrap balance ING --credentials=dni:YOUR_DNI password:YOUR_BANK_PASSWORD birthday:01/01/1980
|
72
72
|
|
73
73
|
Replace 01/01/1980 with your actual birthday.
|
74
74
|
|
data/lib/bankscrap/cli.rb
CHANGED
@@ -119,7 +119,7 @@ module Bankscrap
|
|
119
119
|
end
|
120
120
|
|
121
121
|
def print_transaction(transaction)
|
122
|
-
color = (transaction.amount >
|
122
|
+
color = (transaction.amount.to_i > 0 ? :green : :red)
|
123
123
|
say transaction.effective_date.strftime('%d/%m/%Y') + ' '
|
124
124
|
say transaction.description.squish.truncate(50).ljust(50) + ' ', color
|
125
125
|
say transaction.amount.format.rjust(15) + ' ', color
|
@@ -2,7 +2,7 @@ module Bankscrap
|
|
2
2
|
class Transaction
|
3
3
|
include Utils::Inspectable
|
4
4
|
|
5
|
-
attr_accessor :id, :amount, :description, :effective_date, :balance, :account
|
5
|
+
attr_accessor :id, :amount, :description, :effective_date, :operation_date, :balance, :account
|
6
6
|
|
7
7
|
def initialize(params = {})
|
8
8
|
raise NotMoneyObjectError.new(:amount) unless params[:amount].is_a?(Money)
|
data/lib/bankscrap/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bankscrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Cuevas
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.
|
164
|
+
rubygems_version: 2.6.8
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Get your bank account details.
|