GitHub PullRequestReviewCommentEvent at 2014-08-01 08:37:27
Repository: mad_cart
Actor: autonomous
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/madmimi/mad_cart/pulls/comments/15686577","id":15686577,"diff_hunk":"@@ -0,0 +1,125 @@\n+module MadCart\n+  module Store\n+    class Spree\n+      class InvalidStore < StandardError; end;\n+      class ServerError < StandardError; end;\n+      class InvalidCredentials < StandardError; end;\n+\n+      include MadCart::Store::Base\n+\n+      ORDERS_PER_PAGE = 50\n+\n+      create_connection_with :create_connection, :requires => [:api_key, :store_url]\n+      fetch :customers, :with => :get_customer_hashes\n+      fetch :products, :with => :get_products\n+\n+      def valid?\n+        check_for_errors do\n+          connection.get('orders.json')\n+        end\n+        return true","path":"lib/mad_cart/store/spree.rb","position":20,"original_position":20,"commit_id":"17381fda2baab0cb9375bf987263a2ec1c3632f0","original_commit_id":"2305de8c8f9de709a8df698f7d820d7bc5e44131","user":{"login":"autonomous","id":15879,"avatar_url":"https://avatars.githubusercontent.com/u/15879?v=1","gravatar_id":"57e3855c26bec5183a6d8369d7122709","url":"https://api.github.com/users/autonomous","html_url":"https://github.com/autonomous","followers_url":"https://api.github.com/users/autonomous/followers","following_url":"https://api.github.com/users/autonomous/following{/other_user}","gists_url":"https://api.github.com/users/autonomous/gists{/gist_id}","starred_url":"https://api.github.com/users/autonomous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/autonomous/subscriptions","organizations_url":"https://api.github.com/users/autonomous/orgs","repos_url":"https://api.github.com/users/autonomous/repos","events_url":"https://api.github.com/users/autonomous/events{/privacy}","received_events_url":"https://api.github.com/users/autonomous/received_events","type":"User","site_admin":false},"body":"k","created_at":"2014-08-01T08:37:27Z","updated_at":"2014-08-01T08:37:27Z","html_url":"https://github.com/madmimi/mad_cart/pull/6#discussion_r15686577","pull_request_url":"https://api.github.com/repos/madmimi/mad_cart/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/comments/15686577"},"html":{"href":"https://github.com/madmimi/mad_cart/pull/6#discussion_r15686577"},"pull_request":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/madmimi/mad_cart/pulls/6","id":19198316,"html_url":"https://github.com/madmimi/mad_cart/pull/6","diff_url":"https://github.com/madmimi/mad_cart/pull/6.diff","patch_url":"https://github.com/madmimi/mad_cart/pull/6.patch","issue_url":"https://api.github.com/repos/madmimi/mad_cart/issues/6","number":6,"state":"open","title":"Spree integration","user":{"login":"maximgladkov","id":1974054,"avatar_url":"https://avatars.githubusercontent.com/u/1974054?v=1","gravatar_id":"feec1caa75a2ec5948b6effbd15a05f0","url":"https://api.github.com/users/maximgladkov","html_url":"https://github.com/maximgladkov","followers_url":"https://api.github.com/users/maximgladkov/followers","following_url":"https://api.github.com/users/maximgladkov/following{/other_user}","gists_url":"https://api.github.com/users/maximgladkov/gists{/gist_id}","starred_url":"https://api.github.com/users/maximgladkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximgladkov/subscriptions","organizations_url":"https://api.github.com/users/maximgladkov/orgs","repos_url":"https://api.github.com/users/maximgladkov/repos","events_url":"https://api.github.com/users/maximgladkov/events{/privacy}","received_events_url":"https://api.github.com/users/maximgladkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-08-01T08:25:20Z","updated_at":"2014-08-01T08:37:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a355f563f1941c32b460bd1aa34bdee1b36d37fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/madmimi/mad_cart/pulls/6/commits","review_comments_url":"https://api.github.com/repos/madmimi/mad_cart/pulls/6/comments","review_comment_url":"https://api.github.com/repos/madmimi/mad_cart/pulls/comments/{number}","comments_url":"https://api.github.com/repos/madmimi/mad_cart/issues/6/comments","statuses_url":"https://api.github.com/repos/madmimi/mad_cart/statuses/17381fda2baab0cb9375bf987263a2ec1c3632f0","head":{"label":"madmimi:feature/spree_integration","ref":"feature/spree_integration","sha":"17381fda2baab0cb9375bf987263a2ec1c3632f0","user":{"login":"madmimi","id":29880,"avatar_url":"https://avatars.githubusercontent.com/u/29880?v=1","gravatar_id":"8faaf4f5fd42169f0af2a53bc3adca46","url":"https://api.github.com/users/madmimi","html_url":"https://github.com/madmimi","followers_url":"https://api.github.com/users/madmimi/followers","following_url":"https://api.github.com/users/madmimi/following{/other_user}","gists_url":"https://api.github.com/users/madmimi/gists{/gist_id}","starred_url":"https://api.github.com/users/madmimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmimi/subscriptions","organizations_url":"https://api.github.com/users/madmimi/orgs","repos_url":"https://api.github.com/users/madmimi/repos","events_url":"https://api.github.com/users/madmimi/events{/privacy}","received_events_url":"https://api.github.com/users/madmimi/received_events","type":"Organization","site_admin":false},"repo":{"id":9914027,"name":"mad_cart","full_name":"madmimi/mad_cart","owner":{"login":"madmimi","id":29880,"avatar_url":"https://avatars.githubusercontent.com/u/29880?v=1","gravatar_id":"8faaf4f5fd42169f0af2a53bc3adca46","url":"https://api.github.com/users/madmimi","html_url":"https://github.com/madmimi","followers_url":"https://api.github.com/users/madmimi/followers","following_url":"https://api.github.com/users/madmimi/following{/other_user}","gists_url":"https://api.github.com/users/madmimi/gists{/gist_id}","starred_url":"https://api.github.com/users/madmimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmimi/subscriptions","organizations_url":"https://api.github.com/users/madmimi/orgs","repos_url":"https://api.github.com/users/madmimi/repos","events_url":"https://api.github.com/users/madmimi/events{/privacy}","received_events_url":"https://api.github.com/users/madmimi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/madmimi/mad_cart","description":"","fork":false,"url":"https://api.github.com/repos/madmimi/mad_cart","forks_url":"https://api.github.com/repos/madmimi/mad_cart/forks","keys_url":"https://api.github.com/repos/madmimi/mad_cart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madmimi/mad_cart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madmimi/mad_cart/teams","hooks_url":"https://api.github.com/repos/madmimi/mad_cart/hooks","issue_events_url":"https://api.github.com/repos/madmimi/mad_cart/issues/events{/number}","events_url":"https://api.github.com/repos/madmimi/mad_cart/events","assignees_url":"https://api.github.com/repos/madmimi/mad_cart/assignees{/user}","branches_url":"https://api.github.com/repos/madmimi/mad_cart/branches{/branch}","tags_url":"https://api.github.com/repos/madmimi/mad_cart/tags","blobs_url":"https://api.github.com/repos/madmimi/mad_cart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madmimi/mad_cart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madmimi/mad_cart/git/refs{/sha}","trees_url":"https://api.github.com/repos/madmimi/mad_cart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madmimi/mad_cart/statuses/{sha}","languages_url":"https://api.github.com/repos/madmimi/mad_cart/languages","stargazers_url":"https://api.github.com/repos/madmimi/mad_cart/stargazers","contributors_url":"https://api.github.com/repos/madmimi/mad_cart/contributors","subscribers_url":"https://api.github.com/repos/madmimi/mad_cart/subscribers","subscription_url":"https://api.github.com/repos/madmimi/mad_cart/subscription","commits_url":"https://api.github.com/repos/madmimi/mad_cart/commits{/sha}","git_commits_url":"https://api.github.com/repos/madmimi/mad_cart/git/commits{/sha}","comments_url":"https://api.github.com/repos/madmimi/mad_cart/comments{/number}","issue_comment_url":"https://api.github.com/repos/madmimi/mad_cart/issues/comments/{number}","contents_url":"https://api.github.com/repos/madmimi/mad_cart/contents/{+path}","compare_url":"https://api.github.com/repos/madmimi/mad_cart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madmimi/mad_cart/merges","archive_url":"https://api.github.com/repos/madmimi/mad_cart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madmimi/mad_cart/downloads","issues_url":"https://api.github.com/repos/madmimi/mad_cart/issues{/number}","pulls_url":"https://api.github.com/repos/madmimi/mad_cart/pulls{/number}","milestones_url":"https://api.github.com/repos/madmimi/mad_cart/milestones{/number}","notifications_url":"https://api.github.com/repos/madmimi/mad_cart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madmimi/mad_cart/labels{/name}","releases_url":"https://api.github.com/repos/madmimi/mad_cart/releases{/id}","created_at":"2013-05-07T14:39:07Z","updated_at":"2014-05-08T12:51:14Z","pushed_at":"2014-08-01T08:32:15Z","git_url":"git://github.com/madmimi/mad_cart.git","ssh_url":"git@github.com:madmimi/mad_cart.git","clone_url":"https://github.com/madmimi/mad_cart.git","svn_url":"https://github.com/madmimi/mad_cart","homepage":null,"size":898,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"madmimi:master","ref":"master","sha":"438cb9f3ad85dc38fa08ca716efc1addb5cf1dba","user":{"login":"madmimi","id":29880,"avatar_url":"https://avatars.githubusercontent.com/u/29880?v=1","gravatar_id":"8faaf4f5fd42169f0af2a53bc3adca46","url":"https://api.github.com/users/madmimi","html_url":"https://github.com/madmimi","followers_url":"https://api.github.com/users/madmimi/followers","following_url":"https://api.github.com/users/madmimi/following{/other_user}","gists_url":"https://api.github.com/users/madmimi/gists{/gist_id}","starred_url":"https://api.github.com/users/madmimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmimi/subscriptions","organizations_url":"https://api.github.com/users/madmimi/orgs","repos_url":"https://api.github.com/users/madmimi/repos","events_url":"https://api.github.com/users/madmimi/events{/privacy}","received_events_url":"https://api.github.com/users/madmimi/received_events","type":"Organization","site_admin":false},"repo":{"id":9914027,"name":"mad_cart","full_name":"madmimi/mad_cart","owner":{"login":"madmimi","id":29880,"avatar_url":"https://avatars.githubusercontent.com/u/29880?v=1","gravatar_id":"8faaf4f5fd42169f0af2a53bc3adca46","url":"https://api.github.com/users/madmimi","html_url":"https://github.com/madmimi","followers_url":"https://api.github.com/users/madmimi/followers","following_url":"https://api.github.com/users/madmimi/following{/other_user}","gists_url":"https://api.github.com/users/madmimi/gists{/gist_id}","starred_url":"https://api.github.com/users/madmimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmimi/subscriptions","organizations_url":"https://api.github.com/users/madmimi/orgs","repos_url":"https://api.github.com/users/madmimi/repos","events_url":"https://api.github.com/users/madmimi/events{/privacy}","received_events_url":"https://api.github.com/users/madmimi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/madmimi/mad_cart","description":"","fork":false,"url":"https://api.github.com/repos/madmimi/mad_cart","forks_url":"https://api.github.com/repos/madmimi/mad_cart/forks","keys_url":"https://api.github.com/repos/madmimi/mad_cart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madmimi/mad_cart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madmimi/mad_cart/teams","hooks_url":"https://api.github.com/repos/madmimi/mad_cart/hooks","issue_events_url":"https://api.github.com/repos/madmimi/mad_cart/issues/events{/number}","events_url":"https://api.github.com/repos/madmimi/mad_cart/events","assignees_url":"https://api.github.com/repos/madmimi/mad_cart/assignees{/user}","branches_url":"https://api.github.com/repos/madmimi/mad_cart/branches{/branch}","tags_url":"https://api.github.com/repos/madmimi/mad_cart/tags","blobs_url":"https://api.github.com/repos/madmimi/mad_cart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madmimi/mad_cart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madmimi/mad_cart/git/refs{/sha}","trees_url":"https://api.github.com/repos/madmimi/mad_cart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madmimi/mad_cart/statuses/{sha}","languages_url":"https://api.github.com/repos/madmimi/mad_cart/languages","stargazers_url":"https://api.github.com/repos/madmimi/mad_cart/stargazers","contributors_url":"https://api.github.com/repos/madmimi/mad_cart/contributors","subscribers_url":"https://api.github.com/repos/madmimi/mad_cart/subscribers","subscription_url":"https://api.github.com/repos/madmimi/mad_cart/subscription","commits_url":"https://api.github.com/repos/madmimi/mad_cart/commits{/sha}","git_commits_url":"https://api.github.com/repos/madmimi/mad_cart/git/commits{/sha}","comments_url":"https://api.github.com/repos/madmimi/mad_cart/comments{/number}","issue_comment_url":"https://api.github.com/repos/madmimi/mad_cart/issues/comments/{number}","contents_url":"https://api.github.com/repos/madmimi/mad_cart/contents/{+path}","compare_url":"https://api.github.com/repos/madmimi/mad_cart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madmimi/mad_cart/merges","archive_url":"https://api.github.com/repos/madmimi/mad_cart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madmimi/mad_cart/downloads","issues_url":"https://api.github.com/repos/madmimi/mad_cart/issues{/number}","pulls_url":"https://api.github.com/repos/madmimi/mad_cart/pulls{/number}","milestones_url":"https://api.github.com/repos/madmimi/mad_cart/milestones{/number}","notifications_url":"https://api.github.com/repos/madmimi/mad_cart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madmimi/mad_cart/labels{/name}","releases_url":"https://api.github.com/repos/madmimi/mad_cart/releases{/id}","created_at":"2013-05-07T14:39:07Z","updated_at":"2014-05-08T12:51:14Z","pushed_at":"2014-08-01T08:32:15Z","git_url":"git://github.com/madmimi/mad_cart.git","ssh_url":"git@github.com:madmimi/mad_cart.git","clone_url":"https://github.com/madmimi/mad_cart.git","svn_url":"https://github.com/madmimi/mad_cart","homepage":null,"size":898,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/6"},"html":{"href":"https://github.com/madmimi/mad_cart/pull/6"},"issue":{"href":"https://api.github.com/repos/madmimi/mad_cart/issues/6"},"comments":{"href":"https://api.github.com/repos/madmimi/mad_cart/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/madmimi/mad_cart/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/madmimi/mad_cart/statuses/17381fda2baab0cb9375bf987263a2ec1c3632f0"}}}}