{"action":"created","comment":{"url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/comments/31288831","id":31288831,"diff_hunk":"@@ -335,6 +342,11 @@ def run(self):\n         self.result = response_body\n         if self.operation == 'compile':\n             compile_callback(self, response_body)\n+        if self.operation == 'refresh':\n+            notify(title    = 'Success',\n+            subtitle = self.active_file.rsplit('/',1).pop(),\n+            message  = 'Refresh was successful!',\n+            url = 'file://'+self.active_file)","path":"lib/mm_interface.py","position":22,"original_position":22,"commit_id":"8a51c435ced9587630b9bc1701ca11aad6cbb7e1","original_commit_id":"8a51c435ced9587630b9bc1701ca11aad6cbb7e1","user":{"login":"harmon","id":2168,"avatar_url":"https://avatars.githubusercontent.com/u/2168?v=3","gravatar_id":"","url":"https://api.github.com/users/harmon","html_url":"https://github.com/harmon","followers_url":"https://api.github.com/users/harmon/followers","following_url":"https://api.github.com/users/harmon/following{/other_user}","gists_url":"https://api.github.com/users/harmon/gists{/gist_id}","starred_url":"https://api.github.com/users/harmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harmon/subscriptions","organizations_url":"https://api.github.com/users/harmon/orgs","repos_url":"https://api.github.com/users/harmon/repos","events_url":"https://api.github.com/users/harmon/events{/privacy}","received_events_url":"https://api.github.com/users/harmon/received_events","type":"User","site_admin":false},"body":"Just a suggestion on formatting, as I think this would read a bit better:\r\n\r\n```\r\nif self.operation == 'refresh':\r\n    notify(\r\n        title = 'Success',\r\n        subtitle = self.active_file.rsplit('/', 1).pop(),\r\n        message = 'Refresh was successful!',\r\n        url = 'file://' + self.active_file\r\n    )\r\n```","created_at":"2015-05-28T23:49:52Z","updated_at":"2015-05-28T23:49:52Z","html_url":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548#discussion_r31288831","pull_request_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548","_links":{"self":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/comments/31288831"},"html":{"href":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548#discussion_r31288831"},"pull_request":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548"}}},"pull_request":{"url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548","id":29870756,"html_url":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548","diff_url":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548.diff","patch_url":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548.patch","issue_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/548","number":548,"state":"open","locked":false,"title":"Enhancement - Add OS X 10.8+ Notifications. Requires terminal-notifier g...","user":{"login":"rickschmidt","id":149581,"avatar_url":"https://avatars.githubusercontent.com/u/149581?v=3","gravatar_id":"","url":"https://api.github.com/users/rickschmidt","html_url":"https://github.com/rickschmidt","followers_url":"https://api.github.com/users/rickschmidt/followers","following_url":"https://api.github.com/users/rickschmidt/following{/other_user}","gists_url":"https://api.github.com/users/rickschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/rickschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickschmidt/subscriptions","organizations_url":"https://api.github.com/users/rickschmidt/orgs","repos_url":"https://api.github.com/users/rickschmidt/repos","events_url":"https://api.github.com/users/rickschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/rickschmidt/received_events","type":"User","site_admin":false},"body":"I've added OS X style notifications for 10.8+ when the \"mm_notifications\" setting is true.   \r\n\r\nThis requires the gem [terminal-notifier](https://github.com/alloy/terminal-notifier) to be installed. \r\n`$ [sudo] gem install terminal-notifier`\r\n\r\nNotifications are posted for the following\r\n1. Compilation successful\r\n2. Compilation failed\r\n3. Refresh completed\r\n\r\nHopefully this increases users productivity\r\n![screen shot 2015-02-23 at 10 42 58 pm](https://cloud.githubusercontent.com/assets/149581/6343385/5de1bfa2-bbad-11e4-8d9c-4bf6a2596785.png)\r\n","created_at":"2015-02-24T04:46:31Z","updated_at":"2015-05-28T23:49:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dcbc10e765f091b6fb91a3f6b7e410d41812111","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548/commits","review_comments_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548/comments","review_comment_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/548/comments","statuses_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/statuses/8a51c435ced9587630b9bc1701ca11aad6cbb7e1","head":{"label":"rickschmidt:master","ref":"master","sha":"8a51c435ced9587630b9bc1701ca11aad6cbb7e1","user":{"login":"rickschmidt","id":149581,"avatar_url":"https://avatars.githubusercontent.com/u/149581?v=3","gravatar_id":"","url":"https://api.github.com/users/rickschmidt","html_url":"https://github.com/rickschmidt","followers_url":"https://api.github.com/users/rickschmidt/followers","following_url":"https://api.github.com/users/rickschmidt/following{/other_user}","gists_url":"https://api.github.com/users/rickschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/rickschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickschmidt/subscriptions","organizations_url":"https://api.github.com/users/rickschmidt/orgs","repos_url":"https://api.github.com/users/rickschmidt/repos","events_url":"https://api.github.com/users/rickschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/rickschmidt/received_events","type":"User","site_admin":false},"repo":{"id":31169414,"name":"MavensMate-SublimeText","full_name":"rickschmidt/MavensMate-SublimeText","owner":{"login":"rickschmidt","id":149581,"avatar_url":"https://avatars.githubusercontent.com/u/149581?v=3","gravatar_id":"","url":"https://api.github.com/users/rickschmidt","html_url":"https://github.com/rickschmidt","followers_url":"https://api.github.com/users/rickschmidt/followers","following_url":"https://api.github.com/users/rickschmidt/following{/other_user}","gists_url":"https://api.github.com/users/rickschmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/rickschmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickschmidt/subscriptions","organizations_url":"https://api.github.com/users/rickschmidt/orgs","repos_url":"https://api.github.com/users/rickschmidt/repos","events_url":"https://api.github.com/users/rickschmidt/events{/privacy}","received_events_url":"https://api.github.com/users/rickschmidt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rickschmidt/MavensMate-SublimeText","description":"Sublime Text plugin for Salesforce1 developers. Aims to replace the Eclipse-based Force.com IDE.","fork":true,"url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText","forks_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/forks","keys_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/teams","hooks_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/hooks","issue_events_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/issues/events{/number}","events_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/events","assignees_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/assignees{/user}","branches_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/branches{/branch}","tags_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/tags","blobs_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/statuses/{sha}","languages_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/languages","stargazers_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/stargazers","contributors_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/contributors","subscribers_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/subscribers","subscription_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/subscription","commits_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/contents/{+path}","compare_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/merges","archive_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/downloads","issues_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/issues{/number}","pulls_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/pulls{/number}","milestones_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/milestones{/number}","notifications_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/labels{/name}","releases_url":"https://api.github.com/repos/rickschmidt/MavensMate-SublimeText/releases{/id}","created_at":"2015-02-22T16:27:51Z","updated_at":"2015-02-24T04:24:51Z","pushed_at":"2015-02-24T04:24:51Z","git_url":"git://github.com/rickschmidt/MavensMate-SublimeText.git","ssh_url":"git@github.com:rickschmidt/MavensMate-SublimeText.git","clone_url":"https://github.com/rickschmidt/MavensMate-SublimeText.git","svn_url":"https://github.com/rickschmidt/MavensMate-SublimeText","homepage":"http://mavensmate.com","size":25584,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"joeferraro:master","ref":"master","sha":"0dc74abd30fd076f86763e1981a911e6f87f7172","user":{"login":"joeferraro","id":54157,"avatar_url":"https://avatars.githubusercontent.com/u/54157?v=3","gravatar_id":"","url":"https://api.github.com/users/joeferraro","html_url":"https://github.com/joeferraro","followers_url":"https://api.github.com/users/joeferraro/followers","following_url":"https://api.github.com/users/joeferraro/following{/other_user}","gists_url":"https://api.github.com/users/joeferraro/gists{/gist_id}","starred_url":"https://api.github.com/users/joeferraro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeferraro/subscriptions","organizations_url":"https://api.github.com/users/joeferraro/orgs","repos_url":"https://api.github.com/users/joeferraro/repos","events_url":"https://api.github.com/users/joeferraro/events{/privacy}","received_events_url":"https://api.github.com/users/joeferraro/received_events","type":"User","site_admin":false},"repo":{"id":4709434,"name":"MavensMate-SublimeText","full_name":"joeferraro/MavensMate-SublimeText","owner":{"login":"joeferraro","id":54157,"avatar_url":"https://avatars.githubusercontent.com/u/54157?v=3","gravatar_id":"","url":"https://api.github.com/users/joeferraro","html_url":"https://github.com/joeferraro","followers_url":"https://api.github.com/users/joeferraro/followers","following_url":"https://api.github.com/users/joeferraro/following{/other_user}","gists_url":"https://api.github.com/users/joeferraro/gists{/gist_id}","starred_url":"https://api.github.com/users/joeferraro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeferraro/subscriptions","organizations_url":"https://api.github.com/users/joeferraro/orgs","repos_url":"https://api.github.com/users/joeferraro/repos","events_url":"https://api.github.com/users/joeferraro/events{/privacy}","received_events_url":"https://api.github.com/users/joeferraro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joeferraro/MavensMate-SublimeText","description":"Sublime Text plugin for Salesforce1 developers. Aims to replace the Eclipse-based Force.com IDE.","fork":false,"url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText","forks_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/forks","keys_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/teams","hooks_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/hooks","issue_events_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/events{/number}","events_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/events","assignees_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/assignees{/user}","branches_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/branches{/branch}","tags_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/tags","blobs_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/git/refs{/sha}","trees_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/statuses/{sha}","languages_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/languages","stargazers_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/stargazers","contributors_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/contributors","subscribers_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/subscribers","subscription_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/subscription","commits_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/commits{/sha}","git_commits_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/git/commits{/sha}","comments_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/comments{/number}","issue_comment_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/comments{/number}","contents_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/contents/{+path}","compare_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/merges","archive_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/downloads","issues_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues{/number}","pulls_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls{/number}","milestones_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/milestones{/number}","notifications_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/labels{/name}","releases_url":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/releases{/id}","created_at":"2012-06-19T04:32:31Z","updated_at":"2015-05-22T00:44:21Z","pushed_at":"2015-05-23T19:11:27Z","git_url":"git://github.com/joeferraro/MavensMate-SublimeText.git","ssh_url":"git@github.com:joeferraro/MavensMate-SublimeText.git","clone_url":"https://github.com/joeferraro/MavensMate-SublimeText.git","svn_url":"https://github.com/joeferraro/MavensMate-SublimeText","homepage":"http://mavensmate.com","size":28216,"stargazers_count":212,"watchers_count":212,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":159,"forks":74,"open_issues":159,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548"},"html":{"href":"https://github.com/joeferraro/MavensMate-SublimeText/pull/548"},"issue":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/548"},"comments":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/issues/548/comments"},"review_comments":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548/comments"},"review_comment":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/pulls/548/commits"},"statuses":{"href":"https://api.github.com/repos/joeferraro/MavensMate-SublimeText/statuses/8a51c435ced9587630b9bc1701ca11aad6cbb7e1"}}}}