{"action":"created","comment":{"url":"https://api.github.com/repos/lotus/model/pulls/comments/26443417","id":26443417,"diff_hunk":"@@ -16,22 +17,41 @@\n       coercer.to_record(entity).must_equal(name: 'Tyrion Lannister')\n     end\n \n+    describe 'new record' do\n+      # Bug:\n+      # https://github.com/lotus/model/issues/155\n+      it 'ignores unset values' do\n+        entity = User.new(name: 'Daenerys Targaryen')\n+        coercer.to_record(entity).must_equal(name: 'Daenerys Targaryen')","path":"test/model/mapping/coercer_test.rb","position":17,"original_position":17,"commit_id":"3a3e6fd628373ab81d25b92f23d32b01b03870fa","original_commit_id":"3a3e6fd628373ab81d25b92f23d32b01b03870fa","user":{"login":"joneslee85","id":135605,"avatar_url":"https://avatars.githubusercontent.com/u/135605?v=3","gravatar_id":"","url":"https://api.github.com/users/joneslee85","html_url":"https://github.com/joneslee85","followers_url":"https://api.github.com/users/joneslee85/followers","following_url":"https://api.github.com/users/joneslee85/following{/other_user}","gists_url":"https://api.github.com/users/joneslee85/gists{/gist_id}","starred_url":"https://api.github.com/users/joneslee85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joneslee85/subscriptions","organizations_url":"https://api.github.com/users/joneslee85/orgs","repos_url":"https://api.github.com/users/joneslee85/repos","events_url":"https://api.github.com/users/joneslee85/events{/privacy}","received_events_url":"https://api.github.com/users/joneslee85/received_events","type":"User","site_admin":false},"body":"It's :+1: for the Game of Throne","created_at":"2015-03-15T00:52:10Z","updated_at":"2015-03-15T00:52:10Z","html_url":"https://github.com/lotus/model/pull/161#discussion_r26443417","pull_request_url":"https://api.github.com/repos/lotus/model/pulls/161","_links":{"self":{"href":"https://api.github.com/repos/lotus/model/pulls/comments/26443417"},"html":{"href":"https://github.com/lotus/model/pull/161#discussion_r26443417"},"pull_request":{"href":"https://api.github.com/repos/lotus/model/pulls/161"}}},"pull_request":{"url":"https://api.github.com/repos/lotus/model/pulls/161","id":30927010,"html_url":"https://github.com/lotus/model/pull/161","diff_url":"https://github.com/lotus/model/pull/161.diff","patch_url":"https://github.com/lotus/model/pull/161.patch","issue_url":"https://api.github.com/repos/lotus/model/issues/161","number":161,"state":"open","locked":false,"title":"Fix send nil value when creating an entity","user":{"login":"AlfonsoUceda","id":925961,"avatar_url":"https://avatars.githubusercontent.com/u/925961?v=3","gravatar_id":"","url":"https://api.github.com/users/AlfonsoUceda","html_url":"https://github.com/AlfonsoUceda","followers_url":"https://api.github.com/users/AlfonsoUceda/followers","following_url":"https://api.github.com/users/AlfonsoUceda/following{/other_user}","gists_url":"https://api.github.com/users/AlfonsoUceda/gists{/gist_id}","starred_url":"https://api.github.com/users/AlfonsoUceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlfonsoUceda/subscriptions","organizations_url":"https://api.github.com/users/AlfonsoUceda/orgs","repos_url":"https://api.github.com/users/AlfonsoUceda/repos","events_url":"https://api.github.com/users/AlfonsoUceda/events{/privacy}","received_events_url":"https://api.github.com/users/AlfonsoUceda/received_events","type":"User","site_admin":false},"body":"This is @jodosha 's work, He told me finish the PR:\r\n\r\nreference #155 #156 ","created_at":"2015-03-11T09:38:21Z","updated_at":"2015-03-15T00:52:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d07e0fb508e34331efeb683b4f4ad983701f7df2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lotus/model/pulls/161/commits","review_comments_url":"https://api.github.com/repos/lotus/model/pulls/161/comments","review_comment_url":"https://api.github.com/repos/lotus/model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lotus/model/issues/161/comments","statuses_url":"https://api.github.com/repos/lotus/model/statuses/3a3e6fd628373ab81d25b92f23d32b01b03870fa","head":{"label":"AlfonsoUceda:fix_nil_value","ref":"fix_nil_value","sha":"3a3e6fd628373ab81d25b92f23d32b01b03870fa","user":{"login":"AlfonsoUceda","id":925961,"avatar_url":"https://avatars.githubusercontent.com/u/925961?v=3","gravatar_id":"","url":"https://api.github.com/users/AlfonsoUceda","html_url":"https://github.com/AlfonsoUceda","followers_url":"https://api.github.com/users/AlfonsoUceda/followers","following_url":"https://api.github.com/users/AlfonsoUceda/following{/other_user}","gists_url":"https://api.github.com/users/AlfonsoUceda/gists{/gist_id}","starred_url":"https://api.github.com/users/AlfonsoUceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlfonsoUceda/subscriptions","organizations_url":"https://api.github.com/users/AlfonsoUceda/orgs","repos_url":"https://api.github.com/users/AlfonsoUceda/repos","events_url":"https://api.github.com/users/AlfonsoUceda/events{/privacy}","received_events_url":"https://api.github.com/users/AlfonsoUceda/received_events","type":"User","site_admin":false},"repo":{"id":27381823,"name":"model","full_name":"AlfonsoUceda/model","owner":{"login":"AlfonsoUceda","id":925961,"avatar_url":"https://avatars.githubusercontent.com/u/925961?v=3","gravatar_id":"","url":"https://api.github.com/users/AlfonsoUceda","html_url":"https://github.com/AlfonsoUceda","followers_url":"https://api.github.com/users/AlfonsoUceda/followers","following_url":"https://api.github.com/users/AlfonsoUceda/following{/other_user}","gists_url":"https://api.github.com/users/AlfonsoUceda/gists{/gist_id}","starred_url":"https://api.github.com/users/AlfonsoUceda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlfonsoUceda/subscriptions","organizations_url":"https://api.github.com/users/AlfonsoUceda/orgs","repos_url":"https://api.github.com/users/AlfonsoUceda/repos","events_url":"https://api.github.com/users/AlfonsoUceda/events{/privacy}","received_events_url":"https://api.github.com/users/AlfonsoUceda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlfonsoUceda/model","description":"Model layer for Lotus","fork":true,"url":"https://api.github.com/repos/AlfonsoUceda/model","forks_url":"https://api.github.com/repos/AlfonsoUceda/model/forks","keys_url":"https://api.github.com/repos/AlfonsoUceda/model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlfonsoUceda/model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlfonsoUceda/model/teams","hooks_url":"https://api.github.com/repos/AlfonsoUceda/model/hooks","issue_events_url":"https://api.github.com/repos/AlfonsoUceda/model/issues/events{/number}","events_url":"https://api.github.com/repos/AlfonsoUceda/model/events","assignees_url":"https://api.github.com/repos/AlfonsoUceda/model/assignees{/user}","branches_url":"https://api.github.com/repos/AlfonsoUceda/model/branches{/branch}","tags_url":"https://api.github.com/repos/AlfonsoUceda/model/tags","blobs_url":"https://api.github.com/repos/AlfonsoUceda/model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlfonsoUceda/model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlfonsoUceda/model/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlfonsoUceda/model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlfonsoUceda/model/statuses/{sha}","languages_url":"https://api.github.com/repos/AlfonsoUceda/model/languages","stargazers_url":"https://api.github.com/repos/AlfonsoUceda/model/stargazers","contributors_url":"https://api.github.com/repos/AlfonsoUceda/model/contributors","subscribers_url":"https://api.github.com/repos/AlfonsoUceda/model/subscribers","subscription_url":"https://api.github.com/repos/AlfonsoUceda/model/subscription","commits_url":"https://api.github.com/repos/AlfonsoUceda/model/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlfonsoUceda/model/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlfonsoUceda/model/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlfonsoUceda/model/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlfonsoUceda/model/contents/{+path}","compare_url":"https://api.github.com/repos/AlfonsoUceda/model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlfonsoUceda/model/merges","archive_url":"https://api.github.com/repos/AlfonsoUceda/model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlfonsoUceda/model/downloads","issues_url":"https://api.github.com/repos/AlfonsoUceda/model/issues{/number}","pulls_url":"https://api.github.com/repos/AlfonsoUceda/model/pulls{/number}","milestones_url":"https://api.github.com/repos/AlfonsoUceda/model/milestones{/number}","notifications_url":"https://api.github.com/repos/AlfonsoUceda/model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlfonsoUceda/model/labels{/name}","releases_url":"https://api.github.com/repos/AlfonsoUceda/model/releases{/id}","created_at":"2014-12-01T13:57:51Z","updated_at":"2015-03-11T09:17:05Z","pushed_at":"2015-03-11T09:37:17Z","git_url":"git://github.com/AlfonsoUceda/model.git","ssh_url":"git@github.com:AlfonsoUceda/model.git","clone_url":"https://github.com/AlfonsoUceda/model.git","svn_url":"https://github.com/AlfonsoUceda/model","homepage":null,"size":639,"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":"lotus:master","ref":"master","sha":"872296fbe1275da1252a8dbbc33987b6c3415da4","user":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"repo":{"id":16760719,"name":"model","full_name":"lotus/model","owner":{"login":"lotus","id":3210273,"avatar_url":"https://avatars.githubusercontent.com/u/3210273?v=3","gravatar_id":"","url":"https://api.github.com/users/lotus","html_url":"https://github.com/lotus","followers_url":"https://api.github.com/users/lotus/followers","following_url":"https://api.github.com/users/lotus/following{/other_user}","gists_url":"https://api.github.com/users/lotus/gists{/gist_id}","starred_url":"https://api.github.com/users/lotus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lotus/subscriptions","organizations_url":"https://api.github.com/users/lotus/orgs","repos_url":"https://api.github.com/users/lotus/repos","events_url":"https://api.github.com/users/lotus/events{/privacy}","received_events_url":"https://api.github.com/users/lotus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lotus/model","description":"A persistence framework with entities, repositories, data mapper and query objects","fork":false,"url":"https://api.github.com/repos/lotus/model","forks_url":"https://api.github.com/repos/lotus/model/forks","keys_url":"https://api.github.com/repos/lotus/model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lotus/model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lotus/model/teams","hooks_url":"https://api.github.com/repos/lotus/model/hooks","issue_events_url":"https://api.github.com/repos/lotus/model/issues/events{/number}","events_url":"https://api.github.com/repos/lotus/model/events","assignees_url":"https://api.github.com/repos/lotus/model/assignees{/user}","branches_url":"https://api.github.com/repos/lotus/model/branches{/branch}","tags_url":"https://api.github.com/repos/lotus/model/tags","blobs_url":"https://api.github.com/repos/lotus/model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lotus/model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lotus/model/git/refs{/sha}","trees_url":"https://api.github.com/repos/lotus/model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lotus/model/statuses/{sha}","languages_url":"https://api.github.com/repos/lotus/model/languages","stargazers_url":"https://api.github.com/repos/lotus/model/stargazers","contributors_url":"https://api.github.com/repos/lotus/model/contributors","subscribers_url":"https://api.github.com/repos/lotus/model/subscribers","subscription_url":"https://api.github.com/repos/lotus/model/subscription","commits_url":"https://api.github.com/repos/lotus/model/commits{/sha}","git_commits_url":"https://api.github.com/repos/lotus/model/git/commits{/sha}","comments_url":"https://api.github.com/repos/lotus/model/comments{/number}","issue_comment_url":"https://api.github.com/repos/lotus/model/issues/comments{/number}","contents_url":"https://api.github.com/repos/lotus/model/contents/{+path}","compare_url":"https://api.github.com/repos/lotus/model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lotus/model/merges","archive_url":"https://api.github.com/repos/lotus/model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lotus/model/downloads","issues_url":"https://api.github.com/repos/lotus/model/issues{/number}","pulls_url":"https://api.github.com/repos/lotus/model/pulls{/number}","milestones_url":"https://api.github.com/repos/lotus/model/milestones{/number}","notifications_url":"https://api.github.com/repos/lotus/model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lotus/model/labels{/name}","releases_url":"https://api.github.com/repos/lotus/model/releases{/id}","created_at":"2014-02-12T08:25:42Z","updated_at":"2015-03-07T12:58:14Z","pushed_at":"2015-03-07T12:58:13Z","git_url":"git://github.com/lotus/model.git","ssh_url":"git@github.com:lotus/model.git","clone_url":"https://github.com/lotus/model.git","svn_url":"https://github.com/lotus/model","homepage":"","size":2418,"stargazers_count":190,"watchers_count":190,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":12,"forks":60,"open_issues":12,"watchers":190,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lotus/model/pulls/161"},"html":{"href":"https://github.com/lotus/model/pull/161"},"issue":{"href":"https://api.github.com/repos/lotus/model/issues/161"},"comments":{"href":"https://api.github.com/repos/lotus/model/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/lotus/model/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/lotus/model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lotus/model/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/lotus/model/statuses/3a3e6fd628373ab81d25b92f23d32b01b03870fa"}}}}