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 +4 -4
- data/.rubocop.yml +4 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +28 -28
- data/interest_days.gemspec +1 -2
- data/lib/interest_days/calculation/icma_act_act.rb +1 -1
- data/lib/interest_days/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2883c05efa288b06891b2aac71fca5331c723d1df471b18267f60879a9faad7f
|
4
|
+
data.tar.gz: 74379f2e234f43b03c711a26c0ad7fa3cc5ca32fce5bcfacb3ceb329a4f44448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72b9afc11e72d1f9b015d8c457187c1f9c3a4d99cf5606a4ae6279eff57df24d8b3ea6d7b659b64920edce0898c8ba5194a532b7c1797c2eef73539b7a7d11b5
|
7
|
+
data.tar.gz: b12ea6908e66b813a5d4a8567a5da45a63f612b23b66c2752377dd614e035bb5e260bb4e1595f8e2eef80d37de194ba06b7c90868fc328da8aa996edf945454b
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
interest_days (0.5.
|
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.
|
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.
|
17
|
-
parser (3.
|
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.
|
23
|
+
rainbow (3.1.1)
|
23
24
|
rake (13.0.6)
|
24
|
-
regexp_parser (2.
|
25
|
+
regexp_parser (2.5.0)
|
25
26
|
rexml (3.2.5)
|
26
|
-
rspec (3.
|
27
|
-
rspec-core (~> 3.
|
28
|
-
rspec-expectations (~> 3.
|
29
|
-
rspec-mocks (~> 3.
|
30
|
-
rspec-core (3.
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-expectations (3.
|
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.
|
35
|
-
rspec-mocks (3.
|
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.
|
38
|
-
rspec-support (3.
|
39
|
-
rubocop (1.
|
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.
|
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.
|
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.
|
49
|
-
parser (>= 3.
|
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.
|
64
|
+
unicode-display_width (2.2.0)
|
63
65
|
|
64
66
|
PLATFORMS
|
65
|
-
|
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.
|
81
|
+
2.3.17
|
data/interest_days.gemspec
CHANGED
@@ -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
|
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
|
|
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.
|
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-
|
13
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: pry
|