sof-cycle 0.1.4 → 0.1.5

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: f9b1ae30ef2bd0d0fb9dbc08efb701b9813d997c216a22bf1df67fcbed7efe29
4
- data.tar.gz: ac73534e2d48354722e929e41fccf0bae4a913466b181802daa8afe3daa9beae
3
+ metadata.gz: b2a07b69c0b78ca93a453a9ff1ab0e7fb7afb489bcd95793b92aaa43b74b3625
4
+ data.tar.gz: c8ef2c5af032e5a98f600677fabe41e117ec1470a00955b4254e6dfd87717b9b
5
5
  SHA512:
6
- metadata.gz: 6b4a0d60e48feed105e71c6410e4ba22152e88ed8502b43b32974e585cc1abce432867b0c635ada9376258df79d799d2f3f383e4499742f5023db623a4ac8ebe
7
- data.tar.gz: e506926aed85332f02e8f5790ec752416679fe9a0c1542bd750f6097d204c4ed4237a866cc4552e67f612218ae58dbb819f68260de67e84fcf32b3d78351e0ba
6
+ metadata.gz: '078492cab1d760a9db49da00326eab551bcf00486cbca9f8bbf026d192f398e24d9b156eaf222237936c0a86b9bdb06594daaefc724ffa9d7258eb89a71df6ad'
7
+ data.tar.gz: ff0791da35ec67d02633b3200f44929f7627b6bc3d3f9414ec24570a1203f830c2142216f8d37d3e154ad0c157ec2b47f3054d633df40b0bff2e4e61cc13b782
data/CHANGELOG.md CHANGED
@@ -5,14 +5,14 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [0.1.4] - 2024-09-02
8
+ ## [0.1.5] - 2024-09-02
9
9
 
10
- ### Added
10
+ ### Fixed
11
11
 
12
- - `Cycle#last_completed` to return the last completion given the cycle and an array of dates
12
+ - `Cycle#last_completed` works for dormant cycles too
13
13
 
14
- ## [0.1.3] - 2024-09-01
14
+ ## [0.1.4] - 2024-09-02
15
15
 
16
- ### Fixed
16
+ ### Added
17
17
 
18
- - `Cycles::EndOf` to have the correct behavior
18
+ - `Cycle#last_completed` to return the last completion given the cycle and an array of dates
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SOF
4
4
  class Cycle
5
- VERSION = "0.1.4"
5
+ VERSION = "0.1.5"
6
6
  end
7
7
  end
@@ -25,7 +25,7 @@ module SOF
25
25
  end
26
26
 
27
27
  # Always returns the from_date
28
- def last_completed(_) = from_date.to_date
28
+ def last_completed(_ = nil) = from_date&.to_date
29
29
 
30
30
  # Returns the expiration date for the cycle
31
31
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sof-cycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay