{"action":"created","comment":{"url":"https://api.github.com/repos/kivanio/brcobranca/pulls/comments/154177488","pull_request_review_id":80302361,"id":154177488,"diff_hunk":"@@ -141,6 +141,43 @@\n       expect(id_empresa[5..13]).to eq '123456789' # convenio\n       expect(id_empresa[14..19]).to eq '      ' # brancos\n     end\n+\n+    it 'deve calcular o digito da agencia' do\n+      # digito calculado a partir do modulo 11 com base 9\n+      #\n+      # agencia = 1  2  3  4\n+      #\n+      #           4  3  2  1\n+      # x         9  8  7  6\n+      # =         36 24 14 6 = 80\n+      # 80 / 11 = 7 com resto 3\n+      expected_digito_agencia_list = [\n+        { agencia: '3214', dv: '0'},\n+        { agencia: '2006', dv: '0'},\n+        { agencia: '5651', dv: '0'},\n+        { agencia: '5691', dv: '0'},\n+        { agencia: '5741', dv: '0'},\n+        { agencia: '1008', dv: '1'},\n+        { agencia: '5681', dv: '2'},\n+        { agencia: '5731', dv: '2'},\n+        { agencia: '4327', dv: '3'},\n+        { agencia: '1001', dv: '4'},\n+        { agencia: '5761', dv: '4'},\n+        { agencia: '3032', dv: '5'},\n+        { agencia: '5671', dv: '5'},\n+        { agencia: '5631', dv: '6'},\n+        { agencia: '1005', dv: '7'},\n+        { agencia: '5661', dv: '8'},","path":"spec/brcobranca/remessa/cnab400/sicoob_spec.rb","position":30,"original_position":30,"commit_id":"8d8974b4681fbbc4d8c46c440b98a8f49f54927b","original_commit_id":"8d8974b4681fbbc4d8c46c440b98a8f49f54927b","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.<br>Space inside } missing.","created_at":"2017-11-30T19:30:51Z","updated_at":"2017-11-30T19:30:53Z","html_url":"https://github.com/kivanio/brcobranca/pull/180#discussion_r154177488","pull_request_url":"https://api.github.com/repos/kivanio/brcobranca/pulls/180","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/comments/154177488"},"html":{"href":"https://github.com/kivanio/brcobranca/pull/180#discussion_r154177488"},"pull_request":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/180"}}},"pull_request":{"url":"https://api.github.com/repos/kivanio/brcobranca/pulls/180","id":155698229,"html_url":"https://github.com/kivanio/brcobranca/pull/180","diff_url":"https://github.com/kivanio/brcobranca/pull/180.diff","patch_url":"https://github.com/kivanio/brcobranca/pull/180.patch","issue_url":"https://api.github.com/repos/kivanio/brcobranca/issues/180","number":180,"state":"open","locked":false,"title":"Corrige calculo de digito verificador de agencia para sicoob","user":{"login":"ronyvieira","id":6923763,"avatar_url":"https://avatars0.githubusercontent.com/u/6923763?v=4","gravatar_id":"","url":"https://api.github.com/users/ronyvieira","html_url":"https://github.com/ronyvieira","followers_url":"https://api.github.com/users/ronyvieira/followers","following_url":"https://api.github.com/users/ronyvieira/following{/other_user}","gists_url":"https://api.github.com/users/ronyvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyvieira/subscriptions","organizations_url":"https://api.github.com/users/ronyvieira/orgs","repos_url":"https://api.github.com/users/ronyvieira/repos","events_url":"https://api.github.com/users/ronyvieira/events{/privacy}","received_events_url":"https://api.github.com/users/ronyvieira/received_events","type":"User","site_admin":false},"body":"Ajusta o calcular do DV da cooperativa Sicoob. A gem está mapeando para X sendo que deveria estar mapeando para 0.\r\n\r\nPor exemplo:\r\nSegundo a documentação do banco, a agência '3214' tem DV '0'","created_at":"2017-11-30T19:30:41Z","updated_at":"2017-11-30T19:30:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16fe920667d8f4c0b791912aefebaf1cb65543eb","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kivanio/brcobranca/pulls/180/commits","review_comments_url":"https://api.github.com/repos/kivanio/brcobranca/pulls/180/comments","review_comment_url":"https://api.github.com/repos/kivanio/brcobranca/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kivanio/brcobranca/issues/180/comments","statuses_url":"https://api.github.com/repos/kivanio/brcobranca/statuses/8d8974b4681fbbc4d8c46c440b98a8f49f54927b","head":{"label":"ronyvieira:ajusta-calculo-de-DV-sicoob","ref":"ajusta-calculo-de-DV-sicoob","sha":"8d8974b4681fbbc4d8c46c440b98a8f49f54927b","user":{"login":"ronyvieira","id":6923763,"avatar_url":"https://avatars0.githubusercontent.com/u/6923763?v=4","gravatar_id":"","url":"https://api.github.com/users/ronyvieira","html_url":"https://github.com/ronyvieira","followers_url":"https://api.github.com/users/ronyvieira/followers","following_url":"https://api.github.com/users/ronyvieira/following{/other_user}","gists_url":"https://api.github.com/users/ronyvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyvieira/subscriptions","organizations_url":"https://api.github.com/users/ronyvieira/orgs","repos_url":"https://api.github.com/users/ronyvieira/repos","events_url":"https://api.github.com/users/ronyvieira/events{/privacy}","received_events_url":"https://api.github.com/users/ronyvieira/received_events","type":"User","site_admin":false},"repo":{"id":92880847,"name":"brcobranca","full_name":"ronyvieira/brcobranca","owner":{"login":"ronyvieira","id":6923763,"avatar_url":"https://avatars0.githubusercontent.com/u/6923763?v=4","gravatar_id":"","url":"https://api.github.com/users/ronyvieira","html_url":"https://github.com/ronyvieira","followers_url":"https://api.github.com/users/ronyvieira/followers","following_url":"https://api.github.com/users/ronyvieira/following{/other_user}","gists_url":"https://api.github.com/users/ronyvieira/gists{/gist_id}","starred_url":"https://api.github.com/users/ronyvieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronyvieira/subscriptions","organizations_url":"https://api.github.com/users/ronyvieira/orgs","repos_url":"https://api.github.com/users/ronyvieira/repos","events_url":"https://api.github.com/users/ronyvieira/events{/privacy}","received_events_url":"https://api.github.com/users/ronyvieira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ronyvieira/brcobranca","description":"Emissão de bloquetos de cobrança para bancos brasileiros","fork":true,"url":"https://api.github.com/repos/ronyvieira/brcobranca","forks_url":"https://api.github.com/repos/ronyvieira/brcobranca/forks","keys_url":"https://api.github.com/repos/ronyvieira/brcobranca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ronyvieira/brcobranca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ronyvieira/brcobranca/teams","hooks_url":"https://api.github.com/repos/ronyvieira/brcobranca/hooks","issue_events_url":"https://api.github.com/repos/ronyvieira/brcobranca/issues/events{/number}","events_url":"https://api.github.com/repos/ronyvieira/brcobranca/events","assignees_url":"https://api.github.com/repos/ronyvieira/brcobranca/assignees{/user}","branches_url":"https://api.github.com/repos/ronyvieira/brcobranca/branches{/branch}","tags_url":"https://api.github.com/repos/ronyvieira/brcobranca/tags","blobs_url":"https://api.github.com/repos/ronyvieira/brcobranca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ronyvieira/brcobranca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ronyvieira/brcobranca/git/refs{/sha}","trees_url":"https://api.github.com/repos/ronyvieira/brcobranca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ronyvieira/brcobranca/statuses/{sha}","languages_url":"https://api.github.com/repos/ronyvieira/brcobranca/languages","stargazers_url":"https://api.github.com/repos/ronyvieira/brcobranca/stargazers","contributors_url":"https://api.github.com/repos/ronyvieira/brcobranca/contributors","subscribers_url":"https://api.github.com/repos/ronyvieira/brcobranca/subscribers","subscription_url":"https://api.github.com/repos/ronyvieira/brcobranca/subscription","commits_url":"https://api.github.com/repos/ronyvieira/brcobranca/commits{/sha}","git_commits_url":"https://api.github.com/repos/ronyvieira/brcobranca/git/commits{/sha}","comments_url":"https://api.github.com/repos/ronyvieira/brcobranca/comments{/number}","issue_comment_url":"https://api.github.com/repos/ronyvieira/brcobranca/issues/comments{/number}","contents_url":"https://api.github.com/repos/ronyvieira/brcobranca/contents/{+path}","compare_url":"https://api.github.com/repos/ronyvieira/brcobranca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ronyvieira/brcobranca/merges","archive_url":"https://api.github.com/repos/ronyvieira/brcobranca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ronyvieira/brcobranca/downloads","issues_url":"https://api.github.com/repos/ronyvieira/brcobranca/issues{/number}","pulls_url":"https://api.github.com/repos/ronyvieira/brcobranca/pulls{/number}","milestones_url":"https://api.github.com/repos/ronyvieira/brcobranca/milestones{/number}","notifications_url":"https://api.github.com/repos/ronyvieira/brcobranca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ronyvieira/brcobranca/labels{/name}","releases_url":"https://api.github.com/repos/ronyvieira/brcobranca/releases{/id}","deployments_url":"https://api.github.com/repos/ronyvieira/brcobranca/deployments","created_at":"2017-05-30T22:15:26Z","updated_at":"2017-10-04T19:51:37Z","pushed_at":"2017-11-30T19:28:51Z","git_url":"git://github.com/ronyvieira/brcobranca.git","ssh_url":"git@github.com:ronyvieira/brcobranca.git","clone_url":"https://github.com/ronyvieira/brcobranca.git","svn_url":"https://github.com/ronyvieira/brcobranca","homepage":"https://brcobranca.herokuapp.com/","size":3918,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"kivanio:master","ref":"master","sha":"3d223a0499dff36cae60cedde2cc68b7642af534","user":{"login":"kivanio","id":5107,"avatar_url":"https://avatars1.githubusercontent.com/u/5107?v=4","gravatar_id":"","url":"https://api.github.com/users/kivanio","html_url":"https://github.com/kivanio","followers_url":"https://api.github.com/users/kivanio/followers","following_url":"https://api.github.com/users/kivanio/following{/other_user}","gists_url":"https://api.github.com/users/kivanio/gists{/gist_id}","starred_url":"https://api.github.com/users/kivanio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivanio/subscriptions","organizations_url":"https://api.github.com/users/kivanio/orgs","repos_url":"https://api.github.com/users/kivanio/repos","events_url":"https://api.github.com/users/kivanio/events{/privacy}","received_events_url":"https://api.github.com/users/kivanio/received_events","type":"User","site_admin":false},"repo":{"id":165755,"name":"brcobranca","full_name":"kivanio/brcobranca","owner":{"login":"kivanio","id":5107,"avatar_url":"https://avatars1.githubusercontent.com/u/5107?v=4","gravatar_id":"","url":"https://api.github.com/users/kivanio","html_url":"https://github.com/kivanio","followers_url":"https://api.github.com/users/kivanio/followers","following_url":"https://api.github.com/users/kivanio/following{/other_user}","gists_url":"https://api.github.com/users/kivanio/gists{/gist_id}","starred_url":"https://api.github.com/users/kivanio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivanio/subscriptions","organizations_url":"https://api.github.com/users/kivanio/orgs","repos_url":"https://api.github.com/users/kivanio/repos","events_url":"https://api.github.com/users/kivanio/events{/privacy}","received_events_url":"https://api.github.com/users/kivanio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kivanio/brcobranca","description":"Emissão de bloquetos de cobrança para bancos brasileiros","fork":false,"url":"https://api.github.com/repos/kivanio/brcobranca","forks_url":"https://api.github.com/repos/kivanio/brcobranca/forks","keys_url":"https://api.github.com/repos/kivanio/brcobranca/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kivanio/brcobranca/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kivanio/brcobranca/teams","hooks_url":"https://api.github.com/repos/kivanio/brcobranca/hooks","issue_events_url":"https://api.github.com/repos/kivanio/brcobranca/issues/events{/number}","events_url":"https://api.github.com/repos/kivanio/brcobranca/events","assignees_url":"https://api.github.com/repos/kivanio/brcobranca/assignees{/user}","branches_url":"https://api.github.com/repos/kivanio/brcobranca/branches{/branch}","tags_url":"https://api.github.com/repos/kivanio/brcobranca/tags","blobs_url":"https://api.github.com/repos/kivanio/brcobranca/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kivanio/brcobranca/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kivanio/brcobranca/git/refs{/sha}","trees_url":"https://api.github.com/repos/kivanio/brcobranca/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kivanio/brcobranca/statuses/{sha}","languages_url":"https://api.github.com/repos/kivanio/brcobranca/languages","stargazers_url":"https://api.github.com/repos/kivanio/brcobranca/stargazers","contributors_url":"https://api.github.com/repos/kivanio/brcobranca/contributors","subscribers_url":"https://api.github.com/repos/kivanio/brcobranca/subscribers","subscription_url":"https://api.github.com/repos/kivanio/brcobranca/subscription","commits_url":"https://api.github.com/repos/kivanio/brcobranca/commits{/sha}","git_commits_url":"https://api.github.com/repos/kivanio/brcobranca/git/commits{/sha}","comments_url":"https://api.github.com/repos/kivanio/brcobranca/comments{/number}","issue_comment_url":"https://api.github.com/repos/kivanio/brcobranca/issues/comments{/number}","contents_url":"https://api.github.com/repos/kivanio/brcobranca/contents/{+path}","compare_url":"https://api.github.com/repos/kivanio/brcobranca/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kivanio/brcobranca/merges","archive_url":"https://api.github.com/repos/kivanio/brcobranca/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kivanio/brcobranca/downloads","issues_url":"https://api.github.com/repos/kivanio/brcobranca/issues{/number}","pulls_url":"https://api.github.com/repos/kivanio/brcobranca/pulls{/number}","milestones_url":"https://api.github.com/repos/kivanio/brcobranca/milestones{/number}","notifications_url":"https://api.github.com/repos/kivanio/brcobranca/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kivanio/brcobranca/labels{/name}","releases_url":"https://api.github.com/repos/kivanio/brcobranca/releases{/id}","deployments_url":"https://api.github.com/repos/kivanio/brcobranca/deployments","created_at":"2009-04-02T02:03:17Z","updated_at":"2017-11-29T18:12:53Z","pushed_at":"2017-11-30T19:30:42Z","git_url":"git://github.com/kivanio/brcobranca.git","ssh_url":"git@github.com:kivanio/brcobranca.git","clone_url":"https://github.com/kivanio/brcobranca.git","svn_url":"https://github.com/kivanio/brcobranca","homepage":"https://brcobranca.herokuapp.com/","size":5145,"stargazers_count":273,"watchers_count":273,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":165,"mirror_url":null,"archived":false,"open_issues_count":18,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":165,"open_issues":18,"watchers":273,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/180"},"html":{"href":"https://github.com/kivanio/brcobranca/pull/180"},"issue":{"href":"https://api.github.com/repos/kivanio/brcobranca/issues/180"},"comments":{"href":"https://api.github.com/repos/kivanio/brcobranca/issues/180/comments"},"review_comments":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/180/comments"},"review_comment":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kivanio/brcobranca/pulls/180/commits"},"statuses":{"href":"https://api.github.com/repos/kivanio/brcobranca/statuses/8d8974b4681fbbc4d8c46c440b98a8f49f54927b"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}