Repository navigation
Add _data/kaigis/ as the new way to contribute an event - #206
Merged
Merged
Conversation
Adding an event used to mean appending to a growing events.yml array. Organizers can now drop one file into _data/kaigis/, copied from a new COPYME.yml.example, and existing events.yml entries keep working unchanged. held_on lets a single-day event write one date instead of repeating it as both start_on and end_on. Normalizer also catches a kaigis/ file whose name field disagrees with its filename, since that's almost always a copy-paste leftover. Split filesystem reading out of Normalizer into a new Loader, so Normalizer stays a pure merge function. Added RegionalRubyKaigi.validate_kaigis! as the one entry point both the CLI and script/validate_kaigis.rb (renamed from validate_events.rb) call. CONTRIBUTING.md, AGENTS.md, and a new _data/README.md point contributors at the new workflow, including the rko-router proxy option for hosting a site outside this repo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_data/kaigis/(copied from a newCOPYME.yml.example) instead of appending toevents.yml; existingevents.ymlentries keep working unchanged.held_onlets a single-day event write one date instead of repeating it as bothstart_onandend_on;Normalizeralso flags akaigis/file whosenamedisagrees with its filename.Normalizerinto a newLoader, and addedRegionalRubyKaigi.validate_kaigis!as the single validation entry point used by the CLI and byscript/validate_kaigis.rb(renamed fromvalidate_events.rb).CONTRIBUTING.md,AGENTS.md, and a new_data/README.mddocument the new workflow, including hosting via anrko-routerproxy outside this repo.Test plan
bundle exec ruby -Itest -e 'Dir["test/**/*_test.rb"].sort.each { |file| require_relative file }'— 51 runs, 0 failuresruby script/validate_kaigis.rb— 110 events validated