{"action":"created","comment":{"url":"https://api.github.com/repos/supermarin/xcpretty/pulls/comments/41302870","id":41302870,"diff_hunk":"@@ -26,6 +26,8 @@ Gem::Specification.new do |spec|\n   spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})\n   spec.require_paths = [\"lib\"]\n \n+  spec.add_dependency 'rouge', '~> 1.8'\n+","path":"xcpretty.gemspec","position":5,"original_position":5,"commit_id":"38cc8718446a75b145b68b8b2a5faecd18875fc7","original_commit_id":"38cc8718446a75b145b68b8b2a5faecd18875fc7","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"body":"This is already conditional, the conditionally depends on rouge in code.\r\n\r\n```ruby\r\nreturn snippet.contents unless Rouge\r\n```\r\n\r\nI put a hard-dependency in the gemspec since I would assume if you are using RubyGems (a package manager) you would want it to manage your packages and dependencies.","created_at":"2015-10-06T18:28:02Z","updated_at":"2015-10-06T18:28:02Z","html_url":"https://github.com/supermarin/xcpretty/pull/141#discussion_r41302870","pull_request_url":"https://api.github.com/repos/supermarin/xcpretty/pulls/141","_links":{"self":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/comments/41302870"},"html":{"href":"https://github.com/supermarin/xcpretty/pull/141#discussion_r41302870"},"pull_request":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/supermarin/xcpretty/pulls/141","id":35027711,"html_url":"https://github.com/supermarin/xcpretty/pull/141","diff_url":"https://github.com/supermarin/xcpretty/pull/141.diff","patch_url":"https://github.com/supermarin/xcpretty/pull/141.patch","issue_url":"https://api.github.com/repos/supermarin/xcpretty/issues/141","number":141,"state":"open","locked":false,"title":"Use rouge for highlighting instead of Pygments","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"body":"This removes a dependency on a Python project, and greatly improves syntax highlighting along with fixing #138.\r\n\r\nBefore:\r\n\r\n![screen shot 2015-05-08 at 18 00 26](https://cloud.githubusercontent.com/assets/44164/7541463/94ffb3f6-f5ad-11e4-8da1-4409002493e4.png)\r\n\r\nAfter:\r\n\r\n![screen shot 2015-05-08 at 18 00 11](https://cloud.githubusercontent.com/assets/44164/7541465/9635c29c-f5ad-11e4-8395-f70f1d9bedca.png)\r\n\r\nThis does add a required dependency which may not be desired, if that is the case I'm happy to amend this pull request to make rouge optional.","created_at":"2015-05-08T17:12:26Z","updated_at":"2015-10-06T18:28:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9d18de94bbc96a9bb7676f5c34dd7070bb2bb130","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/supermarin/xcpretty/pulls/141/commits","review_comments_url":"https://api.github.com/repos/supermarin/xcpretty/pulls/141/comments","review_comment_url":"https://api.github.com/repos/supermarin/xcpretty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/supermarin/xcpretty/issues/141/comments","statuses_url":"https://api.github.com/repos/supermarin/xcpretty/statuses/38cc8718446a75b145b68b8b2a5faecd18875fc7","head":{"label":"kylef:kylef/rouge","ref":"kylef/rouge","sha":"38cc8718446a75b145b68b8b2a5faecd18875fc7","user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"repo":{"id":35291714,"name":"xcpretty","full_name":"kylef/xcpretty","owner":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kylef/xcpretty","description":"Flexible and fast xcodebuild formatter","fork":true,"url":"https://api.github.com/repos/kylef/xcpretty","forks_url":"https://api.github.com/repos/kylef/xcpretty/forks","keys_url":"https://api.github.com/repos/kylef/xcpretty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kylef/xcpretty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kylef/xcpretty/teams","hooks_url":"https://api.github.com/repos/kylef/xcpretty/hooks","issue_events_url":"https://api.github.com/repos/kylef/xcpretty/issues/events{/number}","events_url":"https://api.github.com/repos/kylef/xcpretty/events","assignees_url":"https://api.github.com/repos/kylef/xcpretty/assignees{/user}","branches_url":"https://api.github.com/repos/kylef/xcpretty/branches{/branch}","tags_url":"https://api.github.com/repos/kylef/xcpretty/tags","blobs_url":"https://api.github.com/repos/kylef/xcpretty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kylef/xcpretty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kylef/xcpretty/git/refs{/sha}","trees_url":"https://api.github.com/repos/kylef/xcpretty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kylef/xcpretty/statuses/{sha}","languages_url":"https://api.github.com/repos/kylef/xcpretty/languages","stargazers_url":"https://api.github.com/repos/kylef/xcpretty/stargazers","contributors_url":"https://api.github.com/repos/kylef/xcpretty/contributors","subscribers_url":"https://api.github.com/repos/kylef/xcpretty/subscribers","subscription_url":"https://api.github.com/repos/kylef/xcpretty/subscription","commits_url":"https://api.github.com/repos/kylef/xcpretty/commits{/sha}","git_commits_url":"https://api.github.com/repos/kylef/xcpretty/git/commits{/sha}","comments_url":"https://api.github.com/repos/kylef/xcpretty/comments{/number}","issue_comment_url":"https://api.github.com/repos/kylef/xcpretty/issues/comments{/number}","contents_url":"https://api.github.com/repos/kylef/xcpretty/contents/{+path}","compare_url":"https://api.github.com/repos/kylef/xcpretty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kylef/xcpretty/merges","archive_url":"https://api.github.com/repos/kylef/xcpretty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kylef/xcpretty/downloads","issues_url":"https://api.github.com/repos/kylef/xcpretty/issues{/number}","pulls_url":"https://api.github.com/repos/kylef/xcpretty/pulls{/number}","milestones_url":"https://api.github.com/repos/kylef/xcpretty/milestones{/number}","notifications_url":"https://api.github.com/repos/kylef/xcpretty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kylef/xcpretty/labels{/name}","releases_url":"https://api.github.com/repos/kylef/xcpretty/releases{/id}","created_at":"2015-05-08T17:09:56Z","updated_at":"2015-05-08T17:09:57Z","pushed_at":"2015-10-06T17:19:17Z","git_url":"git://github.com/kylef/xcpretty.git","ssh_url":"git@github.com:kylef/xcpretty.git","clone_url":"https://github.com/kylef/xcpretty.git","svn_url":"https://github.com/kylef/xcpretty","homepage":"","size":3304,"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":"supermarin:master","ref":"master","sha":"a5c824f97ceaf365b987c95f5b48cb772fac96f4","user":{"login":"supermarin","id":627285,"avatar_url":"https://avatars.githubusercontent.com/u/627285?v=3","gravatar_id":"","url":"https://api.github.com/users/supermarin","html_url":"https://github.com/supermarin","followers_url":"https://api.github.com/users/supermarin/followers","following_url":"https://api.github.com/users/supermarin/following{/other_user}","gists_url":"https://api.github.com/users/supermarin/gists{/gist_id}","starred_url":"https://api.github.com/users/supermarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermarin/subscriptions","organizations_url":"https://api.github.com/users/supermarin/orgs","repos_url":"https://api.github.com/users/supermarin/repos","events_url":"https://api.github.com/users/supermarin/events{/privacy}","received_events_url":"https://api.github.com/users/supermarin/received_events","type":"User","site_admin":false},"repo":{"id":15035229,"name":"xcpretty","full_name":"supermarin/xcpretty","owner":{"login":"supermarin","id":627285,"avatar_url":"https://avatars.githubusercontent.com/u/627285?v=3","gravatar_id":"","url":"https://api.github.com/users/supermarin","html_url":"https://github.com/supermarin","followers_url":"https://api.github.com/users/supermarin/followers","following_url":"https://api.github.com/users/supermarin/following{/other_user}","gists_url":"https://api.github.com/users/supermarin/gists{/gist_id}","starred_url":"https://api.github.com/users/supermarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supermarin/subscriptions","organizations_url":"https://api.github.com/users/supermarin/orgs","repos_url":"https://api.github.com/users/supermarin/repos","events_url":"https://api.github.com/users/supermarin/events{/privacy}","received_events_url":"https://api.github.com/users/supermarin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/supermarin/xcpretty","description":"Flexible and fast xcodebuild formatter","fork":false,"url":"https://api.github.com/repos/supermarin/xcpretty","forks_url":"https://api.github.com/repos/supermarin/xcpretty/forks","keys_url":"https://api.github.com/repos/supermarin/xcpretty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/supermarin/xcpretty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/supermarin/xcpretty/teams","hooks_url":"https://api.github.com/repos/supermarin/xcpretty/hooks","issue_events_url":"https://api.github.com/repos/supermarin/xcpretty/issues/events{/number}","events_url":"https://api.github.com/repos/supermarin/xcpretty/events","assignees_url":"https://api.github.com/repos/supermarin/xcpretty/assignees{/user}","branches_url":"https://api.github.com/repos/supermarin/xcpretty/branches{/branch}","tags_url":"https://api.github.com/repos/supermarin/xcpretty/tags","blobs_url":"https://api.github.com/repos/supermarin/xcpretty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/supermarin/xcpretty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/supermarin/xcpretty/git/refs{/sha}","trees_url":"https://api.github.com/repos/supermarin/xcpretty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/supermarin/xcpretty/statuses/{sha}","languages_url":"https://api.github.com/repos/supermarin/xcpretty/languages","stargazers_url":"https://api.github.com/repos/supermarin/xcpretty/stargazers","contributors_url":"https://api.github.com/repos/supermarin/xcpretty/contributors","subscribers_url":"https://api.github.com/repos/supermarin/xcpretty/subscribers","subscription_url":"https://api.github.com/repos/supermarin/xcpretty/subscription","commits_url":"https://api.github.com/repos/supermarin/xcpretty/commits{/sha}","git_commits_url":"https://api.github.com/repos/supermarin/xcpretty/git/commits{/sha}","comments_url":"https://api.github.com/repos/supermarin/xcpretty/comments{/number}","issue_comment_url":"https://api.github.com/repos/supermarin/xcpretty/issues/comments{/number}","contents_url":"https://api.github.com/repos/supermarin/xcpretty/contents/{+path}","compare_url":"https://api.github.com/repos/supermarin/xcpretty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/supermarin/xcpretty/merges","archive_url":"https://api.github.com/repos/supermarin/xcpretty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/supermarin/xcpretty/downloads","issues_url":"https://api.github.com/repos/supermarin/xcpretty/issues{/number}","pulls_url":"https://api.github.com/repos/supermarin/xcpretty/pulls{/number}","milestones_url":"https://api.github.com/repos/supermarin/xcpretty/milestones{/number}","notifications_url":"https://api.github.com/repos/supermarin/xcpretty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/supermarin/xcpretty/labels{/name}","releases_url":"https://api.github.com/repos/supermarin/xcpretty/releases{/id}","created_at":"2013-12-09T01:31:14Z","updated_at":"2015-10-01T23:45:19Z","pushed_at":"2015-10-06T18:22:39Z","git_url":"git://github.com/supermarin/xcpretty.git","ssh_url":"git@github.com:supermarin/xcpretty.git","clone_url":"https://github.com/supermarin/xcpretty.git","svn_url":"https://github.com/supermarin/xcpretty","homepage":"","size":8158,"stargazers_count":1262,"watchers_count":1262,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":72,"mirror_url":null,"open_issues_count":40,"forks":72,"open_issues":40,"watchers":1262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/141"},"html":{"href":"https://github.com/supermarin/xcpretty/pull/141"},"issue":{"href":"https://api.github.com/repos/supermarin/xcpretty/issues/141"},"comments":{"href":"https://api.github.com/repos/supermarin/xcpretty/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/supermarin/xcpretty/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/supermarin/xcpretty/statuses/38cc8718446a75b145b68b8b2a5faecd18875fc7"}}}}