{"action":"created","comment":{"url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments/51617318","id":51617318,"diff_hunk":"@@ -36,6 +36,17 @@\n       expect(first_entry[\"id\"]).to eq(id)\n       expect(first_entry[\"updated\"]).to eq(updated)\n     end\n+\n+    it \"uses created_at instead of updated_at for updated value\" do\n+      created_at = 1.day.from_now\n+      create(:redirection,","path":"spec/requests/feed_requests_spec.rb","position":7,"original_position":7,"commit_id":"e994e79c976a5a5f5d6e803491cb9632bdd0fa9b","original_commit_id":"e994e79c976a5a5f5d6e803491cb9632bdd0fa9b","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"body":"Formatting:\r\n\r\n```ruby\r\ncreate(\r\n  :redirection,\r\n  created_at: created_at,\r\n  updated_at: 2.days.from_now,\r\n)\r\n```\r\n\r\nAlso, how about defining `updated_at` in terms of `created_at` to show that they're different? Maybe `updated_at: created_at + 3.days`?","created_at":"2016-02-02T19:04:15Z","updated_at":"2016-02-02T19:04:15Z","html_url":"https://github.com/gabebw/hotline-webring/pull/33#discussion_r51617318","pull_request_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments/51617318"},"html":{"href":"https://github.com/gabebw/hotline-webring/pull/33#discussion_r51617318"},"pull_request":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33","id":58032564,"html_url":"https://github.com/gabebw/hotline-webring/pull/33","diff_url":"https://github.com/gabebw/hotline-webring/pull/33.diff","patch_url":"https://github.com/gabebw/hotline-webring/pull/33.patch","issue_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/33","number":33,"state":"open","locked":false,"title":"Use created_at in atom feed entries","user":{"login":"edwardloveall","id":49549,"avatar_url":"https://avatars.githubusercontent.com/u/49549?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardloveall","html_url":"https://github.com/edwardloveall","followers_url":"https://api.github.com/users/edwardloveall/followers","following_url":"https://api.github.com/users/edwardloveall/following{/other_user}","gists_url":"https://api.github.com/users/edwardloveall/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardloveall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardloveall/subscriptions","organizations_url":"https://api.github.com/users/edwardloveall/orgs","repos_url":"https://api.github.com/users/edwardloveall/repos","events_url":"https://api.github.com/users/edwardloveall/events{/privacy}","received_events_url":"https://api.github.com/users/edwardloveall/received_events","type":"User","site_admin":false},"body":"When a new Redirection is added to the webring, the first Redirection in the ring points to it. This changes that first Redirection's `updated_at` value.\r\n\r\nIn the atom feed, we were using `updated_at` to say when that entry was updated. While that's semantic, it would cause the first Redirection to continue to pop up in atom feeds because it looked like there was new information. No longer!\r\n\r\nWe now use `created_at` in that field, because for the purposes of the feed, we only want to see each Redirection when it's added, not \"updated\".","created_at":"2016-02-02T18:55:29Z","updated_at":"2016-02-02T19:04:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6a06ccd527578412da20f1dd8f6fad444468851","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33/commits","review_comments_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33/comments","review_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/33/comments","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/e994e79c976a5a5f5d6e803491cb9632bdd0fa9b","head":{"label":"gabebw:el-atom-feed-updated","ref":"el-atom-feed-updated","sha":"e994e79c976a5a5f5d6e803491cb9632bdd0fa9b","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":45444252,"name":"hotline-webring","full_name":"gabebw/hotline-webring","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/hotline-webring","description":"When I join a new webring / That can only mean one thing ","fork":false,"url":"https://api.github.com/repos/gabebw/hotline-webring","forks_url":"https://api.github.com/repos/gabebw/hotline-webring/forks","keys_url":"https://api.github.com/repos/gabebw/hotline-webring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/hotline-webring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/hotline-webring/teams","hooks_url":"https://api.github.com/repos/gabebw/hotline-webring/hooks","issue_events_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/hotline-webring/events","assignees_url":"https://api.github.com/repos/gabebw/hotline-webring/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/hotline-webring/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/hotline-webring/tags","blobs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/hotline-webring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/hotline-webring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/hotline-webring/languages","stargazers_url":"https://api.github.com/repos/gabebw/hotline-webring/stargazers","contributors_url":"https://api.github.com/repos/gabebw/hotline-webring/contributors","subscribers_url":"https://api.github.com/repos/gabebw/hotline-webring/subscribers","subscription_url":"https://api.github.com/repos/gabebw/hotline-webring/subscription","commits_url":"https://api.github.com/repos/gabebw/hotline-webring/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/hotline-webring/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/hotline-webring/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/hotline-webring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/hotline-webring/merges","archive_url":"https://api.github.com/repos/gabebw/hotline-webring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/hotline-webring/downloads","issues_url":"https://api.github.com/repos/gabebw/hotline-webring/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/hotline-webring/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/hotline-webring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/hotline-webring/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/hotline-webring/releases{/id}","deployments_url":"https://api.github.com/repos/gabebw/hotline-webring/deployments","created_at":"2015-11-03T05:36:38Z","updated_at":"2016-01-14T22:12:58Z","pushed_at":"2016-02-02T19:02:30Z","git_url":"git://github.com/gabebw/hotline-webring.git","ssh_url":"git@github.com:gabebw/hotline-webring.git","clone_url":"https://github.com/gabebw/hotline-webring.git","svn_url":"https://github.com/gabebw/hotline-webring","homepage":"http://hotlinewebring.club/","size":76,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"gabebw:master","ref":"master","sha":"d912f69f80cc217708294c03985a1f77d25d5722","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":45444252,"name":"hotline-webring","full_name":"gabebw/hotline-webring","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/hotline-webring","description":"When I join a new webring / That can only mean one thing ","fork":false,"url":"https://api.github.com/repos/gabebw/hotline-webring","forks_url":"https://api.github.com/repos/gabebw/hotline-webring/forks","keys_url":"https://api.github.com/repos/gabebw/hotline-webring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/hotline-webring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/hotline-webring/teams","hooks_url":"https://api.github.com/repos/gabebw/hotline-webring/hooks","issue_events_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/hotline-webring/events","assignees_url":"https://api.github.com/repos/gabebw/hotline-webring/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/hotline-webring/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/hotline-webring/tags","blobs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/hotline-webring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/hotline-webring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/hotline-webring/languages","stargazers_url":"https://api.github.com/repos/gabebw/hotline-webring/stargazers","contributors_url":"https://api.github.com/repos/gabebw/hotline-webring/contributors","subscribers_url":"https://api.github.com/repos/gabebw/hotline-webring/subscribers","subscription_url":"https://api.github.com/repos/gabebw/hotline-webring/subscription","commits_url":"https://api.github.com/repos/gabebw/hotline-webring/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/hotline-webring/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/hotline-webring/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/hotline-webring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/hotline-webring/merges","archive_url":"https://api.github.com/repos/gabebw/hotline-webring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/hotline-webring/downloads","issues_url":"https://api.github.com/repos/gabebw/hotline-webring/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/hotline-webring/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/hotline-webring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/hotline-webring/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/hotline-webring/releases{/id}","deployments_url":"https://api.github.com/repos/gabebw/hotline-webring/deployments","created_at":"2015-11-03T05:36:38Z","updated_at":"2016-01-14T22:12:58Z","pushed_at":"2016-02-02T19:02:30Z","git_url":"git://github.com/gabebw/hotline-webring.git","ssh_url":"git@github.com:gabebw/hotline-webring.git","clone_url":"https://github.com/gabebw/hotline-webring.git","svn_url":"https://github.com/gabebw/hotline-webring","homepage":"http://hotlinewebring.club/","size":76,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33"},"html":{"href":"https://github.com/gabebw/hotline-webring/pull/33"},"issue":{"href":"https://api.github.com/repos/gabebw/hotline-webring/issues/33"},"comments":{"href":"https://api.github.com/repos/gabebw/hotline-webring/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/gabebw/hotline-webring/statuses/e994e79c976a5a5f5d6e803491cb9632bdd0fa9b"}}}}