coach_zed 0.6.0 → 0.7.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: a9a76219553e75c5d8bce93271958c701b085dcbf044e3850a5555b395943634
4
- data.tar.gz: 040c18ed98b57fde0318ed9df3e3a516d8ec12a9a3115b1f76a52edecd2ff68c
3
+ metadata.gz: 42078dac83da8db61434faa687eb655e700e4d7602227fe7868c57428dfcb759
4
+ data.tar.gz: d160f2894666ae27bcebbcb095e73a85213c8f9c3f06ce4a7f0ab0b0745abfdc
5
5
  SHA512:
6
- metadata.gz: 0bd9170710c99a2e2079ffdd8bdd42c233de1c9382323e804ac756c61f52b795587a32d830fa2b2549bc142e9ae38d79f5d3efb6b463554c5362a7ba33577019
7
- data.tar.gz: '095e0419908b95213f0a16365688dfddcb81c198a9f77f2e916033db213f613f78041b0a90912caba7797ef11ba07273eb942017a6b6ce6be7a353208931979b'
6
+ metadata.gz: a4c29470d8c22cb1cb0627b73688e9460101c3a31445c91f1613cbd29c44e654ecb9d42446012afc7a9fb244e14f5f451b48f86c5ae0bf54eb38e07df3563961
7
+ data.tar.gz: bb54afff27dd32108cb527a5f50d949709037013078733af6f0e930ad39c21e64cb26666ae2a3a62549b104a127121575ebb63e77e98259a99f375a5ebf1d214
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [](https://github.com/rossta/coach_zed/compare/v0.6.0...v) (2026-06-18)
2
+
3
+ ### Features
4
+
5
+ * persist catalog text in schedule json ([67d5949](https://github.com/rossta/coach_zed/commit/67d5949925e3ea0ad6de4042780228eb385e9ab6))
1
6
  ## [](https://github.com/rossta/coach_zed/compare/v0.5.6...v) (2026-06-17)
2
7
 
3
8
  ### Features
@@ -84,9 +84,8 @@ class CoachZed
84
84
  pieces << day["notes"].to_s if day["notes"] && !day["notes"].to_s.empty?
85
85
  if day["day_type"] == "workout"
86
86
  workout = day.fetch("workout")
87
- pieces << "Catalog path: #{workout.fetch("catalog_path")}"
88
- pieces << "Domain: #{workout.fetch("domain")}"
89
- pieces << "Session duration: #{workout.fetch("session_duration")}"
87
+ catalog_text = workout["catalog_text"].to_s
88
+ pieces << catalog_text unless catalog_text.empty?
90
89
  end
91
90
  pieces.join("\n")
92
91
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class CoachZed
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
data/lib/coach_zed.rb CHANGED
@@ -242,11 +242,13 @@ class CoachZed
242
242
  end
243
243
 
244
244
  def normalize_schedule(schedule, start_date:, prompt_text:, schedule_key:, catalog:, generation_days:)
245
+ catalog_texts = catalog.to_h { |entry| [entry.relative_path, entry.path.read] }
245
246
  days = schedule.fetch("days")
246
247
  normalized_days = days.each_with_index.map do |day, index|
247
248
  day_number = day.fetch("day_number", index + 1).to_i
248
249
  date = start_date + (day_number - 1)
249
250
  workout = day["workout"]
251
+ workout = workout&.merge("catalog_text" => catalog_texts.fetch(workout["catalog_path"], ""))
250
252
  {
251
253
  "day_number" => day_number,
252
254
  "date" => date.iso8601,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coach_zed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Kaffenberger