{"action":"closed","number":76,"pull_request":{"url":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76","id":38914651,"html_url":"https://github.com/pusher/pusher-http-ruby/pull/76","diff_url":"https://github.com/pusher/pusher-http-ruby/pull/76.diff","patch_url":"https://github.com/pusher/pusher-http-ruby/pull/76.patch","issue_url":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/76","number":76,"state":"closed","locked":false,"title":"Ensure configuration exists","user":{"login":"KevinSjoberg","id":503025,"avatar_url":"https://avatars.githubusercontent.com/u/503025?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinSjoberg","html_url":"https://github.com/KevinSjoberg","followers_url":"https://api.github.com/users/KevinSjoberg/followers","following_url":"https://api.github.com/users/KevinSjoberg/following{/other_user}","gists_url":"https://api.github.com/users/KevinSjoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinSjoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinSjoberg/subscriptions","organizations_url":"https://api.github.com/users/KevinSjoberg/orgs","repos_url":"https://api.github.com/users/KevinSjoberg/repos","events_url":"https://api.github.com/users/KevinSjoberg/events{/privacy}","received_events_url":"https://api.github.com/users/KevinSjoberg/received_events","type":"User","site_admin":false},"body":"Currently, if important parts of the configuration is missing such as\r\nkey, secret or app_id the client will blow up when trying to reference\r\nany of the attributes. An example of this would be executing a `#get`\r\nrequest and building the proper signature. Since the attributes can be\r\n`nil` we would get an error such as: \"Can't convert nil to string\".\r\n\r\nI'm not super familiar with the library yet, so I may have overlooked certain aspects of the library. If I missed any methods that should be covered by `with_ensure_configuration` feel free to call it out. I'd be happy to adjust the pull request accordingly.","created_at":"2015-06-30T19:24:27Z","updated_at":"2016-05-15T19:46:28Z","closed_at":"2016-05-15T19:46:28Z","merged_at":null,"merge_commit_sha":"b8335a19ebfcdab5ce878466747c395017c5dcad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76/commits","review_comments_url":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76/comments","review_comment_url":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/76/comments","statuses_url":"https://api.github.com/repos/pusher/pusher-http-ruby/statuses/76118e87aab959ed1736e1f877f1bbeb489108d0","head":{"label":"KevinSjoberg:feature/ensure-configuration-exists-before-executing-requests","ref":"feature/ensure-configuration-exists-before-executing-requests","sha":"76118e87aab959ed1736e1f877f1bbeb489108d0","user":{"login":"KevinSjoberg","id":503025,"avatar_url":"https://avatars.githubusercontent.com/u/503025?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinSjoberg","html_url":"https://github.com/KevinSjoberg","followers_url":"https://api.github.com/users/KevinSjoberg/followers","following_url":"https://api.github.com/users/KevinSjoberg/following{/other_user}","gists_url":"https://api.github.com/users/KevinSjoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinSjoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinSjoberg/subscriptions","organizations_url":"https://api.github.com/users/KevinSjoberg/orgs","repos_url":"https://api.github.com/users/KevinSjoberg/repos","events_url":"https://api.github.com/users/KevinSjoberg/events{/privacy}","received_events_url":"https://api.github.com/users/KevinSjoberg/received_events","type":"User","site_admin":false},"repo":{"id":38325022,"name":"pusher-http-ruby","full_name":"KevinSjoberg/pusher-http-ruby","owner":{"login":"KevinSjoberg","id":503025,"avatar_url":"https://avatars.githubusercontent.com/u/503025?v=3","gravatar_id":"","url":"https://api.github.com/users/KevinSjoberg","html_url":"https://github.com/KevinSjoberg","followers_url":"https://api.github.com/users/KevinSjoberg/followers","following_url":"https://api.github.com/users/KevinSjoberg/following{/other_user}","gists_url":"https://api.github.com/users/KevinSjoberg/gists{/gist_id}","starred_url":"https://api.github.com/users/KevinSjoberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevinSjoberg/subscriptions","organizations_url":"https://api.github.com/users/KevinSjoberg/orgs","repos_url":"https://api.github.com/users/KevinSjoberg/repos","events_url":"https://api.github.com/users/KevinSjoberg/events{/privacy}","received_events_url":"https://api.github.com/users/KevinSjoberg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KevinSjoberg/pusher-http-ruby","description":"Ruby server library for the Pusher API","fork":true,"url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby","forks_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/forks","keys_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/teams","hooks_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/hooks","issue_events_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/events","assignees_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/tags","blobs_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/languages","stargazers_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/stargazers","contributors_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/contributors","subscribers_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/subscribers","subscription_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/subscription","commits_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/merges","archive_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/downloads","issues_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/labels{/name}","releases_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/KevinSjoberg/pusher-http-ruby/deployments","created_at":"2015-06-30T18:08:22Z","updated_at":"2015-06-30T18:08:22Z","pushed_at":"2015-07-01T18:02:41Z","git_url":"git://github.com/KevinSjoberg/pusher-http-ruby.git","ssh_url":"git@github.com:KevinSjoberg/pusher-http-ruby.git","clone_url":"https://github.com/KevinSjoberg/pusher-http-ruby.git","svn_url":"https://github.com/KevinSjoberg/pusher-http-ruby","homepage":"pusher.com","size":452,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pusher:master","ref":"master","sha":"1dc26403f706a2f1b1ea842dd37b0048ca055c00","user":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"repo":{"id":502150,"name":"pusher-http-ruby","full_name":"pusher/pusher-http-ruby","owner":{"login":"pusher","id":739550,"avatar_url":"https://avatars.githubusercontent.com/u/739550?v=3","gravatar_id":"","url":"https://api.github.com/users/pusher","html_url":"https://github.com/pusher","followers_url":"https://api.github.com/users/pusher/followers","following_url":"https://api.github.com/users/pusher/following{/other_user}","gists_url":"https://api.github.com/users/pusher/gists{/gist_id}","starred_url":"https://api.github.com/users/pusher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pusher/subscriptions","organizations_url":"https://api.github.com/users/pusher/orgs","repos_url":"https://api.github.com/users/pusher/repos","events_url":"https://api.github.com/users/pusher/events{/privacy}","received_events_url":"https://api.github.com/users/pusher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pusher/pusher-http-ruby","description":"Ruby server library for the Pusher API | owner=@zimbatm","fork":false,"url":"https://api.github.com/repos/pusher/pusher-http-ruby","forks_url":"https://api.github.com/repos/pusher/pusher-http-ruby/forks","keys_url":"https://api.github.com/repos/pusher/pusher-http-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pusher/pusher-http-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pusher/pusher-http-ruby/teams","hooks_url":"https://api.github.com/repos/pusher/pusher-http-ruby/hooks","issue_events_url":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pusher/pusher-http-ruby/events","assignees_url":"https://api.github.com/repos/pusher/pusher-http-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pusher/pusher-http-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pusher/pusher-http-ruby/tags","blobs_url":"https://api.github.com/repos/pusher/pusher-http-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pusher/pusher-http-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pusher/pusher-http-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pusher/pusher-http-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pusher/pusher-http-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pusher/pusher-http-ruby/languages","stargazers_url":"https://api.github.com/repos/pusher/pusher-http-ruby/stargazers","contributors_url":"https://api.github.com/repos/pusher/pusher-http-ruby/contributors","subscribers_url":"https://api.github.com/repos/pusher/pusher-http-ruby/subscribers","subscription_url":"https://api.github.com/repos/pusher/pusher-http-ruby/subscription","commits_url":"https://api.github.com/repos/pusher/pusher-http-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pusher/pusher-http-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pusher/pusher-http-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pusher/pusher-http-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pusher/pusher-http-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pusher/pusher-http-ruby/merges","archive_url":"https://api.github.com/repos/pusher/pusher-http-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pusher/pusher-http-ruby/downloads","issues_url":"https://api.github.com/repos/pusher/pusher-http-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pusher/pusher-http-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pusher/pusher-http-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pusher/pusher-http-ruby/labels{/name}","releases_url":"https://api.github.com/repos/pusher/pusher-http-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/pusher/pusher-http-ruby/deployments","created_at":"2010-02-04T12:39:28Z","updated_at":"2016-05-14T07:10:18Z","pushed_at":"2016-05-15T19:46:28Z","git_url":"git://github.com/pusher/pusher-http-ruby.git","ssh_url":"git@github.com:pusher/pusher-http-ruby.git","clone_url":"https://github.com/pusher/pusher-http-ruby.git","svn_url":"https://github.com/pusher/pusher-http-ruby","homepage":"","size":427,"stargazers_count":509,"watchers_count":509,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":7,"forks":68,"open_issues":7,"watchers":509,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76"},"html":{"href":"https://github.com/pusher/pusher-http-ruby/pull/76"},"issue":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/76"},"comments":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/issues/76/comments"},"review_comments":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76/comments"},"review_comment":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/pulls/76/commits"},"statuses":{"href":"https://api.github.com/repos/pusher/pusher-http-ruby/statuses/76118e87aab959ed1736e1f877f1bbeb489108d0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":9,"review_comments":0,"commits":1,"additions":38,"deletions":6,"changed_files":2}}