fat_period 3.0.0 → 3.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 +4 -4
- data/.github/workflows/ruby.yml +5 -2
- data/.gitignore +1 -0
- data/CHANGELOG.org +16 -0
- data/Gemfile +1 -0
- data/README.md +1291 -0
- data/README.org +937 -96
- data/Rakefile +3 -0
- data/fat_period.gemspec +2 -2
- data/lib/fat_period/date.rb +2 -6
- data/lib/fat_period/period.rb +223 -10
- data/lib/fat_period/version.rb +1 -1
- data/lib/fat_period.rb +21 -6
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e755f7a2a11ef03dade9113920b057885b75c32160146073f50c52df6be30efa
|
|
4
|
+
data.tar.gz: db9369e51a93b25fdb8bb50aeeec1d59f1e65c8c3c79d12b01e70c7bc9e9745f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43dc32ccc09c233d5c0c56cadf6fa96b61c5ea4a320704ddaef3420e263443eb2f664c321dd4efb41b05fdad039de9720566bc3b0b8564dce8ff5952843aaf24
|
|
7
|
+
data.tar.gz: d441aa9ace1e9a91e7ad5fdde40824038ba95b2beda7eea34cce9b37ff59dfe40cc02f99600d51aabfd6e8e939b1fb23694695e9e07bcc13d04a40e081a4db3c
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -15,11 +15,14 @@ jobs:
|
|
|
15
15
|
test:
|
|
16
16
|
runs-on: ubuntu-24.04
|
|
17
17
|
strategy:
|
|
18
|
+
fail-fast: false
|
|
18
19
|
matrix:
|
|
19
|
-
ruby
|
|
20
|
+
# Supported stable series; setup-ruby selects the latest patch release.
|
|
21
|
+
# https://www.ruby-lang.org/en/downloads/branches/
|
|
22
|
+
ruby: ['3.3', '3.4', '4.0']
|
|
20
23
|
steps:
|
|
21
24
|
- name: Check out code
|
|
22
|
-
uses: actions/checkout@
|
|
25
|
+
uses: actions/checkout@v7
|
|
23
26
|
|
|
24
27
|
- name: Install build dependencies (needed if Ruby must be compiled)
|
|
25
28
|
run: |
|
data/.gitignore
CHANGED
data/CHANGELOG.org
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
* Version 3.2.0
|
|
2
|
+
- requires fat_date >= 0.3.0 with Date.ensure fix.
|
|
3
|
+
* Version 3.1.0
|
|
4
|
+
- Add ~Period#year_fraction~ to calculate a ~BigDecimal~ interest-accrual
|
|
5
|
+
factor from the period's start to a payment or settlement date. Support
|
|
6
|
+
twelve day-count conventions: four 30/360 variants, Actual/Actual ICMA,
|
|
7
|
+
Actual/Actual ISDA, Actual/365 Fixed, Actual/360, Actual/364, Actual/365L,
|
|
8
|
+
Actual/Actual AFB, and 1/1. Default to 30/360 US (~convention: 1~).
|
|
9
|
+
- Support optional February end-of-month adjustments for 30/360 US and a
|
|
10
|
+
maturity-date exception for 30E/360 ISDA. Require settlement to fall
|
|
11
|
+
within the period; ICMA supports regular coupon periods only.
|
|
12
|
+
- Add ~Period#freq_per_year~ to infer payment frequency from period length.
|
|
13
|
+
- Document the conventions and examples in ~README.org~, with references
|
|
14
|
+
to Wikipedia and Section 4.16 of the /2006 ISDA Definitions/. Add specs
|
|
15
|
+
covering month ends, leap years, maturity dates, and frequency boundaries.
|
|
16
|
+
|
|
1
17
|
* Version 3.0.0
|
|
2
18
|
- Use the newly-spun-out fat_date library in place of fat_core/date, which no
|
|
3
19
|
longer exists starting with fat_core version 6.0.0.
|