{"action":"closed","issue":{"url":"https://api.github.com/repos/pazdera/word_wrap/issues/5","labels_url":"https://api.github.com/repos/pazdera/word_wrap/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/pazdera/word_wrap/issues/5/comments","events_url":"https://api.github.com/repos/pazdera/word_wrap/issues/5/events","html_url":"https://github.com/pazdera/word_wrap/issues/5","id":60228017,"number":5,"title":"DEFAULT_WIDTH undefined","user":{"login":"binford2k","id":1392917,"avatar_url":"https://avatars.githubusercontent.com/u/1392917?v=3","gravatar_id":"","url":"https://api.github.com/users/binford2k","html_url":"https://github.com/binford2k","followers_url":"https://api.github.com/users/binford2k/followers","following_url":"https://api.github.com/users/binford2k/following{/other_user}","gists_url":"https://api.github.com/users/binford2k/gists{/gist_id}","starred_url":"https://api.github.com/users/binford2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binford2k/subscriptions","organizations_url":"https://api.github.com/users/binford2k/orgs","repos_url":"https://api.github.com/users/binford2k/repos","events_url":"https://api.github.com/users/binford2k/events{/privacy}","received_events_url":"https://api.github.com/users/binford2k/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-07T22:34:54Z","updated_at":"2015-03-24T22:36:41Z","closed_at":"2015-03-24T22:36:41Z","body":"When monkey patching string, the DEFAULT_WIDTH constant isn't set.\r\n\r\nhttps://github.com/pazdera/word_wrap/blob/master/lib/word_wrap.rb#L17\r\n\r\n```\r\n2.0.0-p598 :001 > require 'word_wrap'\r\n => true\r\n2.0.0-p598 :002 > 'foo bar'.wrap\r\nNameError: uninitialized constant String::DEFAULT_WIDTH\r\n\tfrom /Users/ben/.rvm/gems/ruby-2.0.0-p598@mdl/gems/word_wrap-0.2.1/lib/word_wrap.rb:17:in `wrap'\r\n\tfrom (irb):2\r\n\tfrom /Users/ben/.rvm/rubies/ruby-2.0.0-p598/bin/irb:12:in `<main>'\r\n```"}}