{"action":"created","comment":{"url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/comments/33427749","id":33427749,"diff_hunk":"@@ -67,6 +67,10 @@ def register_new_visitor\n     self.visit_counter = visit_counter + 1\n   end\n \n+  def republish\n+    self.expiration_date = Date.today + 30 if self.expiration_date < Date.today","path":"app/models/job_offer.rb","position":5,"original_position":5,"commit_id":"f45d11bbc96004d820a7c34a2bf3693ada93cd91","original_commit_id":"f45d11bbc96004d820a7c34a2bf3693ada93cd91","user":{"login":"jcalvento","id":7976008,"avatar_url":"https://avatars.githubusercontent.com/u/7976008?v=3","gravatar_id":"","url":"https://api.github.com/users/jcalvento","html_url":"https://github.com/jcalvento","followers_url":"https://api.github.com/users/jcalvento/followers","following_url":"https://api.github.com/users/jcalvento/following{/other_user}","gists_url":"https://api.github.com/users/jcalvento/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalvento/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalvento/subscriptions","organizations_url":"https://api.github.com/users/jcalvento/orgs","repos_url":"https://api.github.com/users/jcalvento/repos","events_url":"https://api.github.com/users/jcalvento/events{/privacy}","received_events_url":"https://api.github.com/users/jcalvento/received_events","type":"User","site_admin":false},"body":"Acá también se podría usar el método expired? para no repetir la lógica.","created_at":"2015-06-28T22:26:47Z","updated_at":"2015-06-28T22:26:47Z","html_url":"https://github.com/romanrizzi/job-vacancy/pull/9#discussion_r33427749","pull_request_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/comments/33427749"},"html":{"href":"https://github.com/romanrizzi/job-vacancy/pull/9#discussion_r33427749"},"pull_request":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9","id":38714773,"html_url":"https://github.com/romanrizzi/job-vacancy/pull/9","diff_url":"https://github.com/romanrizzi/job-vacancy/pull/9.diff","patch_url":"https://github.com/romanrizzi/job-vacancy/pull/9.patch","issue_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/9","number":9,"state":"open","locked":false,"title":"Story/republish expired offers","user":{"login":"romanrizzi","id":5025816,"avatar_url":"https://avatars.githubusercontent.com/u/5025816?v=3","gravatar_id":"","url":"https://api.github.com/users/romanrizzi","html_url":"https://github.com/romanrizzi","followers_url":"https://api.github.com/users/romanrizzi/followers","following_url":"https://api.github.com/users/romanrizzi/following{/other_user}","gists_url":"https://api.github.com/users/romanrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/romanrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanrizzi/subscriptions","organizations_url":"https://api.github.com/users/romanrizzi/orgs","repos_url":"https://api.github.com/users/romanrizzi/repos","events_url":"https://api.github.com/users/romanrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/romanrizzi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-27T20:03:31Z","updated_at":"2015-06-28T22:26:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8c90993d32079400bd4c410f47b64bf3556b728e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9/commits","review_comments_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9/comments","review_comment_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/9/comments","statuses_url":"https://api.github.com/repos/romanrizzi/job-vacancy/statuses/f45d11bbc96004d820a7c34a2bf3693ada93cd91","head":{"label":"romanrizzi:story/republish_expired_offers","ref":"story/republish_expired_offers","sha":"f45d11bbc96004d820a7c34a2bf3693ada93cd91","user":{"login":"romanrizzi","id":5025816,"avatar_url":"https://avatars.githubusercontent.com/u/5025816?v=3","gravatar_id":"","url":"https://api.github.com/users/romanrizzi","html_url":"https://github.com/romanrizzi","followers_url":"https://api.github.com/users/romanrizzi/followers","following_url":"https://api.github.com/users/romanrizzi/following{/other_user}","gists_url":"https://api.github.com/users/romanrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/romanrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanrizzi/subscriptions","organizations_url":"https://api.github.com/users/romanrizzi/orgs","repos_url":"https://api.github.com/users/romanrizzi/repos","events_url":"https://api.github.com/users/romanrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/romanrizzi/received_events","type":"User","site_admin":false},"repo":{"id":36469424,"name":"job-vacancy","full_name":"romanrizzi/job-vacancy","owner":{"login":"romanrizzi","id":5025816,"avatar_url":"https://avatars.githubusercontent.com/u/5025816?v=3","gravatar_id":"","url":"https://api.github.com/users/romanrizzi","html_url":"https://github.com/romanrizzi","followers_url":"https://api.github.com/users/romanrizzi/followers","following_url":"https://api.github.com/users/romanrizzi/following{/other_user}","gists_url":"https://api.github.com/users/romanrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/romanrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanrizzi/subscriptions","organizations_url":"https://api.github.com/users/romanrizzi/orgs","repos_url":"https://api.github.com/users/romanrizzi/repos","events_url":"https://api.github.com/users/romanrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/romanrizzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/romanrizzi/job-vacancy","description":"Job vacancy sandbox application","fork":true,"url":"https://api.github.com/repos/romanrizzi/job-vacancy","forks_url":"https://api.github.com/repos/romanrizzi/job-vacancy/forks","keys_url":"https://api.github.com/repos/romanrizzi/job-vacancy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/romanrizzi/job-vacancy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/romanrizzi/job-vacancy/teams","hooks_url":"https://api.github.com/repos/romanrizzi/job-vacancy/hooks","issue_events_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/events{/number}","events_url":"https://api.github.com/repos/romanrizzi/job-vacancy/events","assignees_url":"https://api.github.com/repos/romanrizzi/job-vacancy/assignees{/user}","branches_url":"https://api.github.com/repos/romanrizzi/job-vacancy/branches{/branch}","tags_url":"https://api.github.com/repos/romanrizzi/job-vacancy/tags","blobs_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/refs{/sha}","trees_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/romanrizzi/job-vacancy/statuses/{sha}","languages_url":"https://api.github.com/repos/romanrizzi/job-vacancy/languages","stargazers_url":"https://api.github.com/repos/romanrizzi/job-vacancy/stargazers","contributors_url":"https://api.github.com/repos/romanrizzi/job-vacancy/contributors","subscribers_url":"https://api.github.com/repos/romanrizzi/job-vacancy/subscribers","subscription_url":"https://api.github.com/repos/romanrizzi/job-vacancy/subscription","commits_url":"https://api.github.com/repos/romanrizzi/job-vacancy/commits{/sha}","git_commits_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/commits{/sha}","comments_url":"https://api.github.com/repos/romanrizzi/job-vacancy/comments{/number}","issue_comment_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/comments{/number}","contents_url":"https://api.github.com/repos/romanrizzi/job-vacancy/contents/{+path}","compare_url":"https://api.github.com/repos/romanrizzi/job-vacancy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/romanrizzi/job-vacancy/merges","archive_url":"https://api.github.com/repos/romanrizzi/job-vacancy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/romanrizzi/job-vacancy/downloads","issues_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues{/number}","pulls_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls{/number}","milestones_url":"https://api.github.com/repos/romanrizzi/job-vacancy/milestones{/number}","notifications_url":"https://api.github.com/repos/romanrizzi/job-vacancy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/romanrizzi/job-vacancy/labels{/name}","releases_url":"https://api.github.com/repos/romanrizzi/job-vacancy/releases{/id}","created_at":"2015-05-28T22:22:57Z","updated_at":"2015-05-28T22:22:57Z","pushed_at":"2015-06-28T01:17:11Z","git_url":"git://github.com/romanrizzi/job-vacancy.git","ssh_url":"git@github.com:romanrizzi/job-vacancy.git","clone_url":"https://github.com/romanrizzi/job-vacancy.git","svn_url":"https://github.com/romanrizzi/job-vacancy","homepage":null,"size":949,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"base":{"label":"romanrizzi:develop","ref":"develop","sha":"6d02b8f3ebe6659beff2191b0723e8d6681bf727","user":{"login":"romanrizzi","id":5025816,"avatar_url":"https://avatars.githubusercontent.com/u/5025816?v=3","gravatar_id":"","url":"https://api.github.com/users/romanrizzi","html_url":"https://github.com/romanrizzi","followers_url":"https://api.github.com/users/romanrizzi/followers","following_url":"https://api.github.com/users/romanrizzi/following{/other_user}","gists_url":"https://api.github.com/users/romanrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/romanrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanrizzi/subscriptions","organizations_url":"https://api.github.com/users/romanrizzi/orgs","repos_url":"https://api.github.com/users/romanrizzi/repos","events_url":"https://api.github.com/users/romanrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/romanrizzi/received_events","type":"User","site_admin":false},"repo":{"id":36469424,"name":"job-vacancy","full_name":"romanrizzi/job-vacancy","owner":{"login":"romanrizzi","id":5025816,"avatar_url":"https://avatars.githubusercontent.com/u/5025816?v=3","gravatar_id":"","url":"https://api.github.com/users/romanrizzi","html_url":"https://github.com/romanrizzi","followers_url":"https://api.github.com/users/romanrizzi/followers","following_url":"https://api.github.com/users/romanrizzi/following{/other_user}","gists_url":"https://api.github.com/users/romanrizzi/gists{/gist_id}","starred_url":"https://api.github.com/users/romanrizzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanrizzi/subscriptions","organizations_url":"https://api.github.com/users/romanrizzi/orgs","repos_url":"https://api.github.com/users/romanrizzi/repos","events_url":"https://api.github.com/users/romanrizzi/events{/privacy}","received_events_url":"https://api.github.com/users/romanrizzi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/romanrizzi/job-vacancy","description":"Job vacancy sandbox application","fork":true,"url":"https://api.github.com/repos/romanrizzi/job-vacancy","forks_url":"https://api.github.com/repos/romanrizzi/job-vacancy/forks","keys_url":"https://api.github.com/repos/romanrizzi/job-vacancy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/romanrizzi/job-vacancy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/romanrizzi/job-vacancy/teams","hooks_url":"https://api.github.com/repos/romanrizzi/job-vacancy/hooks","issue_events_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/events{/number}","events_url":"https://api.github.com/repos/romanrizzi/job-vacancy/events","assignees_url":"https://api.github.com/repos/romanrizzi/job-vacancy/assignees{/user}","branches_url":"https://api.github.com/repos/romanrizzi/job-vacancy/branches{/branch}","tags_url":"https://api.github.com/repos/romanrizzi/job-vacancy/tags","blobs_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/refs{/sha}","trees_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/romanrizzi/job-vacancy/statuses/{sha}","languages_url":"https://api.github.com/repos/romanrizzi/job-vacancy/languages","stargazers_url":"https://api.github.com/repos/romanrizzi/job-vacancy/stargazers","contributors_url":"https://api.github.com/repos/romanrizzi/job-vacancy/contributors","subscribers_url":"https://api.github.com/repos/romanrizzi/job-vacancy/subscribers","subscription_url":"https://api.github.com/repos/romanrizzi/job-vacancy/subscription","commits_url":"https://api.github.com/repos/romanrizzi/job-vacancy/commits{/sha}","git_commits_url":"https://api.github.com/repos/romanrizzi/job-vacancy/git/commits{/sha}","comments_url":"https://api.github.com/repos/romanrizzi/job-vacancy/comments{/number}","issue_comment_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/comments{/number}","contents_url":"https://api.github.com/repos/romanrizzi/job-vacancy/contents/{+path}","compare_url":"https://api.github.com/repos/romanrizzi/job-vacancy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/romanrizzi/job-vacancy/merges","archive_url":"https://api.github.com/repos/romanrizzi/job-vacancy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/romanrizzi/job-vacancy/downloads","issues_url":"https://api.github.com/repos/romanrizzi/job-vacancy/issues{/number}","pulls_url":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls{/number}","milestones_url":"https://api.github.com/repos/romanrizzi/job-vacancy/milestones{/number}","notifications_url":"https://api.github.com/repos/romanrizzi/job-vacancy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/romanrizzi/job-vacancy/labels{/name}","releases_url":"https://api.github.com/repos/romanrizzi/job-vacancy/releases{/id}","created_at":"2015-05-28T22:22:57Z","updated_at":"2015-05-28T22:22:57Z","pushed_at":"2015-06-28T01:17:11Z","git_url":"git://github.com/romanrizzi/job-vacancy.git","ssh_url":"git@github.com:romanrizzi/job-vacancy.git","clone_url":"https://github.com/romanrizzi/job-vacancy.git","svn_url":"https://github.com/romanrizzi/job-vacancy","homepage":null,"size":949,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9"},"html":{"href":"https://github.com/romanrizzi/job-vacancy/pull/9"},"issue":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/9"},"comments":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/romanrizzi/job-vacancy/statuses/f45d11bbc96004d820a7c34a2bf3693ada93cd91"}}}}