bank_scrap 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/bank_scrap/banks/ing.rb +2 -1
- data/lib/bank_scrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce7f4d32e3f3900721ec3a2ab289f9cb15ce8968
|
4
|
+
data.tar.gz: 8ecc35df726bc45669b3fde9ebf9f023506e24e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ce34cc53d2c9f7274e66aac5bfe39d5cc672c87ce989967c2d08cf5158c51f77b485a1531fe5f30db200207336568986b025da6125143e17a2799676b1e593c
|
7
|
+
data.tar.gz: e577618b857f9211a8bd34ab8048324fb68cc4276a80e4f5ff92458262ccbe9ced2d99f68f85891f9720d0b0d235ed70e5a6ac637decb11c570b5e92abadcd2d
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# BankScrap
|
2
2
|
|
3
|
+
[![](http://188.166.39.57:3000/badge.svg)](http://188.166.39.57:3000)
|
4
|
+
|
3
5
|
Ruby gem to extract account balance and transactions from banks. You can use it either as command line tool or as a library.
|
4
6
|
|
5
7
|
Feel free to contribute and add your bank if it isn't supported.
|
data/lib/bank_scrap/banks/ing.rb
CHANGED
@@ -205,10 +205,11 @@ module BankScrap
|
|
205
205
|
|
206
206
|
# Build a transaction object from API data
|
207
207
|
def build_transaction(data, account)
|
208
|
+
amount = Money.new(data['amount'] * 100, data['currency'])
|
208
209
|
Transaction.new(
|
209
210
|
account: account,
|
210
211
|
id: data['uuid'],
|
211
|
-
amount:
|
212
|
+
amount: amount,
|
212
213
|
currency: data['EUR'],
|
213
214
|
effective_date: Date.strptime(data['effectiveDate'], "%d/%m/%Y"),
|
214
215
|
description: data['description'],
|
data/lib/bank_scrap/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bank_scrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ismael Sánchez
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-02-
|
14
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|