{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/66708135","id":66708135,"diff_hunk":"@@ -15,7 +15,13 @@ def self.run(params)\n         end\n \n         cmd << ['bundle exec'] if File.exist?('Gemfile') && params[:use_bundle_exec]\n-        cmd << ['pod install']\n+\n+        version = params[:version]\n+        unless version.nil?","path":"fastlane/lib/fastlane/actions/cocoapods.rb","position":7,"original_position":7,"commit_id":"57544f1f3fca200f252c02ec6ea65c6b67ef131c","original_commit_id":"57544f1f3fca200f252c02ec6ea65c6b67ef131c","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Do not use `unless` with `else`. Rewrite these with the positive case first.","created_at":"2016-06-11T16:25:16Z","updated_at":"2016-06-11T16:25:16Z","html_url":"https://github.com/fastlane/fastlane/pull/5113#discussion_r66708135","pull_request_url":"https://api.github.com/repos/fastlane/fastlane/pulls/5113","_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments/66708135"},"html":{"href":"https://github.com/fastlane/fastlane/pull/5113#discussion_r66708135"},"pull_request":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/5113"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/fastlane/pulls/5113","id":73472002,"html_url":"https://github.com/fastlane/fastlane/pull/5113","diff_url":"https://github.com/fastlane/fastlane/pull/5113.diff","patch_url":"https://github.com/fastlane/fastlane/pull/5113.patch","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5113","number":5113,"state":"open","locked":false,"title":"Add version support to cocoapods action.","user":{"login":"timothybrandspencer","id":350228,"avatar_url":"https://avatars.githubusercontent.com/u/350228?v=3","gravatar_id":"","url":"https://api.github.com/users/timothybrandspencer","html_url":"https://github.com/timothybrandspencer","followers_url":"https://api.github.com/users/timothybrandspencer/followers","following_url":"https://api.github.com/users/timothybrandspencer/following{/other_user}","gists_url":"https://api.github.com/users/timothybrandspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/timothybrandspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothybrandspencer/subscriptions","organizations_url":"https://api.github.com/users/timothybrandspencer/orgs","repos_url":"https://api.github.com/users/timothybrandspencer/repos","events_url":"https://api.github.com/users/timothybrandspencer/events{/privacy}","received_events_url":"https://api.github.com/users/timothybrandspencer/received_events","type":"User","site_admin":false},"body":"In legacy iOS projects I frequently find it the case that I need to use an old version of Cocoapods using the following command: `pod _0.38.2_ install`.\r\n\r\nI thought it would be nice if the cocoapods action supported this out the box, so I've added it here.\r\n\r\nMy only thought looking at the code is that perhaps I could rename my version of verify_gem to gem_installed? since it returns true or false rather than raising an exception. I thought it best to leave the existing verify_gem! implementation untouched - any opinions on this?","created_at":"2016-06-11T16:25:14Z","updated_at":"2016-06-11T16:25:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a80978347e4d1a8f793a401548995059028a2872","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/fastlane/pulls/5113/commits","review_comments_url":"https://api.github.com/repos/fastlane/fastlane/pulls/5113/comments","review_comment_url":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5113/comments","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/57544f1f3fca200f252c02ec6ea65c6b67ef131c","head":{"label":"timothybrandspencer:cocoapods-version-support","ref":"cocoapods-version-support","sha":"57544f1f3fca200f252c02ec6ea65c6b67ef131c","user":{"login":"timothybrandspencer","id":350228,"avatar_url":"https://avatars.githubusercontent.com/u/350228?v=3","gravatar_id":"","url":"https://api.github.com/users/timothybrandspencer","html_url":"https://github.com/timothybrandspencer","followers_url":"https://api.github.com/users/timothybrandspencer/followers","following_url":"https://api.github.com/users/timothybrandspencer/following{/other_user}","gists_url":"https://api.github.com/users/timothybrandspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/timothybrandspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothybrandspencer/subscriptions","organizations_url":"https://api.github.com/users/timothybrandspencer/orgs","repos_url":"https://api.github.com/users/timothybrandspencer/repos","events_url":"https://api.github.com/users/timothybrandspencer/events{/privacy}","received_events_url":"https://api.github.com/users/timothybrandspencer/received_events","type":"User","site_admin":false},"repo":{"id":60908901,"name":"fastlane","full_name":"timothybrandspencer/fastlane","owner":{"login":"timothybrandspencer","id":350228,"avatar_url":"https://avatars.githubusercontent.com/u/350228?v=3","gravatar_id":"","url":"https://api.github.com/users/timothybrandspencer","html_url":"https://github.com/timothybrandspencer","followers_url":"https://api.github.com/users/timothybrandspencer/followers","following_url":"https://api.github.com/users/timothybrandspencer/following{/other_user}","gists_url":"https://api.github.com/users/timothybrandspencer/gists{/gist_id}","starred_url":"https://api.github.com/users/timothybrandspencer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothybrandspencer/subscriptions","organizations_url":"https://api.github.com/users/timothybrandspencer/orgs","repos_url":"https://api.github.com/users/timothybrandspencer/repos","events_url":"https://api.github.com/users/timothybrandspencer/events{/privacy}","received_events_url":"https://api.github.com/users/timothybrandspencer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/timothybrandspencer/fastlane","description":"The easiest way to automate building and releasing your iOS and Android apps","fork":true,"url":"https://api.github.com/repos/timothybrandspencer/fastlane","forks_url":"https://api.github.com/repos/timothybrandspencer/fastlane/forks","keys_url":"https://api.github.com/repos/timothybrandspencer/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/timothybrandspencer/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/timothybrandspencer/fastlane/teams","hooks_url":"https://api.github.com/repos/timothybrandspencer/fastlane/hooks","issue_events_url":"https://api.github.com/repos/timothybrandspencer/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/timothybrandspencer/fastlane/events","assignees_url":"https://api.github.com/repos/timothybrandspencer/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/timothybrandspencer/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/timothybrandspencer/fastlane/tags","blobs_url":"https://api.github.com/repos/timothybrandspencer/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/timothybrandspencer/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/timothybrandspencer/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/timothybrandspencer/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/timothybrandspencer/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/timothybrandspencer/fastlane/languages","stargazers_url":"https://api.github.com/repos/timothybrandspencer/fastlane/stargazers","contributors_url":"https://api.github.com/repos/timothybrandspencer/fastlane/contributors","subscribers_url":"https://api.github.com/repos/timothybrandspencer/fastlane/subscribers","subscription_url":"https://api.github.com/repos/timothybrandspencer/fastlane/subscription","commits_url":"https://api.github.com/repos/timothybrandspencer/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/timothybrandspencer/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/timothybrandspencer/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/timothybrandspencer/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/timothybrandspencer/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/timothybrandspencer/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/timothybrandspencer/fastlane/merges","archive_url":"https://api.github.com/repos/timothybrandspencer/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/timothybrandspencer/fastlane/downloads","issues_url":"https://api.github.com/repos/timothybrandspencer/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/timothybrandspencer/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/timothybrandspencer/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/timothybrandspencer/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/timothybrandspencer/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/timothybrandspencer/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/timothybrandspencer/fastlane/deployments","created_at":"2016-06-11T13:41:29Z","updated_at":"2016-06-11T13:41:34Z","pushed_at":"2016-06-11T16:15:54Z","git_url":"git://github.com/timothybrandspencer/fastlane.git","ssh_url":"git@github.com:timothybrandspencer/fastlane.git","clone_url":"https://github.com/timothybrandspencer/fastlane.git","svn_url":"https://github.com/timothybrandspencer/fastlane","homepage":"https://fastlane.tools","size":50757,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"fastlane:master","ref":"master","sha":"b5ab73a3782f5e2253978dd654b64a7ed4c7d34f","user":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":27442967,"name":"fastlane","full_name":"fastlane/fastlane","owner":{"login":"fastlane","id":11098337,"avatar_url":"https://avatars.githubusercontent.com/u/11098337?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/fastlane","description":"The easiest way to automate building and releasing your iOS and Android apps","fork":false,"url":"https://api.github.com/repos/fastlane/fastlane","forks_url":"https://api.github.com/repos/fastlane/fastlane/forks","keys_url":"https://api.github.com/repos/fastlane/fastlane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/fastlane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/fastlane/teams","hooks_url":"https://api.github.com/repos/fastlane/fastlane/hooks","issue_events_url":"https://api.github.com/repos/fastlane/fastlane/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/fastlane/events","assignees_url":"https://api.github.com/repos/fastlane/fastlane/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/fastlane/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/fastlane/tags","blobs_url":"https://api.github.com/repos/fastlane/fastlane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/fastlane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/fastlane/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/fastlane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/fastlane/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/fastlane/languages","stargazers_url":"https://api.github.com/repos/fastlane/fastlane/stargazers","contributors_url":"https://api.github.com/repos/fastlane/fastlane/contributors","subscribers_url":"https://api.github.com/repos/fastlane/fastlane/subscribers","subscription_url":"https://api.github.com/repos/fastlane/fastlane/subscription","commits_url":"https://api.github.com/repos/fastlane/fastlane/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/fastlane/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/fastlane/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/fastlane/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/fastlane/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/fastlane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/fastlane/merges","archive_url":"https://api.github.com/repos/fastlane/fastlane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/fastlane/downloads","issues_url":"https://api.github.com/repos/fastlane/fastlane/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/fastlane/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/fastlane/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/fastlane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/fastlane/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/fastlane/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/fastlane/deployments","created_at":"2014-12-02T17:00:38Z","updated_at":"2016-06-11T16:11:40Z","pushed_at":"2016-06-11T16:25:15Z","git_url":"git://github.com/fastlane/fastlane.git","ssh_url":"git@github.com:fastlane/fastlane.git","clone_url":"https://github.com/fastlane/fastlane.git","svn_url":"https://github.com/fastlane/fastlane","homepage":"https://fastlane.tools","size":59468,"stargazers_count":8553,"watchers_count":8553,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1171,"mirror_url":null,"open_issues_count":710,"forks":1171,"open_issues":710,"watchers":8553,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/5113"},"html":{"href":"https://github.com/fastlane/fastlane/pull/5113"},"issue":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/5113"},"comments":{"href":"https://api.github.com/repos/fastlane/fastlane/issues/5113/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/5113/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/fastlane/pulls/5113/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/fastlane/statuses/57544f1f3fca200f252c02ec6ea65c6b67ef131c"}}}}
{"actor":{"display_login":"houndci-bot"}}