{"action":"opened","number":38,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38","id":87435573,"html_url":"https://github.com/ManageIQ/manageiq-api-client/pull/38","diff_url":"https://github.com/ManageIQ/manageiq-api-client/pull/38.diff","patch_url":"https://github.com/ManageIQ/manageiq-api-client/pull/38.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/38","number":38,"state":"open","locked":false,"title":"Add support for PP","user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"body":"Because the inspect method was overridden, Ruby's PP module (and by\r\nextension pry's pretty printer) would not pretty print any objects\r\nproperly, instead leaving them on a single line which is hard to use.\r\nThis commit allows PP to work properly.\r\n\r\nBy happenstance it also greatly simplifies the CustomInspectMixin by\r\nusing the built-in pretty_print_inspect as the custom inspect method.\r\nThe removal of instance variables was the one feature that\r\nCustomInspectMixin provided, but it turns out PP already has support for\r\nthat, so we can just use it.\r\n\r\nBefore\r\n\r\n```ruby\r\n[2] pry(main)> miq.vms.inspect\r\n=> \"#<ManageIQ::API::Client::Collection::Vms:0x007fc145022458 @name=\\\"vms\\\", @href=\\\"http://localhost:3000/api/vms\\\", @description=\\\"Virtual Machines\\\", @actions=[]>\"\r\n[3] pry(main)> miq.vms\r\n=> #<ManageIQ::API::Client::Collection::Vms:0x007fc145022458 @name=\"vms\", @href=\"http://localhost:3000/api/vms\", @description=\"Virtual Machines\", @actions=[]>\r\n```\r\n\r\nAfter (also notice it still removes the `@client` as it did in the Before)\r\n\r\n```ruby\r\n[2] pry(main)> miq.vms.inspect\r\n=> \"#<ManageIQ::API::Client::Collection::Vms:0x007fee751519c0 @actions=[], @description=\\\"Virtual Machines\\\", @href=\\\"http://localhost:3000/api/vms\\\", @name=\\\"vms\\\">\"\r\n[3] pry(main)> miq.vms\r\n=> #<ManageIQ::API::Client::Collection::Vms:0x007fee751519c0\r\n @actions=[],\r\n @description=\"Virtual Machines\",\r\n @href=\"http://localhost:3000/api/vms\",\r\n @name=\"vms\">\r\n```","created_at":"2016-09-30T05:18:12Z","updated_at":"2016-09-30T05:18:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/38/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/statuses/ae77764d97705c8e278642026a04bf217d635263","head":{"label":"Fryguy:fix_pretty_print","ref":"fix_pretty_print","sha":"ae77764d97705c8e278642026a04bf217d635263","user":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"repo":{"id":62833296,"name":"manageiq-api-client","full_name":"Fryguy/manageiq-api-client","owner":{"login":"Fryguy","id":52120,"avatar_url":"https://avatars.githubusercontent.com/u/52120?v=3","gravatar_id":"","url":"https://api.github.com/users/Fryguy","html_url":"https://github.com/Fryguy","followers_url":"https://api.github.com/users/Fryguy/followers","following_url":"https://api.github.com/users/Fryguy/following{/other_user}","gists_url":"https://api.github.com/users/Fryguy/gists{/gist_id}","starred_url":"https://api.github.com/users/Fryguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fryguy/subscriptions","organizations_url":"https://api.github.com/users/Fryguy/orgs","repos_url":"https://api.github.com/users/Fryguy/repos","events_url":"https://api.github.com/users/Fryguy/events{/privacy}","received_events_url":"https://api.github.com/users/Fryguy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fryguy/manageiq-api-client","description":"Ruby client library to the ManageIQ REST API","fork":true,"url":"https://api.github.com/repos/Fryguy/manageiq-api-client","forks_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/forks","keys_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/teams","hooks_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/hooks","issue_events_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/events","assignees_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/tags","blobs_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/languages","stargazers_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/stargazers","contributors_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/contributors","subscribers_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/subscribers","subscription_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/subscription","commits_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/merges","archive_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/downloads","issues_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/labels{/name}","releases_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/Fryguy/manageiq-api-client/deployments","created_at":"2016-07-07T19:34:48Z","updated_at":"2016-07-07T19:34:49Z","pushed_at":"2016-09-30T05:11:55Z","git_url":"git://github.com/Fryguy/manageiq-api-client.git","ssh_url":"git@github.com:Fryguy/manageiq-api-client.git","clone_url":"https://github.com/Fryguy/manageiq-api-client.git","svn_url":"https://github.com/Fryguy/manageiq-api-client","homepage":null,"size":53,"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":"ManageIQ:master","ref":"master","sha":"0da5f4c528725c6857177f364ea94b778a2be377","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":62830566,"name":"manageiq-api-client","full_name":"ManageIQ/manageiq-api-client","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/manageiq-api-client","description":"Ruby client library to the ManageIQ REST API","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq-api-client","forks_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq-api-client/deployments","created_at":"2016-07-07T18:46:52Z","updated_at":"2016-09-09T20:06:04Z","pushed_at":"2016-09-30T03:07:09Z","git_url":"git://github.com/ManageIQ/manageiq-api-client.git","ssh_url":"git@github.com:ManageIQ/manageiq-api-client.git","clone_url":"https://github.com/ManageIQ/manageiq-api-client.git","svn_url":"https://github.com/ManageIQ/manageiq-api-client","homepage":null,"size":63,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":14,"forks":8,"open_issues":14,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38"},"html":{"href":"https://github.com/ManageIQ/manageiq-api-client/pull/38"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/38"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq-api-client/statuses/ae77764d97705c8e278642026a04bf217d635263"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":15,"changed_files":2}}
{"actor":{"display_login":"Fryguy"}}