{"action":"created","comment":{"url":"https://api.github.com/repos/codeclimate/minidoc/pulls/comments/85645533","pull_request_review_id":6351880,"id":85645533,"diff_hunk":"@@ -20,5 +22,27 @@ class TimestampsUser < Minidoc\n       user.save\n       expect(user.created_at).to_not eq user.updated_at\n     end\n+\n+    it \"updates updated_at when doc is changed with #set\" do\n+      user = TimestampsUser.create\n+      sleep 0.001\n+      user.set(name: \"Abby Normal\")\n+      expect(user.created_at).to_not eq user.updated_at\n+    end\n+\n+    it \"updates updated_at when doc is changed with .atomic_set\" do","path":"spec/minidoc/timestamps_spec.rb","position":21,"original_position":21,"commit_id":"60d96c5b3f21c295492197c4bad71ec47f7b9bb1","original_commit_id":"60d96c5b3f21c295492197c4bad71ec47f7b9bb1","user":{"login":"maxjacobson","id":1421211,"avatar_url":"https://avatars.githubusercontent.com/u/1421211?v=3","gravatar_id":"","url":"https://api.github.com/users/maxjacobson","html_url":"https://github.com/maxjacobson","followers_url":"https://api.github.com/users/maxjacobson/followers","following_url":"https://api.github.com/users/maxjacobson/following{/other_user}","gists_url":"https://api.github.com/users/maxjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/maxjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxjacobson/subscriptions","organizations_url":"https://api.github.com/users/maxjacobson/orgs","repos_url":"https://api.github.com/users/maxjacobson/repos","events_url":"https://api.github.com/users/maxjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/maxjacobson/received_events","type":"User","site_admin":false},"body":"question applies to all of the class method ones:\r\n\r\n* `.atomic_set`\r\n* `.unset`\r\n* `.set`\r\n* `.update_one`","created_at":"2016-10-29T18:22:42Z","updated_at":"2016-10-29T18:22:42Z","html_url":"https://github.com/codeclimate/minidoc/pull/49#discussion_r85645533","pull_request_url":"https://api.github.com/repos/codeclimate/minidoc/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/comments/85645533"},"html":{"href":"https://github.com/codeclimate/minidoc/pull/49#discussion_r85645533"},"pull_request":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/codeclimate/minidoc/pulls/49","id":91496682,"html_url":"https://github.com/codeclimate/minidoc/pull/49","diff_url":"https://github.com/codeclimate/minidoc/pull/49.diff","patch_url":"https://github.com/codeclimate/minidoc/pull/49.patch","issue_url":"https://api.github.com/repos/codeclimate/minidoc/issues/49","number":49,"state":"open","locked":false,"title":"Set updated_at in relevant setter methods","user":{"login":"wfleming","id":188402,"avatar_url":"https://avatars.githubusercontent.com/u/188402?v=3","gravatar_id":"","url":"https://api.github.com/users/wfleming","html_url":"https://github.com/wfleming","followers_url":"https://api.github.com/users/wfleming/followers","following_url":"https://api.github.com/users/wfleming/following{/other_user}","gists_url":"https://api.github.com/users/wfleming/gists{/gist_id}","starred_url":"https://api.github.com/users/wfleming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wfleming/subscriptions","organizations_url":"https://api.github.com/users/wfleming/orgs","repos_url":"https://api.github.com/users/wfleming/repos","events_url":"https://api.github.com/users/wfleming/events{/privacy}","received_events_url":"https://api.github.com/users/wfleming/received_events","type":"User","site_admin":false},"body":"`#set`, `#atomic_set`, and `#unset` don't update `#updated_at` when\ntimestamps are enabled for the class. This updates these methods in the\n`Timestamps` module so that they will also set this field when\nappropriate.\n\ncc @codeclimate/review","created_at":"2016-10-29T17:57:35Z","updated_at":"2016-10-29T18:22:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26a200ea16314d03111e1cfcdeaa6b35c66b3076","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate/minidoc/pulls/49/commits","review_comments_url":"https://api.github.com/repos/codeclimate/minidoc/pulls/49/comments","review_comment_url":"https://api.github.com/repos/codeclimate/minidoc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeclimate/minidoc/issues/49/comments","statuses_url":"https://api.github.com/repos/codeclimate/minidoc/statuses/60d96c5b3f21c295492197c4bad71ec47f7b9bb1","head":{"label":"codeclimate:will/set-timestamps","ref":"will/set-timestamps","sha":"60d96c5b3f21c295492197c4bad71ec47f7b9bb1","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":14817892,"name":"minidoc","full_name":"codeclimate/minidoc","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/minidoc","description":"Lightweight MongoDB object document mapper","fork":false,"url":"https://api.github.com/repos/codeclimate/minidoc","forks_url":"https://api.github.com/repos/codeclimate/minidoc/forks","keys_url":"https://api.github.com/repos/codeclimate/minidoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/minidoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/minidoc/teams","hooks_url":"https://api.github.com/repos/codeclimate/minidoc/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/minidoc/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/minidoc/events","assignees_url":"https://api.github.com/repos/codeclimate/minidoc/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/minidoc/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/minidoc/tags","blobs_url":"https://api.github.com/repos/codeclimate/minidoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/minidoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/minidoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/minidoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/minidoc/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/minidoc/languages","stargazers_url":"https://api.github.com/repos/codeclimate/minidoc/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/minidoc/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/minidoc/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/minidoc/subscription","commits_url":"https://api.github.com/repos/codeclimate/minidoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/minidoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/minidoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/minidoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/minidoc/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/minidoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/minidoc/merges","archive_url":"https://api.github.com/repos/codeclimate/minidoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/minidoc/downloads","issues_url":"https://api.github.com/repos/codeclimate/minidoc/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/minidoc/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/minidoc/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/minidoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/minidoc/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/minidoc/releases{/id}","deployments_url":"https://api.github.com/repos/codeclimate/minidoc/deployments","created_at":"2013-11-30T08:44:52Z","updated_at":"2016-10-25T23:19:51Z","pushed_at":"2016-10-29T18:01:35Z","git_url":"git://github.com/codeclimate/minidoc.git","ssh_url":"git@github.com:codeclimate/minidoc.git","clone_url":"https://github.com/codeclimate/minidoc.git","svn_url":"https://github.com/codeclimate/minidoc","homepage":"","size":131,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"codeclimate:master","ref":"master","sha":"6e3fc97510f92a401b9c62fbce4783a3118865ce","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":14817892,"name":"minidoc","full_name":"codeclimate/minidoc","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/minidoc","description":"Lightweight MongoDB object document mapper","fork":false,"url":"https://api.github.com/repos/codeclimate/minidoc","forks_url":"https://api.github.com/repos/codeclimate/minidoc/forks","keys_url":"https://api.github.com/repos/codeclimate/minidoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/minidoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/minidoc/teams","hooks_url":"https://api.github.com/repos/codeclimate/minidoc/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/minidoc/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/minidoc/events","assignees_url":"https://api.github.com/repos/codeclimate/minidoc/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/minidoc/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/minidoc/tags","blobs_url":"https://api.github.com/repos/codeclimate/minidoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/minidoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/minidoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/minidoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/minidoc/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/minidoc/languages","stargazers_url":"https://api.github.com/repos/codeclimate/minidoc/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/minidoc/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/minidoc/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/minidoc/subscription","commits_url":"https://api.github.com/repos/codeclimate/minidoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/minidoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/minidoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/minidoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/minidoc/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/minidoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/minidoc/merges","archive_url":"https://api.github.com/repos/codeclimate/minidoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/minidoc/downloads","issues_url":"https://api.github.com/repos/codeclimate/minidoc/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/minidoc/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/minidoc/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/minidoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/minidoc/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/minidoc/releases{/id}","deployments_url":"https://api.github.com/repos/codeclimate/minidoc/deployments","created_at":"2013-11-30T08:44:52Z","updated_at":"2016-10-25T23:19:51Z","pushed_at":"2016-10-29T18:01:35Z","git_url":"git://github.com/codeclimate/minidoc.git","ssh_url":"git@github.com:codeclimate/minidoc.git","clone_url":"https://github.com/codeclimate/minidoc.git","svn_url":"https://github.com/codeclimate/minidoc","homepage":"","size":131,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/49"},"html":{"href":"https://github.com/codeclimate/minidoc/pull/49"},"issue":{"href":"https://api.github.com/repos/codeclimate/minidoc/issues/49"},"comments":{"href":"https://api.github.com/repos/codeclimate/minidoc/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeclimate/minidoc/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate/minidoc/statuses/60d96c5b3f21c295492197c4bad71ec47f7b9bb1"}}}}
{"actor":{"display_login":"maxjacobson"}}