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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/coach_zed/feed_writer.rb +2 -3
- data/lib/coach_zed/version.rb +1 -1
- data/lib/coach_zed.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42078dac83da8db61434faa687eb655e700e4d7602227fe7868c57428dfcb759
|
|
4
|
+
data.tar.gz: d160f2894666ae27bcebbcb095e73a85213c8f9c3f06ce4a7f0ab0b0745abfdc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
88
|
-
pieces <<
|
|
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
|
data/lib/coach_zed/version.rb
CHANGED
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,
|