{"action":"opened","number":138,"pull_request":{"url":"https://api.github.com/repos/Webtrends/rundeck/pulls/138","id":103970176,"html_url":"https://github.com/Webtrends/rundeck/pull/138","diff_url":"https://github.com/Webtrends/rundeck/pull/138.diff","patch_url":"https://github.com/Webtrends/rundeck/pull/138.patch","issue_url":"https://api.github.com/repos/Webtrends/rundeck/issues/138","number":138,"state":"open","locked":false,"title":"api client using rest-client gem","user":{"login":"atheiman","id":5932099,"avatar_url":"https://avatars.githubusercontent.com/u/5932099?v=3","gravatar_id":"","url":"https://api.github.com/users/atheiman","html_url":"https://github.com/atheiman","followers_url":"https://api.github.com/users/atheiman/followers","following_url":"https://api.github.com/users/atheiman/following{/other_user}","gists_url":"https://api.github.com/users/atheiman/gists{/gist_id}","starred_url":"https://api.github.com/users/atheiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atheiman/subscriptions","organizations_url":"https://api.github.com/users/atheiman/orgs","repos_url":"https://api.github.com/users/atheiman/repos","events_url":"https://api.github.com/users/atheiman/events{/privacy}","received_events_url":"https://api.github.com/users/atheiman/received_events","type":"User","site_admin":false},"body":"i know it seems like im spinning my wheels with all the api prs... but it would be much better to use [rest-client](https://github.com/rest-client/rest-client) for the rest client functionality than `Net::HTTP`. I tried to do this originally and was having a hard time requiring the gem in a library. I got it working with:\r\n\r\n- `chef_gem` install of rest-client\r\n- `build-essentials` default recipe at compile time\r\n- only `require 'rest-client'` in the library after the gem has been installed (nested the require inside a method in the library)\r\n\r\nIm gonna replace most of the http functionality I hacked together with rest-client builtin functionality.","created_at":"2017-01-31T16:22:54Z","updated_at":"2017-01-31T16:22:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Webtrends/rundeck/pulls/138/commits","review_comments_url":"https://api.github.com/repos/Webtrends/rundeck/pulls/138/comments","review_comment_url":"https://api.github.com/repos/Webtrends/rundeck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Webtrends/rundeck/issues/138/comments","statuses_url":"https://api.github.com/repos/Webtrends/rundeck/statuses/1d23c5b7a516aa4bcb262100add0d849ebf439f4","head":{"label":"atheiman:rundeck-rest-client","ref":"rundeck-rest-client","sha":"1d23c5b7a516aa4bcb262100add0d849ebf439f4","user":{"login":"atheiman","id":5932099,"avatar_url":"https://avatars.githubusercontent.com/u/5932099?v=3","gravatar_id":"","url":"https://api.github.com/users/atheiman","html_url":"https://github.com/atheiman","followers_url":"https://api.github.com/users/atheiman/followers","following_url":"https://api.github.com/users/atheiman/following{/other_user}","gists_url":"https://api.github.com/users/atheiman/gists{/gist_id}","starred_url":"https://api.github.com/users/atheiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atheiman/subscriptions","organizations_url":"https://api.github.com/users/atheiman/orgs","repos_url":"https://api.github.com/users/atheiman/repos","events_url":"https://api.github.com/users/atheiman/events{/privacy}","received_events_url":"https://api.github.com/users/atheiman/received_events","type":"User","site_admin":false},"repo":{"id":73443578,"name":"rundeck","full_name":"atheiman/rundeck","owner":{"login":"atheiman","id":5932099,"avatar_url":"https://avatars.githubusercontent.com/u/5932099?v=3","gravatar_id":"","url":"https://api.github.com/users/atheiman","html_url":"https://github.com/atheiman","followers_url":"https://api.github.com/users/atheiman/followers","following_url":"https://api.github.com/users/atheiman/following{/other_user}","gists_url":"https://api.github.com/users/atheiman/gists{/gist_id}","starred_url":"https://api.github.com/users/atheiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atheiman/subscriptions","organizations_url":"https://api.github.com/users/atheiman/orgs","repos_url":"https://api.github.com/users/atheiman/repos","events_url":"https://api.github.com/users/atheiman/events{/privacy}","received_events_url":"https://api.github.com/users/atheiman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/atheiman/rundeck","description":"Rundeck 2.0 cookbook for Chef","fork":true,"url":"https://api.github.com/repos/atheiman/rundeck","forks_url":"https://api.github.com/repos/atheiman/rundeck/forks","keys_url":"https://api.github.com/repos/atheiman/rundeck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atheiman/rundeck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atheiman/rundeck/teams","hooks_url":"https://api.github.com/repos/atheiman/rundeck/hooks","issue_events_url":"https://api.github.com/repos/atheiman/rundeck/issues/events{/number}","events_url":"https://api.github.com/repos/atheiman/rundeck/events","assignees_url":"https://api.github.com/repos/atheiman/rundeck/assignees{/user}","branches_url":"https://api.github.com/repos/atheiman/rundeck/branches{/branch}","tags_url":"https://api.github.com/repos/atheiman/rundeck/tags","blobs_url":"https://api.github.com/repos/atheiman/rundeck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atheiman/rundeck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atheiman/rundeck/git/refs{/sha}","trees_url":"https://api.github.com/repos/atheiman/rundeck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atheiman/rundeck/statuses/{sha}","languages_url":"https://api.github.com/repos/atheiman/rundeck/languages","stargazers_url":"https://api.github.com/repos/atheiman/rundeck/stargazers","contributors_url":"https://api.github.com/repos/atheiman/rundeck/contributors","subscribers_url":"https://api.github.com/repos/atheiman/rundeck/subscribers","subscription_url":"https://api.github.com/repos/atheiman/rundeck/subscription","commits_url":"https://api.github.com/repos/atheiman/rundeck/commits{/sha}","git_commits_url":"https://api.github.com/repos/atheiman/rundeck/git/commits{/sha}","comments_url":"https://api.github.com/repos/atheiman/rundeck/comments{/number}","issue_comment_url":"https://api.github.com/repos/atheiman/rundeck/issues/comments{/number}","contents_url":"https://api.github.com/repos/atheiman/rundeck/contents/{+path}","compare_url":"https://api.github.com/repos/atheiman/rundeck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atheiman/rundeck/merges","archive_url":"https://api.github.com/repos/atheiman/rundeck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atheiman/rundeck/downloads","issues_url":"https://api.github.com/repos/atheiman/rundeck/issues{/number}","pulls_url":"https://api.github.com/repos/atheiman/rundeck/pulls{/number}","milestones_url":"https://api.github.com/repos/atheiman/rundeck/milestones{/number}","notifications_url":"https://api.github.com/repos/atheiman/rundeck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atheiman/rundeck/labels{/name}","releases_url":"https://api.github.com/repos/atheiman/rundeck/releases{/id}","deployments_url":"https://api.github.com/repos/atheiman/rundeck/deployments","created_at":"2016-11-11T03:45:08Z","updated_at":"2016-11-11T03:45:09Z","pushed_at":"2017-01-31T16:19:37Z","git_url":"git://github.com/atheiman/rundeck.git","ssh_url":"git@github.com:atheiman/rundeck.git","clone_url":"https://github.com/atheiman/rundeck.git","svn_url":"https://github.com/atheiman/rundeck","homepage":null,"size":176053,"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":"Webtrends:master","ref":"master","sha":"4b0c9416609eae7ba51d37ad674894e087cd70ff","user":{"login":"Webtrends","id":353082,"avatar_url":"https://avatars.githubusercontent.com/u/353082?v=3","gravatar_id":"","url":"https://api.github.com/users/Webtrends","html_url":"https://github.com/Webtrends","followers_url":"https://api.github.com/users/Webtrends/followers","following_url":"https://api.github.com/users/Webtrends/following{/other_user}","gists_url":"https://api.github.com/users/Webtrends/gists{/gist_id}","starred_url":"https://api.github.com/users/Webtrends/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Webtrends/subscriptions","organizations_url":"https://api.github.com/users/Webtrends/orgs","repos_url":"https://api.github.com/users/Webtrends/repos","events_url":"https://api.github.com/users/Webtrends/events{/privacy}","received_events_url":"https://api.github.com/users/Webtrends/received_events","type":"Organization","site_admin":false},"repo":{"id":16822905,"name":"rundeck","full_name":"Webtrends/rundeck","owner":{"login":"Webtrends","id":353082,"avatar_url":"https://avatars.githubusercontent.com/u/353082?v=3","gravatar_id":"","url":"https://api.github.com/users/Webtrends","html_url":"https://github.com/Webtrends","followers_url":"https://api.github.com/users/Webtrends/followers","following_url":"https://api.github.com/users/Webtrends/following{/other_user}","gists_url":"https://api.github.com/users/Webtrends/gists{/gist_id}","starred_url":"https://api.github.com/users/Webtrends/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Webtrends/subscriptions","organizations_url":"https://api.github.com/users/Webtrends/orgs","repos_url":"https://api.github.com/users/Webtrends/repos","events_url":"https://api.github.com/users/Webtrends/events{/privacy}","received_events_url":"https://api.github.com/users/Webtrends/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Webtrends/rundeck","description":"Rundeck 2.0 cookbook for Chef","fork":false,"url":"https://api.github.com/repos/Webtrends/rundeck","forks_url":"https://api.github.com/repos/Webtrends/rundeck/forks","keys_url":"https://api.github.com/repos/Webtrends/rundeck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Webtrends/rundeck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Webtrends/rundeck/teams","hooks_url":"https://api.github.com/repos/Webtrends/rundeck/hooks","issue_events_url":"https://api.github.com/repos/Webtrends/rundeck/issues/events{/number}","events_url":"https://api.github.com/repos/Webtrends/rundeck/events","assignees_url":"https://api.github.com/repos/Webtrends/rundeck/assignees{/user}","branches_url":"https://api.github.com/repos/Webtrends/rundeck/branches{/branch}","tags_url":"https://api.github.com/repos/Webtrends/rundeck/tags","blobs_url":"https://api.github.com/repos/Webtrends/rundeck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Webtrends/rundeck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Webtrends/rundeck/git/refs{/sha}","trees_url":"https://api.github.com/repos/Webtrends/rundeck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Webtrends/rundeck/statuses/{sha}","languages_url":"https://api.github.com/repos/Webtrends/rundeck/languages","stargazers_url":"https://api.github.com/repos/Webtrends/rundeck/stargazers","contributors_url":"https://api.github.com/repos/Webtrends/rundeck/contributors","subscribers_url":"https://api.github.com/repos/Webtrends/rundeck/subscribers","subscription_url":"https://api.github.com/repos/Webtrends/rundeck/subscription","commits_url":"https://api.github.com/repos/Webtrends/rundeck/commits{/sha}","git_commits_url":"https://api.github.com/repos/Webtrends/rundeck/git/commits{/sha}","comments_url":"https://api.github.com/repos/Webtrends/rundeck/comments{/number}","issue_comment_url":"https://api.github.com/repos/Webtrends/rundeck/issues/comments{/number}","contents_url":"https://api.github.com/repos/Webtrends/rundeck/contents/{+path}","compare_url":"https://api.github.com/repos/Webtrends/rundeck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Webtrends/rundeck/merges","archive_url":"https://api.github.com/repos/Webtrends/rundeck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Webtrends/rundeck/downloads","issues_url":"https://api.github.com/repos/Webtrends/rundeck/issues{/number}","pulls_url":"https://api.github.com/repos/Webtrends/rundeck/pulls{/number}","milestones_url":"https://api.github.com/repos/Webtrends/rundeck/milestones{/number}","notifications_url":"https://api.github.com/repos/Webtrends/rundeck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Webtrends/rundeck/labels{/name}","releases_url":"https://api.github.com/repos/Webtrends/rundeck/releases{/id}","deployments_url":"https://api.github.com/repos/Webtrends/rundeck/deployments","created_at":"2014-02-14T01:06:07Z","updated_at":"2016-12-20T13:52:07Z","pushed_at":"2017-01-31T13:08:45Z","git_url":"git://github.com/Webtrends/rundeck.git","ssh_url":"git@github.com:Webtrends/rundeck.git","clone_url":"https://github.com/Webtrends/rundeck.git","svn_url":"https://github.com/Webtrends/rundeck","homepage":null,"size":176051,"stargazers_count":31,"watchers_count":31,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":22,"forks":63,"open_issues":22,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Webtrends/rundeck/pulls/138"},"html":{"href":"https://github.com/Webtrends/rundeck/pull/138"},"issue":{"href":"https://api.github.com/repos/Webtrends/rundeck/issues/138"},"comments":{"href":"https://api.github.com/repos/Webtrends/rundeck/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/Webtrends/rundeck/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/Webtrends/rundeck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Webtrends/rundeck/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/Webtrends/rundeck/statuses/1d23c5b7a516aa4bcb262100add0d849ebf439f4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":206,"deletions":0,"changed_files":7}}
{"actor":{"display_login":"atheiman"}}