Skip to content

Commit 509df5e

Browse files
committed
news:fetch の YAML 折り返しを無効化し、エピソード 35 を追加
1 parent 1da1db2 commit 509df5e

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

db/news.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
- id: 191
3+
url: https://coderdojo.jp/podcasts/35
4+
title: '035 - How Coolest Projects Started in the CoderDojo community (Guest: Bill Liao)'
5+
published_at: '2026-04-25T09:00:00+09:00'
26
- id: 190
37
url: https://news.coderdojo.jp/2026/04/05/dojoletter-vol-95-2026%e5%b9%b402%e6%9c%88%e5%8f%b7/
48
title: DojoLetter Vol.95 2026年02月号
@@ -61,8 +65,7 @@
6165
published_at: '2025-09-10T12:45:56+09:00'
6266
- id: 175
6367
url: https://prtimes.jp/main/html/rd/p/000000017.000038935.html
64-
title: 日本各地に 200 以上!全国の CoderDojo 関係者が集まるカンファレンス「DojoCon Japan 2025」が、10月25日 (土曜)
65-
に福岡県久留米市で開催
68+
title: 日本各地に 200 以上!全国の CoderDojo 関係者が集まるカンファレンス「DojoCon Japan 2025」が、10月25日 (土曜) に福岡県久留米市で開催
6669
published_at: '2025-09-02T17:30:01+09:00'
6770
- id: 174
6871
url: https://news.coderdojo.jp/2025/08/12/dojoletter-vol-87-2025%e5%b9%b406%e6%9c%88%e5%8f%b7/

lib/tasks/news.rake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ def fetch_podcast_posts(rss_feed_url)
7272
unless item.title =~ /^(\d{3})\s/
7373
raise "DojoCast episode number not found in title: #{item.title}"
7474
end
75-
75+
7676
episode_number = $1.to_i # 033 → 33, 001 → 1
7777
internal_url = "https://coderdojo.jp/podcasts/#{episode_number}"
78-
78+
7979
{
8080
'url' => internal_url,
8181
'title' => item.title,
@@ -132,7 +132,7 @@ namespace :news do
132132
'title' => item['title'],
133133
'published_at' => item['published_at']
134134
}
135-
end.to_yaml)
135+
end.to_yaml(line_width: -1))
136136
end
137137

138138
TASK_LOGGER.info("✅ 合計 #{items_by_oldest.size} 件を news.yml に保存しました")

0 commit comments

Comments
 (0)