{"action":"created","comment":{"url":"https://api.github.com/repos/tradegecko/gecko/pulls/comments/29212147","id":29212147,"diff_hunk":"@@ -19,6 +21,7 @@ class VariantPrice\n         attribute :value,            BigDecimal\n       end\n \n+","path":"lib/gecko/record/variant.rb","position":17,"original_position":17,"commit_id":"a05ba72df856308e8000c46359db216edccfb8c5","original_commit_id":"a05ba72df856308e8000c46359db216edccfb8c5","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Extra blank line detected.","created_at":"2015-04-28T03:36:44Z","updated_at":"2015-04-28T03:36:44Z","html_url":"https://github.com/tradegecko/gecko/pull/39#discussion_r29212147","pull_request_url":"https://api.github.com/repos/tradegecko/gecko/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/comments/29212147"},"html":{"href":"https://github.com/tradegecko/gecko/pull/39#discussion_r29212147"},"pull_request":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/tradegecko/gecko/pulls/39","id":34231213,"html_url":"https://github.com/tradegecko/gecko/pull/39","diff_url":"https://github.com/tradegecko/gecko/pull/39.diff","patch_url":"https://github.com/tradegecko/gecko/pull/39.patch","issue_url":"https://api.github.com/repos/tradegecko/gecko/issues/39","number":39,"state":"open","locked":false,"title":"Alias committed stock to fetch the correct value from endpoint","user":{"login":"ejaypcanaria","id":5291164,"avatar_url":"https://avatars.githubusercontent.com/u/5291164?v=3","gravatar_id":"","url":"https://api.github.com/users/ejaypcanaria","html_url":"https://github.com/ejaypcanaria","followers_url":"https://api.github.com/users/ejaypcanaria/followers","following_url":"https://api.github.com/users/ejaypcanaria/following{/other_user}","gists_url":"https://api.github.com/users/ejaypcanaria/gists{/gist_id}","starred_url":"https://api.github.com/users/ejaypcanaria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejaypcanaria/subscriptions","organizations_url":"https://api.github.com/users/ejaypcanaria/orgs","repos_url":"https://api.github.com/users/ejaypcanaria/repos","events_url":"https://api.github.com/users/ejaypcanaria/events{/privacy}","received_events_url":"https://api.github.com/users/ejaypcanaria/received_events","type":"User","site_admin":false},"body":"Since the API endpoint returns `committed` as the key in the variant location, the Gecko gem is not getting the correct value because it's trying to fetch `committed_stock` which doesn't exists in the JSON response.\r\n\r\nThis alias method is a workaround to fix this bug.","created_at":"2015-04-28T03:36:37Z","updated_at":"2015-04-28T03:36:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb2786935a4ef8c1e44b406922f203b8df65829e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tradegecko/gecko/pulls/39/commits","review_comments_url":"https://api.github.com/repos/tradegecko/gecko/pulls/39/comments","review_comment_url":"https://api.github.com/repos/tradegecko/gecko/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tradegecko/gecko/issues/39/comments","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/a05ba72df856308e8000c46359db216edccfb8c5","head":{"label":"tradegecko:bugfix/alias-committed-stock","ref":"bugfix/alias-committed-stock","sha":"a05ba72df856308e8000c46359db216edccfb8c5","user":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"repo":{"id":15856065,"name":"gecko","full_name":"tradegecko/gecko","owner":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tradegecko/gecko","description":"A Ruby interface to the TradeGecko API.","fork":false,"url":"https://api.github.com/repos/tradegecko/gecko","forks_url":"https://api.github.com/repos/tradegecko/gecko/forks","keys_url":"https://api.github.com/repos/tradegecko/gecko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tradegecko/gecko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tradegecko/gecko/teams","hooks_url":"https://api.github.com/repos/tradegecko/gecko/hooks","issue_events_url":"https://api.github.com/repos/tradegecko/gecko/issues/events{/number}","events_url":"https://api.github.com/repos/tradegecko/gecko/events","assignees_url":"https://api.github.com/repos/tradegecko/gecko/assignees{/user}","branches_url":"https://api.github.com/repos/tradegecko/gecko/branches{/branch}","tags_url":"https://api.github.com/repos/tradegecko/gecko/tags","blobs_url":"https://api.github.com/repos/tradegecko/gecko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tradegecko/gecko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tradegecko/gecko/git/refs{/sha}","trees_url":"https://api.github.com/repos/tradegecko/gecko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/{sha}","languages_url":"https://api.github.com/repos/tradegecko/gecko/languages","stargazers_url":"https://api.github.com/repos/tradegecko/gecko/stargazers","contributors_url":"https://api.github.com/repos/tradegecko/gecko/contributors","subscribers_url":"https://api.github.com/repos/tradegecko/gecko/subscribers","subscription_url":"https://api.github.com/repos/tradegecko/gecko/subscription","commits_url":"https://api.github.com/repos/tradegecko/gecko/commits{/sha}","git_commits_url":"https://api.github.com/repos/tradegecko/gecko/git/commits{/sha}","comments_url":"https://api.github.com/repos/tradegecko/gecko/comments{/number}","issue_comment_url":"https://api.github.com/repos/tradegecko/gecko/issues/comments{/number}","contents_url":"https://api.github.com/repos/tradegecko/gecko/contents/{+path}","compare_url":"https://api.github.com/repos/tradegecko/gecko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tradegecko/gecko/merges","archive_url":"https://api.github.com/repos/tradegecko/gecko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tradegecko/gecko/downloads","issues_url":"https://api.github.com/repos/tradegecko/gecko/issues{/number}","pulls_url":"https://api.github.com/repos/tradegecko/gecko/pulls{/number}","milestones_url":"https://api.github.com/repos/tradegecko/gecko/milestones{/number}","notifications_url":"https://api.github.com/repos/tradegecko/gecko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tradegecko/gecko/labels{/name}","releases_url":"https://api.github.com/repos/tradegecko/gecko/releases{/id}","created_at":"2014-01-13T02:37:26Z","updated_at":"2015-04-15T19:59:28Z","pushed_at":"2015-04-28T03:36:37Z","git_url":"git://github.com/tradegecko/gecko.git","ssh_url":"git@github.com:tradegecko/gecko.git","clone_url":"https://github.com/tradegecko/gecko.git","svn_url":"https://github.com/tradegecko/gecko","homepage":null,"size":1228,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":7,"default_branch":"master"}},"base":{"label":"tradegecko:master","ref":"master","sha":"5b342db7f2ff06ea0e9986eafd579afa30f7b4bc","user":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"repo":{"id":15856065,"name":"gecko","full_name":"tradegecko/gecko","owner":{"login":"tradegecko","id":1814492,"avatar_url":"https://avatars.githubusercontent.com/u/1814492?v=3","gravatar_id":"","url":"https://api.github.com/users/tradegecko","html_url":"https://github.com/tradegecko","followers_url":"https://api.github.com/users/tradegecko/followers","following_url":"https://api.github.com/users/tradegecko/following{/other_user}","gists_url":"https://api.github.com/users/tradegecko/gists{/gist_id}","starred_url":"https://api.github.com/users/tradegecko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tradegecko/subscriptions","organizations_url":"https://api.github.com/users/tradegecko/orgs","repos_url":"https://api.github.com/users/tradegecko/repos","events_url":"https://api.github.com/users/tradegecko/events{/privacy}","received_events_url":"https://api.github.com/users/tradegecko/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tradegecko/gecko","description":"A Ruby interface to the TradeGecko API.","fork":false,"url":"https://api.github.com/repos/tradegecko/gecko","forks_url":"https://api.github.com/repos/tradegecko/gecko/forks","keys_url":"https://api.github.com/repos/tradegecko/gecko/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tradegecko/gecko/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tradegecko/gecko/teams","hooks_url":"https://api.github.com/repos/tradegecko/gecko/hooks","issue_events_url":"https://api.github.com/repos/tradegecko/gecko/issues/events{/number}","events_url":"https://api.github.com/repos/tradegecko/gecko/events","assignees_url":"https://api.github.com/repos/tradegecko/gecko/assignees{/user}","branches_url":"https://api.github.com/repos/tradegecko/gecko/branches{/branch}","tags_url":"https://api.github.com/repos/tradegecko/gecko/tags","blobs_url":"https://api.github.com/repos/tradegecko/gecko/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tradegecko/gecko/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tradegecko/gecko/git/refs{/sha}","trees_url":"https://api.github.com/repos/tradegecko/gecko/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tradegecko/gecko/statuses/{sha}","languages_url":"https://api.github.com/repos/tradegecko/gecko/languages","stargazers_url":"https://api.github.com/repos/tradegecko/gecko/stargazers","contributors_url":"https://api.github.com/repos/tradegecko/gecko/contributors","subscribers_url":"https://api.github.com/repos/tradegecko/gecko/subscribers","subscription_url":"https://api.github.com/repos/tradegecko/gecko/subscription","commits_url":"https://api.github.com/repos/tradegecko/gecko/commits{/sha}","git_commits_url":"https://api.github.com/repos/tradegecko/gecko/git/commits{/sha}","comments_url":"https://api.github.com/repos/tradegecko/gecko/comments{/number}","issue_comment_url":"https://api.github.com/repos/tradegecko/gecko/issues/comments{/number}","contents_url":"https://api.github.com/repos/tradegecko/gecko/contents/{+path}","compare_url":"https://api.github.com/repos/tradegecko/gecko/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tradegecko/gecko/merges","archive_url":"https://api.github.com/repos/tradegecko/gecko/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tradegecko/gecko/downloads","issues_url":"https://api.github.com/repos/tradegecko/gecko/issues{/number}","pulls_url":"https://api.github.com/repos/tradegecko/gecko/pulls{/number}","milestones_url":"https://api.github.com/repos/tradegecko/gecko/milestones{/number}","notifications_url":"https://api.github.com/repos/tradegecko/gecko/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tradegecko/gecko/labels{/name}","releases_url":"https://api.github.com/repos/tradegecko/gecko/releases{/id}","created_at":"2014-01-13T02:37:26Z","updated_at":"2015-04-15T19:59:28Z","pushed_at":"2015-04-28T03:36:37Z","git_url":"git://github.com/tradegecko/gecko.git","ssh_url":"git@github.com:tradegecko/gecko.git","clone_url":"https://github.com/tradegecko/gecko.git","svn_url":"https://github.com/tradegecko/gecko","homepage":null,"size":1228,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/39"},"html":{"href":"https://github.com/tradegecko/gecko/pull/39"},"issue":{"href":"https://api.github.com/repos/tradegecko/gecko/issues/39"},"comments":{"href":"https://api.github.com/repos/tradegecko/gecko/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tradegecko/gecko/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/tradegecko/gecko/statuses/a05ba72df856308e8000c46359db216edccfb8c5"}}}}