{"action":"opened","issue":{"url":"https://api.github.com/repos/yuki24/did_you_mean/issues/56","labels_url":"https://api.github.com/repos/yuki24/did_you_mean/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/yuki24/did_you_mean/issues/56/comments","events_url":"https://api.github.com/repos/yuki24/did_you_mean/issues/56/events","html_url":"https://github.com/yuki24/did_you_mean/issues/56","id":116955783,"number":56,"title":"SystemStackError in did_you_mean gem when using `undef`","user":{"login":"presidentbeef","id":75613,"avatar_url":"https://avatars.githubusercontent.com/u/75613?v=3","gravatar_id":"","url":"https://api.github.com/users/presidentbeef","html_url":"https://github.com/presidentbeef","followers_url":"https://api.github.com/users/presidentbeef/followers","following_url":"https://api.github.com/users/presidentbeef/following{/other_user}","gists_url":"https://api.github.com/users/presidentbeef/gists{/gist_id}","starred_url":"https://api.github.com/users/presidentbeef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/presidentbeef/subscriptions","organizations_url":"https://api.github.com/users/presidentbeef/orgs","repos_url":"https://api.github.com/users/presidentbeef/repos","events_url":"https://api.github.com/users/presidentbeef/events{/privacy}","received_events_url":"https://api.github.com/users/presidentbeef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-14T22:19:56Z","updated_at":"2015-11-14T22:19:56Z","closed_at":null,"body":"This is with `ruby 2.3.0preview1 (2015-11-11 trunk 52539) [x86_64-linux]` which uses `did_you_mean-1.0.0.beta3`. I was about to file a bug at bugs.ruby-lang.org but then thought here might be better.\r\n\r\nExample:\r\n\r\n```ruby\r\nundef :a\r\n```\r\nOutput when using `ruby -d`:\r\n```\r\nException `LoadError' at /home/justin/.rvm/rubies/ruby-2.3.0-preview1/lib/ruby/2.3.0/rubygems.rb:1241 - cannot load such file -- rubygems/defaults/operating_system\r\nException `LoadError' at /home/justin/.rvm/rubies/ruby-2.3.0-preview1/lib/ruby/2.3.0/rubygems.rb:1250 - cannot load such file -- rubygems/defaults/ruby\r\nException `LoadError' at /home/justin/.rvm/rubies/ruby-2.3.0-preview1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:54 - cannot load such file -- did_you_mean\r\nException `SystemStackError' at /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:10 - stack level too deep\r\n/home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:10:in `to_s': stack level too deep (SystemStackError)\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/spell_checkers/method_name_checker.rb:15:in `initialize'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:25:in `new'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:25:in `spell_checker'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:21:in `corrections'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:14:in `to_s'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/spell_checkers/method_name_checker.rb:15:in `initialize'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:25:in `new'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:25:in `spell_checker'\r\n\t ... 9010 levels...\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:25:in `spell_checker'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:21:in `corrections'\r\n\tfrom /home/justin/.rvm/gems/ruby-2.3.0-preview1@global/gems/did_you_mean-1.0.0.beta3/lib/did_you_mean/core_ext/name_error.rb:14:in `to_s'\r\n\tfrom test.rb:1:in `<main>'\r\n```\r\n\r\nThis example came from trying to use `safe_yaml` which loads `psych/deprecated` which uses `undef` here: https://github.com/tenderlove/psych/blob/c1decb1fef5c77d84a93d5ac19a4961da914dd5c/lib/psych/deprecated.rb#L81"}}