money_s3 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: 8e219b2f5b8a348583051fceb6947614d4f18cb35581bb98b846b247c587e168
4
- data.tar.gz: b773d23e3528107c845406e287ec9df8be91d50f6a374fe871a7feb17222b34b
3
+ metadata.gz: 5d87a282d86a00bdaf8eb45f861d8f7c97bcf7452918ad08dba20f372e10ed23
4
+ data.tar.gz: 5d031c2ccb6f156c1ba1ba59ca348463360532a09cd4d19d13d43e8456292dc3
5
5
  SHA512:
6
- metadata.gz: 370e4c82225e9255754daf03b9bdd5f5d49ad067368959821313e40a3154a099b048675f30d60ebcc277db27736229844ab79c5563ff9bfdf325ec2f67653526
7
- data.tar.gz: d2caa678acf50542b67fdc7d3c94fac54071fcc65797dfc14ffcd33e7300569e2169584a71e7a068bec6fa6e597a36d15ff772183d4a17fb1921e2307b9c9642
6
+ metadata.gz: 0f6049996b7d440dfbdcf539af8d23b1935cf629e04ded55f846a3d74308e71d18e9cf378ac27837007e95dbd011817b2f1bc21304091c66a080601081a9fbc4
7
+ data.tar.gz: 49e89cf98b5c32f3910322b813ef76ede1629e39951c62a85253e1d289ed419187f5e3791492c84d74775518771576723d2900dd43c6d8feb9f888cc70ac58f5
data/README.md CHANGED
@@ -56,6 +56,7 @@ Then call `#to_xml` on the generator and pass it an array containing hashes with
56
56
  transactions = [
57
57
  { :date => #<Date: 2019-12-05 ((2458823j,0s,0n),+0s,2299161j)>,
58
58
  :transaction_id => "121205SI201442",
59
+ :my_bank_account_id => "ACC1", # if given it overwrites the one from configuration
59
60
  :amount => 8500.0,
60
61
  :statement_id => "012/00001",
61
62
  :variable_symbol => "0000112019",
@@ -28,7 +28,7 @@ module MoneyS3
28
28
  dat_pln: item[:date],
29
29
  vypis: item[:statement_id],
30
30
  celkem: amount,
31
- ucet: { zkrat: @my_bank_account_id },
31
+ ucet: { zkrat: item.fetch(:my_bank_account_id, @my_bank_account_id) },
32
32
  popis: item[:description],
33
33
  pozn: item[:note],
34
34
  var_sym: item[:variable_symbol],
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = 'money_s3'
6
- spec.version = '2.1.0'
6
+ spec.version = '2.2.0'
7
7
  spec.authors = ['Premysl Donat']
8
8
  spec.email = ['pdonat@seznam.cz']
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money_s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat