{"action":"created","comment":{"url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/comments/26494611","id":26494611,"diff_hunk":"@@ -5,11 +5,13 @@ require File.expand_path('../lib/bootstrap-datepicker-rails/version', __FILE__)\n \n desc \"Update assets\"\n task :update do\n+  branch = ARGV.count == 1 ? \"tags/#{ARGV.first}\" : \"master\"\n+\n   if Dir.exist?('bootstrap-datepicker-src')\n-    system(\"cd bootstrap-datepicker-src && git checkout master && git pull && git checkout `git describe --abbrev=0` && cd ..\")\n+    system(\"cd bootstrap-datepicker-src && git checkout #{branch} && git pull && git checkout `git describe --abbrev=0` && cd ..\")","path":"Rakefile","position":8,"original_position":8,"commit_id":"67c4cb33022ac31407f17cb5cfa3becb63b1f2b3","original_commit_id":"67c4cb33022ac31407f17cb5cfa3becb63b1f2b3","user":{"login":"Nerian","id":259568,"avatar_url":"https://avatars.githubusercontent.com/u/259568?v=3","gravatar_id":"","url":"https://api.github.com/users/Nerian","html_url":"https://github.com/Nerian","followers_url":"https://api.github.com/users/Nerian/followers","following_url":"https://api.github.com/users/Nerian/following{/other_user}","gists_url":"https://api.github.com/users/Nerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Nerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nerian/subscriptions","organizations_url":"https://api.github.com/users/Nerian/orgs","repos_url":"https://api.github.com/users/Nerian/repos","events_url":"https://api.github.com/users/Nerian/events{/privacy}","received_events_url":"https://api.github.com/users/Nerian/received_events","type":"User","site_admin":false},"body":"@bencolon\r\n\r\nThe line 'git checkout `git describe --abbrev=0`' will checkout the latest tag on master, which at the moment is v1.4.0. \r\n\r\nI put the `git checkout master` there so that the `git pull` will retrieve from master, as otherwise it may be trying to `git pull` from a detached state – that's the resulting state when you checkout a tag. \r\n\r\nSo for this change to be correct, you will need to remove 'git checkout `git describe --abbrev=0`', or otherwise it will always checkout the latest release regardless of the input.\r\n\r\nI like this change as it makes it more flexible.","created_at":"2015-03-16T15:26:38Z","updated_at":"2015-03-16T15:26:38Z","html_url":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100#discussion_r26494611","pull_request_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/comments/26494611"},"html":{"href":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100#discussion_r26494611"},"pull_request":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100","id":31251303,"html_url":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100","diff_url":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100.diff","patch_url":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100.patch","issue_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/100","number":100,"state":"open","locked":false,"title":"Updated the updater","user":{"login":"bencolon","id":216385,"avatar_url":"https://avatars.githubusercontent.com/u/216385?v=3","gravatar_id":"","url":"https://api.github.com/users/bencolon","html_url":"https://github.com/bencolon","followers_url":"https://api.github.com/users/bencolon/followers","following_url":"https://api.github.com/users/bencolon/following{/other_user}","gists_url":"https://api.github.com/users/bencolon/gists{/gist_id}","starred_url":"https://api.github.com/users/bencolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bencolon/subscriptions","organizations_url":"https://api.github.com/users/bencolon/orgs","repos_url":"https://api.github.com/users/bencolon/repos","events_url":"https://api.github.com/users/bencolon/events{/privacy}","received_events_url":"https://api.github.com/users/bencolon/received_events","type":"User","site_admin":false},"body":"Hey Nerian,\r\n\r\nJust updated the rake task to checkout master OR a tagged version.\r\nIn my case, I want to update the assets with the latest stable version not with master.\r\n\r\nThoughts ?\r\nBen","created_at":"2015-03-16T15:04:35Z","updated_at":"2015-03-16T15:26:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"258282fd19828913b8402bdccbc85c81c0b813bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100/commits","review_comments_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100/comments","review_comment_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/100/comments","statuses_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/statuses/67c4cb33022ac31407f17cb5cfa3becb63b1f2b3","head":{"label":"bencolon:updater","ref":"updater","sha":"67c4cb33022ac31407f17cb5cfa3becb63b1f2b3","user":{"login":"bencolon","id":216385,"avatar_url":"https://avatars.githubusercontent.com/u/216385?v=3","gravatar_id":"","url":"https://api.github.com/users/bencolon","html_url":"https://github.com/bencolon","followers_url":"https://api.github.com/users/bencolon/followers","following_url":"https://api.github.com/users/bencolon/following{/other_user}","gists_url":"https://api.github.com/users/bencolon/gists{/gist_id}","starred_url":"https://api.github.com/users/bencolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bencolon/subscriptions","organizations_url":"https://api.github.com/users/bencolon/orgs","repos_url":"https://api.github.com/users/bencolon/repos","events_url":"https://api.github.com/users/bencolon/events{/privacy}","received_events_url":"https://api.github.com/users/bencolon/received_events","type":"User","site_admin":false},"repo":{"id":32325772,"name":"bootstrap-datepicker-rails","full_name":"bencolon/bootstrap-datepicker-rails","owner":{"login":"bencolon","id":216385,"avatar_url":"https://avatars.githubusercontent.com/u/216385?v=3","gravatar_id":"","url":"https://api.github.com/users/bencolon","html_url":"https://github.com/bencolon","followers_url":"https://api.github.com/users/bencolon/followers","following_url":"https://api.github.com/users/bencolon/following{/other_user}","gists_url":"https://api.github.com/users/bencolon/gists{/gist_id}","starred_url":"https://api.github.com/users/bencolon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bencolon/subscriptions","organizations_url":"https://api.github.com/users/bencolon/orgs","repos_url":"https://api.github.com/users/bencolon/repos","events_url":"https://api.github.com/users/bencolon/events{/privacy}","received_events_url":"https://api.github.com/users/bencolon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bencolon/bootstrap-datepicker-rails","description":"A Datepicker for Twitter Bootstrap, integrated with Rails assets pipeline","fork":true,"url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails","forks_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/forks","keys_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/teams","hooks_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/hooks","issue_events_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/issues/events{/number}","events_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/events","assignees_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/assignees{/user}","branches_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/branches{/branch}","tags_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/tags","blobs_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/languages","stargazers_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/stargazers","contributors_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/contributors","subscribers_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/subscribers","subscription_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/subscription","commits_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/contents/{+path}","compare_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/merges","archive_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/downloads","issues_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/issues{/number}","pulls_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/labels{/name}","releases_url":"https://api.github.com/repos/bencolon/bootstrap-datepicker-rails/releases{/id}","created_at":"2015-03-16T13:13:37Z","updated_at":"2015-03-16T13:13:37Z","pushed_at":"2015-03-16T15:00:58Z","git_url":"git://github.com/bencolon/bootstrap-datepicker-rails.git","ssh_url":"git@github.com:bencolon/bootstrap-datepicker-rails.git","clone_url":"https://github.com/bencolon/bootstrap-datepicker-rails.git","svn_url":"https://github.com/bencolon/bootstrap-datepicker-rails","homepage":"","size":348,"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":"Nerian:master","ref":"master","sha":"db6362c2ecc6242d0003382d86b205a28c67a416","user":{"login":"Nerian","id":259568,"avatar_url":"https://avatars.githubusercontent.com/u/259568?v=3","gravatar_id":"","url":"https://api.github.com/users/Nerian","html_url":"https://github.com/Nerian","followers_url":"https://api.github.com/users/Nerian/followers","following_url":"https://api.github.com/users/Nerian/following{/other_user}","gists_url":"https://api.github.com/users/Nerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Nerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nerian/subscriptions","organizations_url":"https://api.github.com/users/Nerian/orgs","repos_url":"https://api.github.com/users/Nerian/repos","events_url":"https://api.github.com/users/Nerian/events{/privacy}","received_events_url":"https://api.github.com/users/Nerian/received_events","type":"User","site_admin":false},"repo":{"id":3675430,"name":"bootstrap-datepicker-rails","full_name":"Nerian/bootstrap-datepicker-rails","owner":{"login":"Nerian","id":259568,"avatar_url":"https://avatars.githubusercontent.com/u/259568?v=3","gravatar_id":"","url":"https://api.github.com/users/Nerian","html_url":"https://github.com/Nerian","followers_url":"https://api.github.com/users/Nerian/followers","following_url":"https://api.github.com/users/Nerian/following{/other_user}","gists_url":"https://api.github.com/users/Nerian/gists{/gist_id}","starred_url":"https://api.github.com/users/Nerian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nerian/subscriptions","organizations_url":"https://api.github.com/users/Nerian/orgs","repos_url":"https://api.github.com/users/Nerian/repos","events_url":"https://api.github.com/users/Nerian/events{/privacy}","received_events_url":"https://api.github.com/users/Nerian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nerian/bootstrap-datepicker-rails","description":"A Datepicker for Twitter Bootstrap, integrated with Rails assets pipeline","fork":false,"url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails","forks_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/forks","keys_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/teams","hooks_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/hooks","issue_events_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/events{/number}","events_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/events","assignees_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/assignees{/user}","branches_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/branches{/branch}","tags_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/tags","blobs_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/languages","stargazers_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/stargazers","contributors_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/contributors","subscribers_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/subscribers","subscription_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/subscription","commits_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/contents/{+path}","compare_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/merges","archive_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/downloads","issues_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues{/number}","pulls_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/labels{/name}","releases_url":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/releases{/id}","created_at":"2012-03-09T22:19:11Z","updated_at":"2015-03-16T14:15:31Z","pushed_at":"2015-03-16T14:15:31Z","git_url":"git://github.com/Nerian/bootstrap-datepicker-rails.git","ssh_url":"git@github.com:Nerian/bootstrap-datepicker-rails.git","clone_url":"https://github.com/Nerian/bootstrap-datepicker-rails.git","svn_url":"https://github.com/Nerian/bootstrap-datepicker-rails","homepage":"","size":733,"stargazers_count":410,"watchers_count":410,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":1,"forks":117,"open_issues":1,"watchers":410,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100"},"html":{"href":"https://github.com/Nerian/bootstrap-datepicker-rails/pull/100"},"issue":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/100"},"comments":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/Nerian/bootstrap-datepicker-rails/statuses/67c4cb33022ac31407f17cb5cfa3becb63b1f2b3"}}}}