interest_days 0.5.0 → 0.5.2

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: 12518b1ae316f0c47b62233c4b7e48cf26653488c21028a02d0ec455013e4e41
4
- data.tar.gz: 1eab20b63b6c8e62b95a952345743c90f84e079c54fc9620f5b2e33086dc5e83
3
+ metadata.gz: 2883c05efa288b06891b2aac71fca5331c723d1df471b18267f60879a9faad7f
4
+ data.tar.gz: 74379f2e234f43b03c711a26c0ad7fa3cc5ca32fce5bcfacb3ceb329a4f44448
5
5
  SHA512:
6
- metadata.gz: 100baf4853195b3d2fe8a81d3e71b773f038d9684c897d28e8ae715ad4bb199e3d411ecae6a55c931687a13fd0c00b92590eeb9dde36c37ba0ace8332d08ce08
7
- data.tar.gz: 0db0edf6bb9fa4512f2e1c35c04e297e26f7124268d7fb82a6993f7a65a355e1d833e28cf268f5e24d81d972f7b89422306feb40520881369c91df3ac48cb479
6
+ metadata.gz: 72b9afc11e72d1f9b015d8c457187c1f9c3a4d99cf5606a4ae6279eff57df24d8b3ea6d7b659b64920edce0898c8ba5194a532b7c1797c2eef73539b7a7d11b5
7
+ data.tar.gz: b12ea6908e66b813a5d4a8567a5da45a63f612b23b66c2752377dd614e035bb5e260bb4e1595f8e2eef80d37de194ba06b7c90868fc328da8aa996edf945454b
data/.rubocop.yml CHANGED
@@ -1,3 +1,7 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  TargetRubyVersion: 2.7
3
7
  NewCops: enable
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ ## [0.5.2] / 2022-11-11
3
+ ==================
4
+ * Fix ICMA act/act strategy for interest periods longer than one year.
5
+
2
6
  ## [0.5.0] / 2022-11-07
3
7
  ==================
4
8
  * Add ICMA act/act strategy.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- interest_days (0.5.0)
4
+ interest_days (0.5.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,43 +10,45 @@ GEM
10
10
  codecov (0.6.0)
11
11
  simplecov (>= 0.15, < 0.22)
12
12
  coderay (1.1.3)
13
- diff-lcs (1.4.4)
13
+ diff-lcs (1.5.0)
14
14
  docile (1.4.0)
15
+ json (2.6.2)
15
16
  method_source (1.0.0)
16
- parallel (1.20.1)
17
- parser (3.0.2.0)
17
+ parallel (1.22.1)
18
+ parser (3.1.2.1)
18
19
  ast (~> 2.4.1)
19
20
  pry (0.13.1)
20
21
  coderay (~> 1.1)
21
22
  method_source (~> 1.0)
22
- rainbow (3.0.0)
23
+ rainbow (3.1.1)
23
24
  rake (13.0.6)
24
- regexp_parser (2.1.1)
25
+ regexp_parser (2.5.0)
25
26
  rexml (3.2.5)
26
- rspec (3.10.0)
27
- rspec-core (~> 3.10.0)
28
- rspec-expectations (~> 3.10.0)
29
- rspec-mocks (~> 3.10.0)
30
- rspec-core (3.10.1)
31
- rspec-support (~> 3.10.0)
32
- rspec-expectations (3.10.1)
27
+ rspec (3.11.0)
28
+ rspec-core (~> 3.11.0)
29
+ rspec-expectations (~> 3.11.0)
30
+ rspec-mocks (~> 3.11.0)
31
+ rspec-core (3.11.0)
32
+ rspec-support (~> 3.11.0)
33
+ rspec-expectations (3.11.0)
33
34
  diff-lcs (>= 1.2.0, < 2.0)
34
- rspec-support (~> 3.10.0)
35
- rspec-mocks (3.10.2)
35
+ rspec-support (~> 3.11.0)
36
+ rspec-mocks (3.11.1)
36
37
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.10.0)
38
- rspec-support (3.10.2)
39
- rubocop (1.18.3)
38
+ rspec-support (~> 3.11.0)
39
+ rspec-support (3.11.0)
40
+ rubocop (1.35.0)
41
+ json (~> 2.3)
40
42
  parallel (~> 1.10)
41
- parser (>= 3.0.0.0)
43
+ parser (>= 3.1.2.1)
42
44
  rainbow (>= 2.2.2, < 4.0)
43
45
  regexp_parser (>= 1.8, < 3.0)
44
- rexml
45
- rubocop-ast (>= 1.7.0, < 2.0)
46
+ rexml (>= 3.2.5, < 4.0)
47
+ rubocop-ast (>= 1.20.1, < 2.0)
46
48
  ruby-progressbar (~> 1.7)
47
49
  unicode-display_width (>= 1.4.0, < 3.0)
48
- rubocop-ast (1.7.0)
49
- parser (>= 3.0.1.1)
50
+ rubocop-ast (1.21.0)
51
+ parser (>= 3.1.1.0)
50
52
  rubocop-rake (0.6.0)
51
53
  rubocop (~> 1.0)
52
54
  rubocop-rspec (2.4.0)
@@ -59,12 +61,10 @@ GEM
59
61
  simplecov_json_formatter (~> 0.1)
60
62
  simplecov-html (0.12.3)
61
63
  simplecov_json_formatter (0.1.3)
62
- unicode-display_width (2.0.0)
64
+ unicode-display_width (2.2.0)
63
65
 
64
66
  PLATFORMS
65
- x86_64-darwin-19
66
- x86_64-darwin-20
67
- x86_64-linux
67
+ ruby
68
68
 
69
69
  DEPENDENCIES
70
70
  codecov (~> 0.6.0)
@@ -78,4 +78,4 @@ DEPENDENCIES
78
78
  simplecov (~> 0.21.2)
79
79
 
80
80
  BUNDLED WITH
81
- 2.2.33
81
+ 2.3.17
@@ -5,7 +5,7 @@ require_relative "lib/interest_days/version"
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "interest_days"
7
7
  spec.version = InterestDays::VERSION
8
- spec.authors = ["Eugen Mueller", "Kevin Liebholz"]
8
+ spec.authors = ["Eugen Mueller", "Kevin Liebholz", "Cassy Dodd"]
9
9
  spec.email = ["eugen.mllr@gmail.com"]
10
10
 
11
11
  spec.summary = "Interest day calculation"
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.7.0"
16
16
 
17
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'https://mygemserver.com'"
18
17
 
19
18
  spec.metadata["homepage_uri"] = spec.homepage
20
19
  spec.metadata["source_code_uri"] = "https://github.com/eugenmueller/interest_days"
@@ -10,7 +10,7 @@ module InterestDays
10
10
  def day_count_factor
11
11
  return days.fdiv(start_date_days_in_year) if start_date_and_end_date_in_same_year?
12
12
 
13
- if years_in_between_factor > 1
13
+ if years_in_between_factor.positive?
14
14
  return start_date_period_factor + years_in_between_factor + end_date_period_factor
15
15
  end
16
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InterestDays
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.2"
5
5
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interest_days
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mueller
8
8
  - Kevin Liebholz
9
+ - Cassy Dodd
9
10
  autorequire:
10
11
  bindir: exe
11
12
  cert_chain: []
12
- date: 2022-11-07 00:00:00.000000000 Z
13
+ date: 2022-11-14 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: pry