Skip to content

Commit 5e463dc

Browse files
authored
Merge pull request #1723 from coderdojo-japan/add-coderdojo-harima
🆕 Add CoderDojo 播磨科学公園都市 in 兵庫県
2 parents db185b4 + c28403c commit 5e463dc

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

db/dojo_event_services.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
### 以下、Dojo 情報まとめ ###
2828
### (dojos.yaml の追加順) ###
2929

30+
# 播磨科学公園都市(兵庫県上郡町)
31+
#- dojo_id: 343
32+
# name: ???
33+
# group_id: ???
34+
# url: https://codeclub.org/ja/clubs/1700a138-2909-4e4e-9e75-88ebcbbbc55a
35+
3036
# 砧(東京都世田谷区)- connpass の個人アカウントのため登録できない。グループアカウントにする必要がある。
3137
# TODO: グループ化されたら dojos.yamlのurlも合わせて更新
3238
#- dojo_id: 342

db/dojos.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3345,6 +3345,20 @@
33453345
description: 猪名川町で毎月開催
33463346
tags:
33473347
- Scratch
3348+
- id: 343
3349+
order: '284815'
3350+
created_at: '2025-07-28'
3351+
name: 播磨科学公園都市
3352+
prefecture_id: 28
3353+
logo: "/img/dojos/default.webp"
3354+
url: https://koto-ictclub.net/dojo/
3355+
description: 赤穂郡上郡町で毎月開催
3356+
tags:
3357+
- Python
3358+
- Unity
3359+
- ラズベリーパイ
3360+
- HTML
3361+
- CSS
33483362
- id: 35
33493363
order: '292010'
33503364
created_at: '2014-10-26'

spec/models/dojo_spec.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,15 @@
195195
end
196196
end
197197
end
198+
199+
describe 'YAML data integrity' do
200+
it 'has no duplicate IDs' do
201+
yaml_data = Dojo.load_attributes_from_yaml
202+
ids = yaml_data.map { |dojo| dojo['id'] }
203+
duplicate_ids = ids.select { |id| ids.count(id) > 1 }.uniq
204+
205+
expect(duplicate_ids).to be_empty,
206+
"重複しているID: #{duplicate_ids.join(', ')}"
207+
end
208+
end
198209
end

0 commit comments

Comments
 (0)