{"action":"created","comment":{"url":"https://api.github.com/repos/HealthWave/spree/pulls/comments/57903870","id":57903870,"diff_hunk":"@@ -37,6 +37,10 @@ class Shipment < ActiveRecord::Base\n           shipment.determine_state(shipment.order) == 'ready'\n         }\n       end\n+      after_transition from: :pending, to: :ready, do: lambda{ |shipment|\n+        # .pickup? is defined in the HW ShippingMethod Decorator\n+        shipment.ship! if shipment.shipping_method.try(:pickup?)\n+      }","path":"core/app/models/spree/shipment.rb","position":7,"original_position":7,"commit_id":"2249f51b4b291caa57586357c46934f738631d69","original_commit_id":"2249f51b4b291caa57586357c46934f738631d69","user":{"login":"patvice","id":6032824,"avatar_url":"https://avatars.githubusercontent.com/u/6032824?v=3","gravatar_id":"","url":"https://api.github.com/users/patvice","html_url":"https://github.com/patvice","followers_url":"https://api.github.com/users/patvice/followers","following_url":"https://api.github.com/users/patvice/following{/other_user}","gists_url":"https://api.github.com/users/patvice/gists{/gist_id}","starred_url":"https://api.github.com/users/patvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patvice/subscriptions","organizations_url":"https://api.github.com/users/patvice/orgs","repos_url":"https://api.github.com/users/patvice/repos","events_url":"https://api.github.com/users/patvice/events{/privacy}","received_events_url":"https://api.github.com/users/patvice/received_events","type":"User","site_admin":false},"body":"It did when I was testing locally","created_at":"2016-03-30T15:02:25Z","updated_at":"2016-03-30T15:02:25Z","html_url":"https://github.com/HealthWave/spree/pull/15#discussion_r57903870","pull_request_url":"https://api.github.com/repos/HealthWave/spree/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/comments/57903870"},"html":{"href":"https://github.com/HealthWave/spree/pull/15#discussion_r57903870"},"pull_request":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/HealthWave/spree/pulls/15","id":64641014,"html_url":"https://github.com/HealthWave/spree/pull/15","diff_url":"https://github.com/HealthWave/spree/pull/15.diff","patch_url":"https://github.com/HealthWave/spree/pull/15.patch","issue_url":"https://api.github.com/repos/HealthWave/spree/issues/15","number":15,"state":"open","locked":false,"title":"Added After Transition on Shipment","user":{"login":"patvice","id":6032824,"avatar_url":"https://avatars.githubusercontent.com/u/6032824?v=3","gravatar_id":"","url":"https://api.github.com/users/patvice","html_url":"https://github.com/patvice","followers_url":"https://api.github.com/users/patvice/followers","following_url":"https://api.github.com/users/patvice/following{/other_user}","gists_url":"https://api.github.com/users/patvice/gists{/gist_id}","starred_url":"https://api.github.com/users/patvice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patvice/subscriptions","organizations_url":"https://api.github.com/users/patvice/orgs","repos_url":"https://api.github.com/users/patvice/repos","events_url":"https://api.github.com/users/patvice/events{/privacy}","received_events_url":"https://api.github.com/users/patvice/received_events","type":"User","site_admin":false},"body":"@kurtfunai @uri @glongman please review","created_at":"2016-03-30T14:53:48Z","updated_at":"2016-03-30T15:02:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba5d4595010cf95205e2d05b0a9ca1c3f0bf04ed","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HealthWave/spree/pulls/15/commits","review_comments_url":"https://api.github.com/repos/HealthWave/spree/pulls/15/comments","review_comment_url":"https://api.github.com/repos/HealthWave/spree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HealthWave/spree/issues/15/comments","statuses_url":"https://api.github.com/repos/HealthWave/spree/statuses/2249f51b4b291caa57586357c46934f738631d69","head":{"label":"HealthWave:2-2-pickup-to-ship-state","ref":"2-2-pickup-to-ship-state","sha":"2249f51b4b291caa57586357c46934f738631d69","user":{"login":"HealthWave","id":1141836,"avatar_url":"https://avatars.githubusercontent.com/u/1141836?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthWave","html_url":"https://github.com/HealthWave","followers_url":"https://api.github.com/users/HealthWave/followers","following_url":"https://api.github.com/users/HealthWave/following{/other_user}","gists_url":"https://api.github.com/users/HealthWave/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthWave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthWave/subscriptions","organizations_url":"https://api.github.com/users/HealthWave/orgs","repos_url":"https://api.github.com/users/HealthWave/repos","events_url":"https://api.github.com/users/HealthWave/events{/privacy}","received_events_url":"https://api.github.com/users/HealthWave/received_events","type":"Organization","site_admin":false},"repo":{"id":8220051,"name":"spree","full_name":"HealthWave/spree","owner":{"login":"HealthWave","id":1141836,"avatar_url":"https://avatars.githubusercontent.com/u/1141836?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthWave","html_url":"https://github.com/HealthWave","followers_url":"https://api.github.com/users/HealthWave/followers","following_url":"https://api.github.com/users/HealthWave/following{/other_user}","gists_url":"https://api.github.com/users/HealthWave/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthWave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthWave/subscriptions","organizations_url":"https://api.github.com/users/HealthWave/orgs","repos_url":"https://api.github.com/users/HealthWave/repos","events_url":"https://api.github.com/users/HealthWave/events{/privacy}","received_events_url":"https://api.github.com/users/HealthWave/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthWave/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/HealthWave/spree","forks_url":"https://api.github.com/repos/HealthWave/spree/forks","keys_url":"https://api.github.com/repos/HealthWave/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthWave/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthWave/spree/teams","hooks_url":"https://api.github.com/repos/HealthWave/spree/hooks","issue_events_url":"https://api.github.com/repos/HealthWave/spree/issues/events{/number}","events_url":"https://api.github.com/repos/HealthWave/spree/events","assignees_url":"https://api.github.com/repos/HealthWave/spree/assignees{/user}","branches_url":"https://api.github.com/repos/HealthWave/spree/branches{/branch}","tags_url":"https://api.github.com/repos/HealthWave/spree/tags","blobs_url":"https://api.github.com/repos/HealthWave/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthWave/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthWave/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthWave/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthWave/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthWave/spree/languages","stargazers_url":"https://api.github.com/repos/HealthWave/spree/stargazers","contributors_url":"https://api.github.com/repos/HealthWave/spree/contributors","subscribers_url":"https://api.github.com/repos/HealthWave/spree/subscribers","subscription_url":"https://api.github.com/repos/HealthWave/spree/subscription","commits_url":"https://api.github.com/repos/HealthWave/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthWave/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthWave/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthWave/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthWave/spree/contents/{+path}","compare_url":"https://api.github.com/repos/HealthWave/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthWave/spree/merges","archive_url":"https://api.github.com/repos/HealthWave/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthWave/spree/downloads","issues_url":"https://api.github.com/repos/HealthWave/spree/issues{/number}","pulls_url":"https://api.github.com/repos/HealthWave/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthWave/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthWave/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthWave/spree/labels{/name}","releases_url":"https://api.github.com/repos/HealthWave/spree/releases{/id}","deployments_url":"https://api.github.com/repos/HealthWave/spree/deployments","created_at":"2013-02-15T14:52:50Z","updated_at":"2013-12-02T04:01:16Z","pushed_at":"2016-03-30T14:53:48Z","git_url":"git://github.com/HealthWave/spree.git","ssh_url":"git@github.com:HealthWave/spree.git","clone_url":"https://github.com/HealthWave/spree.git","svn_url":"https://github.com/HealthWave/spree","homepage":"http://spreecommerce.com","size":41644,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"HealthWave:2-2-stable-healthwave","ref":"2-2-stable-healthwave","sha":"bdcdba49911a9b469ac10f52850687ac34030fc3","user":{"login":"HealthWave","id":1141836,"avatar_url":"https://avatars.githubusercontent.com/u/1141836?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthWave","html_url":"https://github.com/HealthWave","followers_url":"https://api.github.com/users/HealthWave/followers","following_url":"https://api.github.com/users/HealthWave/following{/other_user}","gists_url":"https://api.github.com/users/HealthWave/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthWave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthWave/subscriptions","organizations_url":"https://api.github.com/users/HealthWave/orgs","repos_url":"https://api.github.com/users/HealthWave/repos","events_url":"https://api.github.com/users/HealthWave/events{/privacy}","received_events_url":"https://api.github.com/users/HealthWave/received_events","type":"Organization","site_admin":false},"repo":{"id":8220051,"name":"spree","full_name":"HealthWave/spree","owner":{"login":"HealthWave","id":1141836,"avatar_url":"https://avatars.githubusercontent.com/u/1141836?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthWave","html_url":"https://github.com/HealthWave","followers_url":"https://api.github.com/users/HealthWave/followers","following_url":"https://api.github.com/users/HealthWave/following{/other_user}","gists_url":"https://api.github.com/users/HealthWave/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthWave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthWave/subscriptions","organizations_url":"https://api.github.com/users/HealthWave/orgs","repos_url":"https://api.github.com/users/HealthWave/repos","events_url":"https://api.github.com/users/HealthWave/events{/privacy}","received_events_url":"https://api.github.com/users/HealthWave/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthWave/spree","description":"Spree is a complete open source e-commerce solution for Ruby on Rails.","fork":true,"url":"https://api.github.com/repos/HealthWave/spree","forks_url":"https://api.github.com/repos/HealthWave/spree/forks","keys_url":"https://api.github.com/repos/HealthWave/spree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthWave/spree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthWave/spree/teams","hooks_url":"https://api.github.com/repos/HealthWave/spree/hooks","issue_events_url":"https://api.github.com/repos/HealthWave/spree/issues/events{/number}","events_url":"https://api.github.com/repos/HealthWave/spree/events","assignees_url":"https://api.github.com/repos/HealthWave/spree/assignees{/user}","branches_url":"https://api.github.com/repos/HealthWave/spree/branches{/branch}","tags_url":"https://api.github.com/repos/HealthWave/spree/tags","blobs_url":"https://api.github.com/repos/HealthWave/spree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthWave/spree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthWave/spree/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthWave/spree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthWave/spree/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthWave/spree/languages","stargazers_url":"https://api.github.com/repos/HealthWave/spree/stargazers","contributors_url":"https://api.github.com/repos/HealthWave/spree/contributors","subscribers_url":"https://api.github.com/repos/HealthWave/spree/subscribers","subscription_url":"https://api.github.com/repos/HealthWave/spree/subscription","commits_url":"https://api.github.com/repos/HealthWave/spree/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthWave/spree/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthWave/spree/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthWave/spree/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthWave/spree/contents/{+path}","compare_url":"https://api.github.com/repos/HealthWave/spree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthWave/spree/merges","archive_url":"https://api.github.com/repos/HealthWave/spree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthWave/spree/downloads","issues_url":"https://api.github.com/repos/HealthWave/spree/issues{/number}","pulls_url":"https://api.github.com/repos/HealthWave/spree/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthWave/spree/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthWave/spree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthWave/spree/labels{/name}","releases_url":"https://api.github.com/repos/HealthWave/spree/releases{/id}","deployments_url":"https://api.github.com/repos/HealthWave/spree/deployments","created_at":"2013-02-15T14:52:50Z","updated_at":"2013-12-02T04:01:16Z","pushed_at":"2016-03-30T14:53:48Z","git_url":"git://github.com/HealthWave/spree.git","ssh_url":"git@github.com:HealthWave/spree.git","clone_url":"https://github.com/HealthWave/spree.git","svn_url":"https://github.com/HealthWave/spree","homepage":"http://spreecommerce.com","size":41644,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/15"},"html":{"href":"https://github.com/HealthWave/spree/pull/15"},"issue":{"href":"https://api.github.com/repos/HealthWave/spree/issues/15"},"comments":{"href":"https://api.github.com/repos/HealthWave/spree/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HealthWave/spree/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/HealthWave/spree/statuses/2249f51b4b291caa57586357c46934f738631d69"}}}}