sof-cycle 0.1.9 → 0.1.10

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: 9a26ea052ce2819b24073d04f710d4c68cbfafd64d73d96b17efda48e4cd883e
4
- data.tar.gz: 7d5b89211965af6b73bdce55d9c5807317ee158a30fecfa3b9ce2de80a42f427
3
+ metadata.gz: efa206d4535b7a45567f643a71738506a7c5a3f318180cba1d576a618b178877
4
+ data.tar.gz: 3946a1dbfc81ef89d33db3ca0bd1df0fd74dc86cc6aef967055dbdac755afd27
5
5
  SHA512:
6
- metadata.gz: 4bea2cadd346b867b6801191c93cbd2a1efc69d56138c88bfb786e7a043fa3499dc426d1542a15645448c5ba84aa91ee195c5fab4a3599714dcd76800e84b6a7
7
- data.tar.gz: f9bdf58b3db82a7148b36b8df8889a6b24b519b2a2e6d6e412d57f284c5a491f52b5046ab018e3b294f4145fc9c95f85e2d07f68dbb650d48cfea9f4df6c8a31
6
+ metadata.gz: 697ee468ec9ed5a57f2b1e33fa1ae38f865fac62082edca445f263b8862d368017a5ca42667c12bfa45c05853790dcc3163e7577f13ca60c0d8981085cebf4e1
7
+ data.tar.gz: c20956003342ba14086a563430d04370872eff64eec0e63b9c7c153f892fe6973a6c805d95bf31f4ae05e12d566a33709858cb3dd35fc996c54c36851c7ab10e
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.3
data/CHANGELOG.md CHANGED
@@ -5,14 +5,10 @@ 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.10] - 2025-09-04
9
+
8
10
  ## [0.1.9] - 2025-09-04
9
11
 
10
12
  ### Changed
11
13
 
12
14
  - Make use of scoping for `Cycle.cycle_handlers` to prevent collisions with other Cycle classes.
13
-
14
- ## [0.1.8] - 2025-09-04
15
-
16
- ### Changed
17
-
18
- - Simplified `handles?` logic to do string comparison instead of symbol comparison.
@@ -0,0 +1 @@
1
+ 827bb10a76bdf83a57b26a111b504f2df8506184fc363d6bc8924755db65f87039be4daadddc2b8455928f68e5d81bb174bea63372dbda8c5271341b38bb5094
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SOF
4
4
  class Cycle
5
- VERSION = "0.1.9"
5
+ VERSION = "0.1.10"
6
6
  end
7
7
  end
data/lib/sof/cycle.rb CHANGED
@@ -231,7 +231,15 @@ module SOF
231
231
  end
232
232
 
233
233
  # Return the cycle representation as a notation string
234
- def notation = Cycle.notation(to_h)
234
+ def notation
235
+ hash = to_h
236
+ [
237
+ "V#{volume}",
238
+ self.class.notation_id,
239
+ TimeSpan.notation(hash.slice(:period, :period_count)),
240
+ hash.fetch(:from, nil)
241
+ ].compact.join
242
+ end
235
243
 
236
244
  # Cycles are considered equal if their hash representations are equal
237
245
  def ==(other) = to_h == other.to_h
data/lib/sof/time_span.rb CHANGED
@@ -29,7 +29,7 @@ module SOF
29
29
 
30
30
  # Return a notation string from a hash
31
31
  def notation(hash)
32
- return unless hash.key?(:period)
32
+ return unless hash.key?(:period) && hash[:period].present?
33
33
 
34
34
  [
35
35
  hash.fetch(:period_count) { 1 },
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sof-cycle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Gay
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-09-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: forwardable
@@ -38,7 +37,6 @@ dependencies:
38
37
  - - ">="
39
38
  - !ruby/object:Gem::Version
40
39
  version: '6.0'
41
- description:
42
40
  email:
43
41
  - jim@saturnflyer.com
44
42
  executables: []
@@ -48,6 +46,7 @@ files:
48
46
  - ".claude/settings.local.json"
49
47
  - ".rspec"
50
48
  - ".simplecov"
49
+ - ".tool-versions"
51
50
  - CHANGELOG.md
52
51
  - CLAUDE.md
53
52
  - README.md
@@ -58,6 +57,7 @@ files:
58
57
  - checksums/sof-cycle-0.1.6.gem.sha512
59
58
  - checksums/sof-cycle-0.1.7.gem.sha512
60
59
  - checksums/sof-cycle-0.1.8.gem.sha512
60
+ - checksums/sof-cycle-0.1.9.gem.sha512
61
61
  - lib/sof-cycle.rb
62
62
  - lib/sof/cycle.rb
63
63
  - lib/sof/cycle/version.rb
@@ -74,7 +74,6 @@ licenses: []
74
74
  metadata:
75
75
  homepage_uri: https://github.com/SOFware/sof-cycle
76
76
  changelog_uri: https://github.com/SOFware/sof-cycle/blob/main/CHANGELOG.md
77
- post_install_message:
78
77
  rdoc_options: []
79
78
  require_paths:
80
79
  - lib
@@ -89,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
88
  - !ruby/object:Gem::Version
90
89
  version: '0'
91
90
  requirements: []
92
- rubygems_version: 3.5.11
93
- signing_key:
91
+ rubygems_version: 3.6.7
94
92
  specification_version: 4
95
93
  summary: Parse and interact with SOF cycle notation.
96
94
  test_files: []