Skip to content

🆕 Add CoderDojo 播磨科学公園都市 in 兵庫県 #1723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions db/dojo_event_services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@
### 以下、Dojo 情報まとめ ###
### (dojos.yaml の追加順) ###

# 播磨科学公園都市(兵庫県上郡町)
#- dojo_id: 343
# name: ???
# group_id: ???
# url: https://codeclub.org/ja/clubs/1700a138-2909-4e4e-9e75-88ebcbbbc55a

# 砧(東京都世田谷区)- connpass の個人アカウントのため登録できない。グループアカウントにする必要がある。
# TODO: グループ化されたら dojos.yamlのurlも合わせて更新
#- dojo_id: 342
Expand Down
14 changes: 14 additions & 0 deletions db/dojos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3345,6 +3345,20 @@
description: 猪名川町で毎月開催
tags:
- Scratch
- id: 343
order: '284815'
created_at: '2025-07-28'
name: 播磨科学公園都市
prefecture_id: 28
logo: "/img/dojos/default.webp"
url: https://koto-ictclub.net/dojo/
description: 赤穂郡上郡町で毎月開催
tags:
- Python
- Unity
- ラズベリーパイ
- HTML
- CSS
- id: 35
order: '292010'
created_at: '2014-10-26'
Expand Down
11 changes: 11 additions & 0 deletions spec/models/dojo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,15 @@
end
end
end

describe 'YAML data integrity' do
it 'has no duplicate IDs' do
yaml_data = Dojo.load_attributes_from_yaml
ids = yaml_data.map { |dojo| dojo['id'] }
duplicate_ids = ids.select { |id| ids.count(id) > 1 }.uniq

expect(duplicate_ids).to be_empty,
"重複しているID: #{duplicate_ids.join(', ')}"
end
end
end