{"action":"created","comment":{"url":"https://api.github.com/repos/inaka/hexer/pulls/comments/50563460","id":50563460,"diff_hunk":"@@ -23,20 +23,29 @@ publish() ->\n    , details := Details\n    } = hexer_utils:load_app_info(),\n   Deps = hexer_deps:resolve(AppDir),\n-  case validate_app_details(Details) of\n-    ok -> publish(AppDir, Name, Version, Deps, Details);\n-    {error, Error} -> throw(Error)\n-  end.\n+  ok = validate_app_details(Details),\n+  ok = validate_hex_dependencies(Deps),\n+  publish(AppDir, Name, Version, Deps, Details).\n \n %%------------------------------------------------------------------------------\n %% Internal Functions\n %%------------------------------------------------------------------------------\n+-spec validate_hex_dependencies([tuple()]) -> ok | {error, any()}.\n+validate_hex_dependencies(Deps) ->\n+  case [{no_hex_dependency, Dep} || {no_hex_dependency, Dep} <- Deps] of\n+    []    -> ok;\n+    NoHexDeps ->\n+      FormatedDeps = format_deps(NoHexDeps),\n+      Description  = \"Error: No Hex Dependencys in Makefile:~n  ~s\",","path":"src/hexer_package.erl","position":21,"original_position":21,"commit_id":"064f0fa87c34544017e418dea9d7d6d75eb9c990","original_commit_id":"064f0fa87c34544017e418dea9d7d6d75eb9c990","user":{"login":"elbrujohalcon","id":93657,"avatar_url":"https://avatars.githubusercontent.com/u/93657?v=3","gravatar_id":"","url":"https://api.github.com/users/elbrujohalcon","html_url":"https://github.com/elbrujohalcon","followers_url":"https://api.github.com/users/elbrujohalcon/followers","following_url":"https://api.github.com/users/elbrujohalcon/following{/other_user}","gists_url":"https://api.github.com/users/elbrujohalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/elbrujohalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbrujohalcon/subscriptions","organizations_url":"https://api.github.com/users/elbrujohalcon/orgs","repos_url":"https://api.github.com/users/elbrujohalcon/repos","events_url":"https://api.github.com/users/elbrujohalcon/events{/privacy}","received_events_url":"https://api.github.com/users/elbrujohalcon/received_events","type":"User","site_admin":false},"body":"`Dependencies not published in hex.pm:`","created_at":"2016-01-22T17:15:43Z","updated_at":"2016-01-22T17:15:43Z","html_url":"https://github.com/inaka/hexer/pull/39#discussion_r50563460","pull_request_url":"https://api.github.com/repos/inaka/hexer/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/inaka/hexer/pulls/comments/50563460"},"html":{"href":"https://github.com/inaka/hexer/pull/39#discussion_r50563460"},"pull_request":{"href":"https://api.github.com/repos/inaka/hexer/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/inaka/hexer/pulls/39","id":56913992,"html_url":"https://github.com/inaka/hexer/pull/39","diff_url":"https://github.com/inaka/hexer/pull/39.diff","patch_url":"https://github.com/inaka/hexer/pull/39.patch","issue_url":"https://api.github.com/repos/inaka/hexer/issues/39","number":39,"state":"open","locked":false,"title":"[#36] Added hex only for dependencies in Makefile DEPS list","user":{"login":"davecaos","id":6124495,"avatar_url":"https://avatars.githubusercontent.com/u/6124495?v=3","gravatar_id":"","url":"https://api.github.com/users/davecaos","html_url":"https://github.com/davecaos","followers_url":"https://api.github.com/users/davecaos/followers","following_url":"https://api.github.com/users/davecaos/following{/other_user}","gists_url":"https://api.github.com/users/davecaos/gists{/gist_id}","starred_url":"https://api.github.com/users/davecaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davecaos/subscriptions","organizations_url":"https://api.github.com/users/davecaos/orgs","repos_url":"https://api.github.com/users/davecaos/repos","events_url":"https://api.github.com/users/davecaos/events{/privacy}","received_events_url":"https://api.github.com/users/davecaos/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-22T17:03:51Z","updated_at":"2016-01-22T17:15:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f774b7038aee8530603f472e8fad81e2a808f67","assignee":{"login":"elbrujohalcon","id":93657,"avatar_url":"https://avatars.githubusercontent.com/u/93657?v=3","gravatar_id":"","url":"https://api.github.com/users/elbrujohalcon","html_url":"https://github.com/elbrujohalcon","followers_url":"https://api.github.com/users/elbrujohalcon/followers","following_url":"https://api.github.com/users/elbrujohalcon/following{/other_user}","gists_url":"https://api.github.com/users/elbrujohalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/elbrujohalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elbrujohalcon/subscriptions","organizations_url":"https://api.github.com/users/elbrujohalcon/orgs","repos_url":"https://api.github.com/users/elbrujohalcon/repos","events_url":"https://api.github.com/users/elbrujohalcon/events{/privacy}","received_events_url":"https://api.github.com/users/elbrujohalcon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/inaka/hexer/pulls/39/commits","review_comments_url":"https://api.github.com/repos/inaka/hexer/pulls/39/comments","review_comment_url":"https://api.github.com/repos/inaka/hexer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inaka/hexer/issues/39/comments","statuses_url":"https://api.github.com/repos/inaka/hexer/statuses/064f0fa87c34544017e418dea9d7d6d75eb9c990","head":{"label":"inaka:dave.36.all.dependencies.with.hex.validation","ref":"dave.36.all.dependencies.with.hex.validation","sha":"064f0fa87c34544017e418dea9d7d6d75eb9c990","user":{"login":"inaka","id":867053,"avatar_url":"https://avatars.githubusercontent.com/u/867053?v=3","gravatar_id":"","url":"https://api.github.com/users/inaka","html_url":"https://github.com/inaka","followers_url":"https://api.github.com/users/inaka/followers","following_url":"https://api.github.com/users/inaka/following{/other_user}","gists_url":"https://api.github.com/users/inaka/gists{/gist_id}","starred_url":"https://api.github.com/users/inaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaka/subscriptions","organizations_url":"https://api.github.com/users/inaka/orgs","repos_url":"https://api.github.com/users/inaka/repos","events_url":"https://api.github.com/users/inaka/events{/privacy}","received_events_url":"https://api.github.com/users/inaka/received_events","type":"Organization","site_admin":false},"repo":{"id":47405002,"name":"hexer","full_name":"inaka/hexer","owner":{"login":"inaka","id":867053,"avatar_url":"https://avatars.githubusercontent.com/u/867053?v=3","gravatar_id":"","url":"https://api.github.com/users/inaka","html_url":"https://github.com/inaka","followers_url":"https://api.github.com/users/inaka/followers","following_url":"https://api.github.com/users/inaka/following{/other_user}","gists_url":"https://api.github.com/users/inaka/gists{/gist_id}","starred_url":"https://api.github.com/users/inaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaka/subscriptions","organizations_url":"https://api.github.com/users/inaka/orgs","repos_url":"https://api.github.com/users/inaka/repos","events_url":"https://api.github.com/users/inaka/events{/privacy}","received_events_url":"https://api.github.com/users/inaka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inaka/hexer","description":"Hex.pm integration in escript format.","fork":false,"url":"https://api.github.com/repos/inaka/hexer","forks_url":"https://api.github.com/repos/inaka/hexer/forks","keys_url":"https://api.github.com/repos/inaka/hexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inaka/hexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inaka/hexer/teams","hooks_url":"https://api.github.com/repos/inaka/hexer/hooks","issue_events_url":"https://api.github.com/repos/inaka/hexer/issues/events{/number}","events_url":"https://api.github.com/repos/inaka/hexer/events","assignees_url":"https://api.github.com/repos/inaka/hexer/assignees{/user}","branches_url":"https://api.github.com/repos/inaka/hexer/branches{/branch}","tags_url":"https://api.github.com/repos/inaka/hexer/tags","blobs_url":"https://api.github.com/repos/inaka/hexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inaka/hexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inaka/hexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/inaka/hexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inaka/hexer/statuses/{sha}","languages_url":"https://api.github.com/repos/inaka/hexer/languages","stargazers_url":"https://api.github.com/repos/inaka/hexer/stargazers","contributors_url":"https://api.github.com/repos/inaka/hexer/contributors","subscribers_url":"https://api.github.com/repos/inaka/hexer/subscribers","subscription_url":"https://api.github.com/repos/inaka/hexer/subscription","commits_url":"https://api.github.com/repos/inaka/hexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/inaka/hexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/inaka/hexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/inaka/hexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/inaka/hexer/contents/{+path}","compare_url":"https://api.github.com/repos/inaka/hexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inaka/hexer/merges","archive_url":"https://api.github.com/repos/inaka/hexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inaka/hexer/downloads","issues_url":"https://api.github.com/repos/inaka/hexer/issues{/number}","pulls_url":"https://api.github.com/repos/inaka/hexer/pulls{/number}","milestones_url":"https://api.github.com/repos/inaka/hexer/milestones{/number}","notifications_url":"https://api.github.com/repos/inaka/hexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inaka/hexer/labels{/name}","releases_url":"https://api.github.com/repos/inaka/hexer/releases{/id}","deployments_url":"https://api.github.com/repos/inaka/hexer/deployments","created_at":"2015-12-04T13:14:32Z","updated_at":"2016-01-11T19:44:05Z","pushed_at":"2016-01-22T17:03:52Z","git_url":"git://github.com/inaka/hexer.git","ssh_url":"git@github.com:inaka/hexer.git","clone_url":"https://github.com/inaka/hexer.git","svn_url":"https://github.com/inaka/hexer","homepage":null,"size":3215,"stargazers_count":6,"watchers_count":6,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":6,"default_branch":"master"}},"base":{"label":"inaka:master","ref":"master","sha":"76283403693b0fc20c30a91a0f4152a5751dc8e6","user":{"login":"inaka","id":867053,"avatar_url":"https://avatars.githubusercontent.com/u/867053?v=3","gravatar_id":"","url":"https://api.github.com/users/inaka","html_url":"https://github.com/inaka","followers_url":"https://api.github.com/users/inaka/followers","following_url":"https://api.github.com/users/inaka/following{/other_user}","gists_url":"https://api.github.com/users/inaka/gists{/gist_id}","starred_url":"https://api.github.com/users/inaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaka/subscriptions","organizations_url":"https://api.github.com/users/inaka/orgs","repos_url":"https://api.github.com/users/inaka/repos","events_url":"https://api.github.com/users/inaka/events{/privacy}","received_events_url":"https://api.github.com/users/inaka/received_events","type":"Organization","site_admin":false},"repo":{"id":47405002,"name":"hexer","full_name":"inaka/hexer","owner":{"login":"inaka","id":867053,"avatar_url":"https://avatars.githubusercontent.com/u/867053?v=3","gravatar_id":"","url":"https://api.github.com/users/inaka","html_url":"https://github.com/inaka","followers_url":"https://api.github.com/users/inaka/followers","following_url":"https://api.github.com/users/inaka/following{/other_user}","gists_url":"https://api.github.com/users/inaka/gists{/gist_id}","starred_url":"https://api.github.com/users/inaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inaka/subscriptions","organizations_url":"https://api.github.com/users/inaka/orgs","repos_url":"https://api.github.com/users/inaka/repos","events_url":"https://api.github.com/users/inaka/events{/privacy}","received_events_url":"https://api.github.com/users/inaka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inaka/hexer","description":"Hex.pm integration in escript format.","fork":false,"url":"https://api.github.com/repos/inaka/hexer","forks_url":"https://api.github.com/repos/inaka/hexer/forks","keys_url":"https://api.github.com/repos/inaka/hexer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inaka/hexer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inaka/hexer/teams","hooks_url":"https://api.github.com/repos/inaka/hexer/hooks","issue_events_url":"https://api.github.com/repos/inaka/hexer/issues/events{/number}","events_url":"https://api.github.com/repos/inaka/hexer/events","assignees_url":"https://api.github.com/repos/inaka/hexer/assignees{/user}","branches_url":"https://api.github.com/repos/inaka/hexer/branches{/branch}","tags_url":"https://api.github.com/repos/inaka/hexer/tags","blobs_url":"https://api.github.com/repos/inaka/hexer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inaka/hexer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inaka/hexer/git/refs{/sha}","trees_url":"https://api.github.com/repos/inaka/hexer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inaka/hexer/statuses/{sha}","languages_url":"https://api.github.com/repos/inaka/hexer/languages","stargazers_url":"https://api.github.com/repos/inaka/hexer/stargazers","contributors_url":"https://api.github.com/repos/inaka/hexer/contributors","subscribers_url":"https://api.github.com/repos/inaka/hexer/subscribers","subscription_url":"https://api.github.com/repos/inaka/hexer/subscription","commits_url":"https://api.github.com/repos/inaka/hexer/commits{/sha}","git_commits_url":"https://api.github.com/repos/inaka/hexer/git/commits{/sha}","comments_url":"https://api.github.com/repos/inaka/hexer/comments{/number}","issue_comment_url":"https://api.github.com/repos/inaka/hexer/issues/comments{/number}","contents_url":"https://api.github.com/repos/inaka/hexer/contents/{+path}","compare_url":"https://api.github.com/repos/inaka/hexer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inaka/hexer/merges","archive_url":"https://api.github.com/repos/inaka/hexer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inaka/hexer/downloads","issues_url":"https://api.github.com/repos/inaka/hexer/issues{/number}","pulls_url":"https://api.github.com/repos/inaka/hexer/pulls{/number}","milestones_url":"https://api.github.com/repos/inaka/hexer/milestones{/number}","notifications_url":"https://api.github.com/repos/inaka/hexer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inaka/hexer/labels{/name}","releases_url":"https://api.github.com/repos/inaka/hexer/releases{/id}","deployments_url":"https://api.github.com/repos/inaka/hexer/deployments","created_at":"2015-12-04T13:14:32Z","updated_at":"2016-01-11T19:44:05Z","pushed_at":"2016-01-22T17:03:52Z","git_url":"git://github.com/inaka/hexer.git","ssh_url":"git@github.com:inaka/hexer.git","clone_url":"https://github.com/inaka/hexer.git","svn_url":"https://github.com/inaka/hexer","homepage":null,"size":3215,"stargazers_count":6,"watchers_count":6,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inaka/hexer/pulls/39"},"html":{"href":"https://github.com/inaka/hexer/pull/39"},"issue":{"href":"https://api.github.com/repos/inaka/hexer/issues/39"},"comments":{"href":"https://api.github.com/repos/inaka/hexer/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/inaka/hexer/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/inaka/hexer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inaka/hexer/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/inaka/hexer/statuses/064f0fa87c34544017e418dea9d7d6d75eb9c990"}}}}