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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dadf65165f7640c1ed71d1b39446a330f810779a23acc6975986249b71918a8e
4
- data.tar.gz: c118e93977b2133c99fbb53bcc64eea6dd7a98f30f05bfe64742f501d7d60753
3
+ metadata.gz: e755f7a2a11ef03dade9113920b057885b75c32160146073f50c52df6be30efa
4
+ data.tar.gz: db9369e51a93b25fdb8bb50aeeec1d59f1e65c8c3c79d12b01e70c7bc9e9745f
5
5
  SHA512:
6
- metadata.gz: 8cb63a7e83eb0035be2d3757a7969ff5c9ef244be16495e4aa0a1dcb2276e229d287a695ce8ec8cfdff21c891c076a2d29b6ccbffdb585f821fcfe578e8f3dde
7
- data.tar.gz: 4d121f6f04a7780ded6ed2d6f7bb8de6c32e89ea2e96d97f14029f1800ce6ca4516dd6769887210ca5557816c978c39b270b289dee1f84d61737d6216e4ae4d5
6
+ metadata.gz: 43dc32ccc09c233d5c0c56cadf6fa96b61c5ea4a320704ddaef3420e263443eb2f664c321dd4efb41b05fdad039de9720566bc3b0b8564dce8ff5952843aaf24
7
+ data.tar.gz: d441aa9ace1e9a91e7ad5fdde40824038ba95b2beda7eea34cce9b37ff59dfe40cc02f99600d51aabfd6e8e939b1fb23694695e9e07bcc13d04a40e081a4db3c
@@ -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: [3.2.2, 3.3.0, 3.4.0]
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@v4
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
@@ -10,3 +10,4 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+ /.yardopts
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.
data/Gemfile CHANGED
@@ -14,4 +14,5 @@ group :development do
14
14
  gem 'rspec'
15
15
  gem 'rubocop', require: false
16
16
  gem 'rubocop-ddoherty', git: 'https://github.com/ddoherty03/rubocop-ddoherty.git', branch: 'master', require: false
17
+ gem 'gem_docs', '>=0.2.0'
17
18
  end