interest_days 0.2.1 → 0.3.0

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: ca962567dc653cf2dd4c735476b0e06b55f702bf1a3b982c66fb0c61304389cc
4
- data.tar.gz: e9ceabbe93ca424b1c6f14fbee19cb7cec8cc8ec424c8cad6cfd48f958318d8a
3
+ metadata.gz: a4ccc6e4b904bb4a1b308b1bc6020f44a54b4b427ce176c758fe691d848bc806
4
+ data.tar.gz: 5153de34cd150fd8867ab9f8842334582e15c1f9c22ae63f722701148aa88eb2
5
5
  SHA512:
6
- metadata.gz: 1e4530bdc1365fbeb9910d9fe0c0cc5b69a3cb63324cd8e03a57b0fa72d00441f61c37288df4f417b2458464f20ff3c5adceee1c6bb5e4dd9e76f7f530d61afa
7
- data.tar.gz: 545e7cd8d63020090ad70c631b78e1a5ac51218f27c2e73b23064694dcbc1f10e90a8d53df7c6b55995def2756612e8ca8791f8728eaa2965360f3f302de540d
6
+ metadata.gz: 7ee66d5bc9262d3a8059991c4b0e0374958fb7cc411b62f87453d59c1d1d5405f23f82cbb7edb7e2bc3ca47f4aee65c61cd9e758d743604f00c9f0f8c60b11ab
7
+ data.tar.gz: dd5b07dbeebe22e3800ffc71ddfc882309ee9ce5c0073c1047825a3b5ef496c56fe5e40d98a73ee7a5f12584935519904372e63d91c13a070cac66c997cb8975
data/CHANGELOG.md CHANGED
@@ -1,4 +1,21 @@
1
1
 
2
+ ## [0.3.0] / 2022-02-03
3
+ ==================
4
+
5
+ * Bump version to 0.3.0
6
+ * Finish including isda act 364 (#11)
7
+
8
+ ## [0.2.1] / 2022-02-03
9
+ ==================
10
+
11
+ * Bump version to 0.2.1
12
+ * Change the gemspec metadata.
13
+ * Setup siplecov.
14
+ * Add spec for act 364 strategy.
15
+ * Add act 364 calculation strategy.
16
+ * Tests isda 30 e 360 (#5)
17
+ * Add codecov integration.
18
+
2
19
  ## [0.2.0] / 2021-10-08
3
20
  ==================
4
21
 
data/Gemfile CHANGED
@@ -8,11 +8,8 @@ gemspec
8
8
  gem "rake", "~> 13.0"
9
9
 
10
10
  group :test, :development do
11
+ gem "codecov", "~> 0.6.0"
11
12
  gem "rspec", "~> 3.0"
12
-
13
13
  gem "rubocop", "~> 1.7"
14
-
15
14
  gem "simplecov", "~> 0.21.2"
16
-
17
- gem "codecov", "~> 0.6.0"
18
15
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- interest_days (0.2.1)
4
+ interest_days (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # InterestDays
2
2
 
3
3
  This gem provide interest day factor calculation based on ISDA conventions e.g. Isda Act 360.
4
- Since version 0.2 interest_day gem support 30/360 US EOM and 30/360 Bond Basis conventions.
4
+ - Since version 0.2 interest_day gem support 30/360 US EOM and 30/360 Bond Basis conventions.
5
+ - Since version 0.3 the gem also supports Isda Act 364
5
6
 
6
7
  ## Installation
7
8
 
@@ -31,11 +32,14 @@ calculator.interest_day_count_factor
31
32
 
32
33
  currently there a five supported conventions:
33
34
  - :isda_act_360
35
+ - :isda_act_364
34
36
  - :isda_act_365
35
37
  - :isda_30_e_360
36
38
  - :us_eom_30_360
37
39
  - :bond_basis_30_360
38
40
 
41
+ As often, [Wikipedia](https://en.wikipedia.org/wiki/Day_count_convention) is the best resource, so check it out to get more insights into these conventions.
42
+
39
43
  ## Development
40
44
 
41
45
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module InterestDays
4
4
  module Calculation
5
- # ISDA Act 360 Convention calculation
5
+ # ISDA 30 E 365 Convention calculation
6
6
  class IsdaAct364 < Base
7
7
  RELEVANT_DAYS_IN_YEAR = 364
8
8
 
@@ -22,6 +22,7 @@ module InterestDays
22
22
  def strategies
23
23
  @strategies ||= {
24
24
  isda_act_360: InterestDays::Calculation::IsdaAct360,
25
+ isda_act_364: InterestDays::Calculation::IsdaAct364,
25
26
  isda_act_365: InterestDays::Calculation::IsdaAct365,
26
27
  isda_30_e_360: InterestDays::Calculation::Isda30e360,
27
28
  bond_basis_30_360: InterestDays::Calculation::Isda30e360,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InterestDays
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
data/lib/interest_days.rb CHANGED
@@ -6,6 +6,7 @@ require "interest_days/calculation/base"
6
6
  require "interest_days/calculation/thirty_threesixty_base"
7
7
  require "interest_days/calculation/us_eom_30_360"
8
8
  require "interest_days/calculation/isda_act_360"
9
+ require "interest_days/calculation/isda_act_364"
9
10
  require "interest_days/calculation/isda_act_365"
10
11
  require "interest_days/calculation/isda_30_e_360"
11
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interest_days
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugen Mueller