{"action":"created","issue":{"url":"https://api.github.com/repos/stefanpenner/country_select/issues/93","labels_url":"https://api.github.com/repos/stefanpenner/country_select/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/stefanpenner/country_select/issues/93/comments","events_url":"https://api.github.com/repos/stefanpenner/country_select/issues/93/events","html_url":"https://github.com/stefanpenner/country_select/pull/93","id":56253483,"number":93,"title":"Don't re-instantiate the country object if not required","user":{"login":"paolodona","id":3245,"avatar_url":"https://avatars.githubusercontent.com/u/3245?v=3","gravatar_id":"","url":"https://api.github.com/users/paolodona","html_url":"https://github.com/paolodona","followers_url":"https://api.github.com/users/paolodona/followers","following_url":"https://api.github.com/users/paolodona/following{/other_user}","gists_url":"https://api.github.com/users/paolodona/gists{/gist_id}","starred_url":"https://api.github.com/users/paolodona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paolodona/subscriptions","organizations_url":"https://api.github.com/users/paolodona/orgs","repos_url":"https://api.github.com/users/paolodona/repos","events_url":"https://api.github.com/users/paolodona/events{/privacy}","received_events_url":"https://api.github.com/users/paolodona/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-02T15:54:27Z","updated_at":"2015-02-03T18:21:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stefanpenner/country_select/pulls/93","html_url":"https://github.com/stefanpenner/country_select/pull/93","diff_url":"https://github.com/stefanpenner/country_select/pull/93.diff","patch_url":"https://github.com/stefanpenner/country_select/pull/93.patch"},"body":"This is a small performance improvement, we don't need to re-instantiate a county object if already looked up at line 70\r\n\r\n```\r\nif country = ISO3166::Country.new(code_or_name)\r\n```\r\n\r\nPS: ```ISO3166::Country.new``` creates new instances every time:\r\n\r\n````\r\nirb(main):004:0> ISO3166::Country.new('IT').object_id\r\n=> 70160945975800\r\nirb(main):005:0> ISO3166::Country.new('IT').object_id\r\n=> 70160945381520\r\n````"},"comment":{"url":"https://api.github.com/repos/stefanpenner/country_select/issues/comments/72704855","html_url":"https://github.com/stefanpenner/country_select/pull/93#issuecomment-72704855","issue_url":"https://api.github.com/repos/stefanpenner/country_select/issues/93","id":72704855,"user":{"login":"scudco","id":3806,"avatar_url":"https://avatars.githubusercontent.com/u/3806?v=3","gravatar_id":"","url":"https://api.github.com/users/scudco","html_url":"https://github.com/scudco","followers_url":"https://api.github.com/users/scudco/followers","following_url":"https://api.github.com/users/scudco/following{/other_user}","gists_url":"https://api.github.com/users/scudco/gists{/gist_id}","starred_url":"https://api.github.com/users/scudco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scudco/subscriptions","organizations_url":"https://api.github.com/users/scudco/orgs","repos_url":"https://api.github.com/users/scudco/repos","events_url":"https://api.github.com/users/scudco/events{/privacy}","received_events_url":"https://api.github.com/users/scudco/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T18:21:52Z","updated_at":"2015-02-03T18:21:52Z","body":"If you wouldn't mind updating the PR, then I can make sure you get the credit :)"}}