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: 7acae352e094806d2d3d91f64116bfda002d1006
4
- data.tar.gz: 33fa5551a1048c9a973a83c36d28609694ff7c14
3
+ metadata.gz: c32e364101b8a544031edaabe5ad74cc4eb7e409
4
+ data.tar.gz: 33ef46ba3371c8ffe37fe655c6e6870239dbcc7c
5
5
  SHA512:
6
- metadata.gz: f97a7840e982ec378f2c0bd952c334dd77851044e5377fb5f5c2f7b0ae96ac32ce76796927736b36579e69a5159f9cc33558cb1ac9e652596e96dc1cbdb8c6c7
7
- data.tar.gz: 7ee43fa999e96aaf872dce0ce48e694521341be0430aeda236985b269fa5e761aff6f13b436c73b8f618ffcfc52843785df7f8c9366c7f0df5ad722976ba8f55
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=user:YOUR_DNI password:YOUR_BANK_PASSWORD birthday:01/01/1980
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
 
@@ -77,6 +77,7 @@ module Bankscrap
77
77
  amount: REPLACE_ME, # Should be a Money object
78
78
  description: REPLACE_ME,
79
79
  effective_date: REPLACE_ME,
80
+ operation_date: REPLACE_ME,
80
81
  currency: REPLACE_ME,
81
82
  balance: REPLACE_ME # Should be a Money object
82
83
  )
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 > Money.new(0) ? :green : :red)
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)
@@ -1,3 +1,3 @@
1
1
  module Bankscrap
2
- VERSION = '2.0.3'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
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.3
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-03-09 00:00:00.000000000 Z
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.4.8
164
+ rubygems_version: 2.6.8
165
165
  signing_key:
166
166
  specification_version: 4
167
167
  summary: Get your bank account details.