blend_spreadsheet_loan_generator 0.1.16 → 0.1.17

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
  SHA256:
3
- metadata.gz: bbb638c6b9da3b44d76b3c6bdcd25ff0c72c859e1f972e5f032b58e202bbb411
4
- data.tar.gz: b104a0c811a1cc485a9914831db47e613af2a7f873aeffa0cb5dfc45859ba8b7
3
+ metadata.gz: ab1273f7e038e128f03cb7880db2c0233968e48369f564ddb2e9626df330b8dd
4
+ data.tar.gz: 90ab851c0a9bd1dd2800a28fe7e293391815ee97072e8be1cd902b0677d23d71
5
5
  SHA512:
6
- metadata.gz: af51b53a9b4073e41d898ee41d8ca6725b04ce50c16300d00f25a0867af0c3ce874290343ac66d3edb5e2096d7210b287b91b77640ce2cd1304557125146dc08
7
- data.tar.gz: 22b8948a0826f7f184672a3a0741514f17a7f133f61c46f7699f73dcd78b27dccf31b0cd24cd531a946b6addc404b6e1ee4b72d24cd555cf2d00bcac6ab17238
6
+ metadata.gz: 83a322704b32486bc37ab697f1fa625646cd424fb12696d822bca1cb44693f59c0ca66e1cf6cb4ea108f586d7904b39e167ce974563e765cc0f3d17d5d581e61
7
+ data.tar.gz: ceeef05aa0320b1823cb250d74505e24548f5812334e4efd24f5af9f480762bbd6a5533d8041a502e5110a89f21ced424ffc444645efa5361fefb19bb5b580b9
@@ -47,7 +47,7 @@ module BlendSpreadsheetLoanGenerator
47
47
  guaranteed_line = values.index { |term| term[:index] == options.fetch(:guaranteed_terms, nil) } || nil
48
48
  total_guaranteed_interests = (
49
49
  if guaranteed_line.present? && guaranteed_line > last_paid_line
50
- values[last_paid_line..guaranteed_line].sum(:period_calculated_interests)
50
+ values[(last_paid_line + 1)..guaranteed_line].sum { |value| value[:period_calculated_interests] }
51
51
  else
52
52
  0
53
53
  end
@@ -1,7 +1,7 @@
1
1
  require 'dry/cli'
2
2
 
3
3
  module BlendSpreadsheetLoanGenerator
4
- VERSION = '0.1.16'.freeze
4
+ VERSION = '0.1.17'.freeze
5
5
 
6
6
  class Version < Dry::CLI::Command
7
7
  desc 'Print version'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blend_spreadsheet_loan_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - MZiserman