{"id":34903033,"url":"https://github.com/willnet/metaprogramming-challenges-in-ruby","last_synced_at":"2025-12-26T09:06:13.951Z","repository":{"id":296873868,"uuid":"994689381","full_name":"willnet/metaprogramming-challenges-in-ruby","owner":"willnet","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-28T07:04:56.000Z","size":635,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-10T16:40:01.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://willnet.github.io/metaprogramming-challenges-in-ruby/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willnet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-02T10:30:28.000Z","updated_at":"2025-09-28T07:05:01.000Z","dependencies_parsed_at":"2025-06-03T03:50:32.265Z","dependency_job_id":"8fdbd983-893c-467a-8994-fff21d003446","html_url":"https://github.com/willnet/metaprogramming-challenges-in-ruby","commit_stats":null,"previous_names":["willnet/try-metaprogramming-ruby"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/willnet/metaprogramming-challenges-in-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fmetaprogramming-challenges-in-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fmetaprogramming-challenges-in-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fmetaprogramming-challenges-in-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fmetaprogramming-challenges-in-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willnet","download_url":"https://codeload.github.com/willnet/metaprogramming-challenges-in-ruby/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fmetaprogramming-challenges-in-ruby/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28050773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-26T09:06:12.113Z","updated_at":"2025-12-26T09:06:13.944Z","avatar_url":"https://github.com/willnet.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Metaprogramming Challenges in Ruby\n\nWeb-based Ruby metaprogramming practice environment using Ruby.wasm. Learn Ruby metaprogramming concepts interactively in your browser.\n\n## Features\n\n- **Ruby-first Development**: All code (problems, answers, tests) is managed as Ruby files and automatically synced to JavaScript\n- **Interactive Browser Environment**: Run Ruby code directly in the browser using Ruby.wasm\n- **Comprehensive Test Suite**: Automated testing for all answer codes with detailed feedback\n- **Multilingual Support**: Problems available in Japanese and English\n- **29 Metaprogramming Problems**: Covering object model, methods, blocks, and class definitions\n\n## Development\n\n### Setup\n\n```sh\nbin/setup\n```\n\n### Start Development Server\n\n```sh\nbin/dev\nopen http://localhost:8000\n```\n\n### Running Tests\n\n```sh\n# Run all tests (Ruby-first workflow with sync + test)\nbin/test\n\n# Test specific problem\nbin/test SECTION_NAME PROBLEM_ID\n# Example: bin/test 05_class_definition 01_singleton_methods\n```\n\n### Available Commands\n\n- `bin/setup` - Install dependencies and build the project\n- `bin/dev` - Start development server on port 8000\n- `bin/test` - Run complete Ruby-first test workflow\n- `node esbuild.config.js` - Build the project using esbuild\n- `node scripts/sync-ruby-to-js.js` - Sync Ruby file changes to JavaScript\n\n## Ruby-First Development Workflow\n\n1. **Edit Ruby files directly:**\n   - `src/ruby/problems/` - Problem starter code\n   - `src/ruby/answers/` - Solution code\n   - `src/ruby/tests/` - Test code\n   - `src/ruby/descriptions/` - Problem descriptions\n   - `src/ruby/explanations/` - Answer explanations\n\n2. **Run tests:** `bin/test` (handles sync automatically)\n\n3. **For web app:** Rebuild with `node esbuild.config.js` after changes\n\nThe Ruby files serve as the source of truth. JavaScript files are automatically generated.\n\n## Credits\n\nThe problem content is based on https://github.com/kinoppyd/reading-metaprogramming-ruby\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fmetaprogramming-challenges-in-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillnet%2Fmetaprogramming-challenges-in-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fmetaprogramming-challenges-in-ruby/lists"}