{"id":19667344,"url":"https://github.com/willnet/byebug-zeitwerk-sample","last_synced_at":"2025-04-28T23:32:27.030Z","repository":{"id":39281716,"uuid":"229719725","full_name":"willnet/byebug-zeitwerk-sample","owner":"willnet","description":"sample rails application to reproduce NameError with byebug and zeitwerk","archived":false,"fork":false,"pushed_at":"2023-01-19T16:33:07.000Z","size":1724,"stargazers_count":1,"open_issues_count":34,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-04-10T16:13:57.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-23T09:27:19.000Z","updated_at":"2020-01-16T23:48:46.000Z","dependencies_parsed_at":"2023-02-03T09:00:35.997Z","dependency_job_id":null,"html_url":"https://github.com/willnet/byebug-zeitwerk-sample","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fbyebug-zeitwerk-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fbyebug-zeitwerk-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fbyebug-zeitwerk-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willnet%2Fbyebug-zeitwerk-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willnet","download_url":"https://codeload.github.com/willnet/byebug-zeitwerk-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224137520,"owners_count":17262032,"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","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":"2024-11-11T16:31:48.277Z","updated_at":"2024-11-11T16:31:53.526Z","avatar_url":"https://github.com/willnet.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n1. git clone https://github.com/willnet/byebug-zeitwerk-sample.git\n1. cd byebug-zeitwerk-sample\n1. `./bin/setup`\n1. `./bin/rails s`\n1. visit localhost:3000\n1. reference `A::B` in brakepoint\n1. NameError like following\n\n```\n[1, 6] in /Users/willnet/.ghq/github.com/willnet/byebug-zeitwerk-sample/app/controllers/welcome_controller.rb\n   1: class WelcomeController \u003c ApplicationController\n   2:   def index\n   3:     byebug\n   4:     # A::B\n=\u003e 5:   end\n   6: end\n(byebug) A::B\n*** NameError Exception: uninitialized constant A::B\n```\n\nedit `app/controllers/welcome_controller.rb` like following, and revisit localhost:3000\n\n```ruby\nclass WelcomeController \u003c ApplicationController\n  def index\n    A::B\n  end\nend\n```\n\nit works!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fbyebug-zeitwerk-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillnet%2Fbyebug-zeitwerk-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillnet%2Fbyebug-zeitwerk-sample/lists"}