{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/climate_control/issues/16","labels_url":"https://api.github.com/repos/thoughtbot/climate_control/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/climate_control/issues/16/comments","events_url":"https://api.github.com/repos/thoughtbot/climate_control/issues/16/events","html_url":"https://github.com/thoughtbot/climate_control/pull/16","id":97853145,"number":16,"title":"Added support for auto-converting booleans and numbers as strings.","user":{"login":"bkuhlmann","id":50245,"avatar_url":"https://avatars.githubusercontent.com/u/50245?v=3","gravatar_id":"","url":"https://api.github.com/users/bkuhlmann","html_url":"https://github.com/bkuhlmann","followers_url":"https://api.github.com/users/bkuhlmann/followers","following_url":"https://api.github.com/users/bkuhlmann/following{/other_user}","gists_url":"https://api.github.com/users/bkuhlmann/gists{/gist_id}","starred_url":"https://api.github.com/users/bkuhlmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkuhlmann/subscriptions","organizations_url":"https://api.github.com/users/bkuhlmann/orgs","repos_url":"https://api.github.com/users/bkuhlmann/repos","events_url":"https://api.github.com/users/bkuhlmann/events{/privacy}","received_events_url":"https://api.github.com/users/bkuhlmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-29T03:44:26Z","updated_at":"2015-08-28T16:27:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/thoughtbot/climate_control/pulls/16","html_url":"https://github.com/thoughtbot/climate_control/pull/16","diff_url":"https://github.com/thoughtbot/climate_control/pull/16.diff","patch_url":"https://github.com/thoughtbot/climate_control/pull/16.patch"},"body":"- Aids the development process by accepting and converting boolean\r\n  and/or numeric values as strings for safe storage within the ENV.\r\n- Without this conversion support, the following exception is thrown:\r\n  \"NoMethodError: undefined method `keys' for nil:NilClass\". This\r\n  makes for a confusing debugging process as it is not intuitive\r\n  that the error stems from the Climate Control gem.\r\n- Alternative solutions for consideration:\r\n    - Convert ALL values to strings (i.e. String(value)). This\r\n      would mean the \"raises when the value cannot be assigned properly\"\r\n      spec might not be necessary.\r\n    - Don't do any conversion and raise exceptions instead.\r\n    - Allow for conversion but print warnings that code should be\r\n      cleaned up to not use booleans or numerics."},"comment":{"url":"https://api.github.com/repos/thoughtbot/climate_control/issues/comments/135825248","html_url":"https://github.com/thoughtbot/climate_control/pull/16#issuecomment-135825248","issue_url":"https://api.github.com/repos/thoughtbot/climate_control/issues/16","id":135825248,"user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T16:27:54Z","updated_at":"2015-08-28T16:27:54Z","body":"Thanks for this PR, I ran into this `NoMethodError: keys` and had to source dive to find it. It's a super cryptic error so I'm very much for this PR."}}