{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6","id":36445012,"html_url":"https://github.com/ContaAzul/DateDSL/pull/6","diff_url":"https://github.com/ContaAzul/DateDSL/pull/6.diff","patch_url":"https://github.com/ContaAzul/DateDSL/pull/6.patch","issue_url":"https://api.github.com/repos/ContaAzul/DateDSL/issues/6","number":6,"state":"closed","locked":false,"title":"Correção do manipulação de dias uteis para add e subtract","user":{"login":"decioluckow","id":3669580,"avatar_url":"https://avatars.githubusercontent.com/u/3669580?v=3","gravatar_id":"","url":"https://api.github.com/users/decioluckow","html_url":"https://github.com/decioluckow","followers_url":"https://api.github.com/users/decioluckow/followers","following_url":"https://api.github.com/users/decioluckow/following{/other_user}","gists_url":"https://api.github.com/users/decioluckow/gists{/gist_id}","starred_url":"https://api.github.com/users/decioluckow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decioluckow/subscriptions","organizations_url":"https://api.github.com/users/decioluckow/orgs","repos_url":"https://api.github.com/users/decioluckow/repos","events_url":"https://api.github.com/users/decioluckow/events{/privacy}","received_events_url":"https://api.github.com/users/decioluckow/received_events","type":"User","site_admin":false},"body":"O método subtract não considerava dias uteis e o método add() com número negativo para dia útil entrava em loop infinito.\r\n\r\nAlém disso havia um teste unitário que calculava a quantidade de dias entre duas data, que passou a quebrar a partir do dia 28/02/2015 porque a faixa de datas consideradas no teste (que era dinamica) passou a incluir dois anos bisextos.\r\nAlterei para fazer dois testes separados com datas fixas, sendo um deles forçando a situação de dois anos bisextos no período.","created_at":"2015-05-28T20:03:50Z","updated_at":"2015-05-29T12:13:28Z","closed_at":"2015-05-29T12:13:28Z","merged_at":"2015-05-29T12:13:28Z","merge_commit_sha":"783670252cd27ffb2637e2c8cb9af3b6e41147b0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ContaAzul/DateDSL/issues/6/comments","statuses_url":"https://api.github.com/repos/ContaAzul/DateDSL/statuses/2977d1357b5acd696712b9794a736704385b3908","head":{"label":"decioluckow:feature/CONT-860a","ref":"feature/CONT-860a","sha":"2977d1357b5acd696712b9794a736704385b3908","user":{"login":"decioluckow","id":3669580,"avatar_url":"https://avatars.githubusercontent.com/u/3669580?v=3","gravatar_id":"","url":"https://api.github.com/users/decioluckow","html_url":"https://github.com/decioluckow","followers_url":"https://api.github.com/users/decioluckow/followers","following_url":"https://api.github.com/users/decioluckow/following{/other_user}","gists_url":"https://api.github.com/users/decioluckow/gists{/gist_id}","starred_url":"https://api.github.com/users/decioluckow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decioluckow/subscriptions","organizations_url":"https://api.github.com/users/decioluckow/orgs","repos_url":"https://api.github.com/users/decioluckow/repos","events_url":"https://api.github.com/users/decioluckow/events{/privacy}","received_events_url":"https://api.github.com/users/decioluckow/received_events","type":"User","site_admin":false},"repo":{"id":36461653,"name":"DateDSL","full_name":"decioluckow/DateDSL","owner":{"login":"decioluckow","id":3669580,"avatar_url":"https://avatars.githubusercontent.com/u/3669580?v=3","gravatar_id":"","url":"https://api.github.com/users/decioluckow","html_url":"https://github.com/decioluckow","followers_url":"https://api.github.com/users/decioluckow/followers","following_url":"https://api.github.com/users/decioluckow/following{/other_user}","gists_url":"https://api.github.com/users/decioluckow/gists{/gist_id}","starred_url":"https://api.github.com/users/decioluckow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decioluckow/subscriptions","organizations_url":"https://api.github.com/users/decioluckow/orgs","repos_url":"https://api.github.com/users/decioluckow/repos","events_url":"https://api.github.com/users/decioluckow/events{/privacy}","received_events_url":"https://api.github.com/users/decioluckow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/decioluckow/DateDSL","description":"Simple fluent interface for java date api","fork":true,"url":"https://api.github.com/repos/decioluckow/DateDSL","forks_url":"https://api.github.com/repos/decioluckow/DateDSL/forks","keys_url":"https://api.github.com/repos/decioluckow/DateDSL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decioluckow/DateDSL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decioluckow/DateDSL/teams","hooks_url":"https://api.github.com/repos/decioluckow/DateDSL/hooks","issue_events_url":"https://api.github.com/repos/decioluckow/DateDSL/issues/events{/number}","events_url":"https://api.github.com/repos/decioluckow/DateDSL/events","assignees_url":"https://api.github.com/repos/decioluckow/DateDSL/assignees{/user}","branches_url":"https://api.github.com/repos/decioluckow/DateDSL/branches{/branch}","tags_url":"https://api.github.com/repos/decioluckow/DateDSL/tags","blobs_url":"https://api.github.com/repos/decioluckow/DateDSL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decioluckow/DateDSL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decioluckow/DateDSL/git/refs{/sha}","trees_url":"https://api.github.com/repos/decioluckow/DateDSL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decioluckow/DateDSL/statuses/{sha}","languages_url":"https://api.github.com/repos/decioluckow/DateDSL/languages","stargazers_url":"https://api.github.com/repos/decioluckow/DateDSL/stargazers","contributors_url":"https://api.github.com/repos/decioluckow/DateDSL/contributors","subscribers_url":"https://api.github.com/repos/decioluckow/DateDSL/subscribers","subscription_url":"https://api.github.com/repos/decioluckow/DateDSL/subscription","commits_url":"https://api.github.com/repos/decioluckow/DateDSL/commits{/sha}","git_commits_url":"https://api.github.com/repos/decioluckow/DateDSL/git/commits{/sha}","comments_url":"https://api.github.com/repos/decioluckow/DateDSL/comments{/number}","issue_comment_url":"https://api.github.com/repos/decioluckow/DateDSL/issues/comments{/number}","contents_url":"https://api.github.com/repos/decioluckow/DateDSL/contents/{+path}","compare_url":"https://api.github.com/repos/decioluckow/DateDSL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decioluckow/DateDSL/merges","archive_url":"https://api.github.com/repos/decioluckow/DateDSL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decioluckow/DateDSL/downloads","issues_url":"https://api.github.com/repos/decioluckow/DateDSL/issues{/number}","pulls_url":"https://api.github.com/repos/decioluckow/DateDSL/pulls{/number}","milestones_url":"https://api.github.com/repos/decioluckow/DateDSL/milestones{/number}","notifications_url":"https://api.github.com/repos/decioluckow/DateDSL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decioluckow/DateDSL/labels{/name}","releases_url":"https://api.github.com/repos/decioluckow/DateDSL/releases{/id}","created_at":"2015-05-28T19:37:42Z","updated_at":"2015-05-28T19:37:43Z","pushed_at":"2015-05-29T02:13:43Z","git_url":"git://github.com/decioluckow/DateDSL.git","ssh_url":"git@github.com:decioluckow/DateDSL.git","clone_url":"https://github.com/decioluckow/DateDSL.git","svn_url":"https://github.com/decioluckow/DateDSL","homepage":"","size":145,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"ContaAzul:master","ref":"master","sha":"a81e70c0a24f4e648a0d6946b89ff1ecda51b277","user":{"login":"ContaAzul","id":1438154,"avatar_url":"https://avatars.githubusercontent.com/u/1438154?v=3","gravatar_id":"","url":"https://api.github.com/users/ContaAzul","html_url":"https://github.com/ContaAzul","followers_url":"https://api.github.com/users/ContaAzul/followers","following_url":"https://api.github.com/users/ContaAzul/following{/other_user}","gists_url":"https://api.github.com/users/ContaAzul/gists{/gist_id}","starred_url":"https://api.github.com/users/ContaAzul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContaAzul/subscriptions","organizations_url":"https://api.github.com/users/ContaAzul/orgs","repos_url":"https://api.github.com/users/ContaAzul/repos","events_url":"https://api.github.com/users/ContaAzul/events{/privacy}","received_events_url":"https://api.github.com/users/ContaAzul/received_events","type":"Organization","site_admin":false},"repo":{"id":6334892,"name":"DateDSL","full_name":"ContaAzul/DateDSL","owner":{"login":"ContaAzul","id":1438154,"avatar_url":"https://avatars.githubusercontent.com/u/1438154?v=3","gravatar_id":"","url":"https://api.github.com/users/ContaAzul","html_url":"https://github.com/ContaAzul","followers_url":"https://api.github.com/users/ContaAzul/followers","following_url":"https://api.github.com/users/ContaAzul/following{/other_user}","gists_url":"https://api.github.com/users/ContaAzul/gists{/gist_id}","starred_url":"https://api.github.com/users/ContaAzul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ContaAzul/subscriptions","organizations_url":"https://api.github.com/users/ContaAzul/orgs","repos_url":"https://api.github.com/users/ContaAzul/repos","events_url":"https://api.github.com/users/ContaAzul/events{/privacy}","received_events_url":"https://api.github.com/users/ContaAzul/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ContaAzul/DateDSL","description":"Simple fluent interface for java date api","fork":false,"url":"https://api.github.com/repos/ContaAzul/DateDSL","forks_url":"https://api.github.com/repos/ContaAzul/DateDSL/forks","keys_url":"https://api.github.com/repos/ContaAzul/DateDSL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ContaAzul/DateDSL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ContaAzul/DateDSL/teams","hooks_url":"https://api.github.com/repos/ContaAzul/DateDSL/hooks","issue_events_url":"https://api.github.com/repos/ContaAzul/DateDSL/issues/events{/number}","events_url":"https://api.github.com/repos/ContaAzul/DateDSL/events","assignees_url":"https://api.github.com/repos/ContaAzul/DateDSL/assignees{/user}","branches_url":"https://api.github.com/repos/ContaAzul/DateDSL/branches{/branch}","tags_url":"https://api.github.com/repos/ContaAzul/DateDSL/tags","blobs_url":"https://api.github.com/repos/ContaAzul/DateDSL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ContaAzul/DateDSL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ContaAzul/DateDSL/git/refs{/sha}","trees_url":"https://api.github.com/repos/ContaAzul/DateDSL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ContaAzul/DateDSL/statuses/{sha}","languages_url":"https://api.github.com/repos/ContaAzul/DateDSL/languages","stargazers_url":"https://api.github.com/repos/ContaAzul/DateDSL/stargazers","contributors_url":"https://api.github.com/repos/ContaAzul/DateDSL/contributors","subscribers_url":"https://api.github.com/repos/ContaAzul/DateDSL/subscribers","subscription_url":"https://api.github.com/repos/ContaAzul/DateDSL/subscription","commits_url":"https://api.github.com/repos/ContaAzul/DateDSL/commits{/sha}","git_commits_url":"https://api.github.com/repos/ContaAzul/DateDSL/git/commits{/sha}","comments_url":"https://api.github.com/repos/ContaAzul/DateDSL/comments{/number}","issue_comment_url":"https://api.github.com/repos/ContaAzul/DateDSL/issues/comments{/number}","contents_url":"https://api.github.com/repos/ContaAzul/DateDSL/contents/{+path}","compare_url":"https://api.github.com/repos/ContaAzul/DateDSL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ContaAzul/DateDSL/merges","archive_url":"https://api.github.com/repos/ContaAzul/DateDSL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ContaAzul/DateDSL/downloads","issues_url":"https://api.github.com/repos/ContaAzul/DateDSL/issues{/number}","pulls_url":"https://api.github.com/repos/ContaAzul/DateDSL/pulls{/number}","milestones_url":"https://api.github.com/repos/ContaAzul/DateDSL/milestones{/number}","notifications_url":"https://api.github.com/repos/ContaAzul/DateDSL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ContaAzul/DateDSL/labels{/name}","releases_url":"https://api.github.com/repos/ContaAzul/DateDSL/releases{/id}","created_at":"2012-10-22T12:49:12Z","updated_at":"2014-11-11T21:50:10Z","pushed_at":"2015-05-29T12:13:28Z","git_url":"git://github.com/ContaAzul/DateDSL.git","ssh_url":"git@github.com:ContaAzul/DateDSL.git","clone_url":"https://github.com/ContaAzul/DateDSL.git","svn_url":"https://github.com/ContaAzul/DateDSL","homepage":"","size":325,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6"},"html":{"href":"https://github.com/ContaAzul/DateDSL/pull/6"},"issue":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/issues/6"},"comments":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ContaAzul/DateDSL/statuses/2977d1357b5acd696712b9794a736704385b3908"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"caarlos0","id":245435,"avatar_url":"https://avatars.githubusercontent.com/u/245435?v=3","gravatar_id":"","url":"https://api.github.com/users/caarlos0","html_url":"https://github.com/caarlos0","followers_url":"https://api.github.com/users/caarlos0/followers","following_url":"https://api.github.com/users/caarlos0/following{/other_user}","gists_url":"https://api.github.com/users/caarlos0/gists{/gist_id}","starred_url":"https://api.github.com/users/caarlos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caarlos0/subscriptions","organizations_url":"https://api.github.com/users/caarlos0/orgs","repos_url":"https://api.github.com/users/caarlos0/repos","events_url":"https://api.github.com/users/caarlos0/events{/privacy}","received_events_url":"https://api.github.com/users/caarlos0/received_events","type":"User","site_admin":false},"comments":3,"review_comments":6,"commits":3,"additions":53,"deletions":35,"changed_files":3}}