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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5728e4928e376190709d30ebacdcedb8fef94113
4
- data.tar.gz: 911e7754d1e4d5c5c188ec25c1e19e3e39854b64
3
+ metadata.gz: ce7f4d32e3f3900721ec3a2ab289f9cb15ce8968
4
+ data.tar.gz: 8ecc35df726bc45669b3fde9ebf9f023506e24e9
5
5
  SHA512:
6
- metadata.gz: e215a5088f8c0e212d8b2e51f1e5a51a7018ba6c6fb1706d2f6b3dfb36bb40d6bc20096331b653e34bc105dd8203ca0f7975f8bced8543ffd229b2503a40ef41
7
- data.tar.gz: fd9c1b0500c2c9932ed4460bbcfd31ea8a960b438eb21a299f037865736aa341b8535a4a8b2e83f6163b8e5f9f75ea0540adecc1c46ad86eac68ccf1179d6965
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.
@@ -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: data['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'],
@@ -1,3 +1,3 @@
1
1
  module BankScrap
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-03 00:00:00.000000000 Z
14
+ date: 2015-02-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler