{"action":"created","comment":{"url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments/25365789","id":25365789,"diff_hunk":"@@ -43,11 +43,18 @@ defmodule Pact do\n   end\n \n   @doc \"Override all calls to `name` in `pid` with `module`\"\n-  def override(pid, name, module) do\n+  def override(pid, name, module) when is_atom(module) do\n     name = to_string(name)\n     GenServer.cast(__MODULE__, {:override, pid, name, module})\n   end\n \n+  def override(pid, name, overridden_functions) when is_list(overridden_functions) do\n+    name = to_string(name)\n+    {:module, fake_module_name, _, _} = create_fake_module(Pact.Fake)","path":"lib/pact.ex","position":12,"original_position":12,"commit_id":"6adf70129643cb0eaef5243b94064e400957c5cd","original_commit_id":"6adf70129643cb0eaef5243b94064e400957c5cd","user":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"body":"I need to figure out a way to dynamically create a module name here so that there are no collisions","created_at":"2015-02-25T18:39:35Z","updated_at":"2015-02-25T18:39:35Z","html_url":"https://github.com/BlakeWilliams/pact/pull/1#discussion_r25365789","pull_request_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments/25365789"},"html":{"href":"https://github.com/BlakeWilliams/pact/pull/1#discussion_r25365789"},"pull_request":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1","id":30013136,"html_url":"https://github.com/BlakeWilliams/pact/pull/1","diff_url":"https://github.com/BlakeWilliams/pact/pull/1.diff","patch_url":"https://github.com/BlakeWilliams/pact/pull/1.patch","issue_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/1","number":1,"state":"open","locked":false,"title":"Simpler syntax for overriding modules","user":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-25T18:39:00Z","updated_at":"2015-02-25T18:39:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"968debbb9ab7ada324cf4beabf4fa784caf81576","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/1/comments","statuses_url":"https://api.github.com/repos/BlakeWilliams/pact/statuses/6adf70129643cb0eaef5243b94064e400957c5cd","head":{"label":"paulcsmith:ps-easier-override","ref":"ps-easier-override","sha":"6adf70129643cb0eaef5243b94064e400957c5cd","user":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"repo":{"id":31329435,"name":"pact","full_name":"paulcsmith/pact","owner":{"login":"paulcsmith","id":22394,"avatar_url":"https://avatars.githubusercontent.com/u/22394?v=3","gravatar_id":"","url":"https://api.github.com/users/paulcsmith","html_url":"https://github.com/paulcsmith","followers_url":"https://api.github.com/users/paulcsmith/followers","following_url":"https://api.github.com/users/paulcsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulcsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcsmith/subscriptions","organizations_url":"https://api.github.com/users/paulcsmith/orgs","repos_url":"https://api.github.com/users/paulcsmith/repos","events_url":"https://api.github.com/users/paulcsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulcsmith/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulcsmith/pact","description":"Better dependency injection in Elixir","fork":true,"url":"https://api.github.com/repos/paulcsmith/pact","forks_url":"https://api.github.com/repos/paulcsmith/pact/forks","keys_url":"https://api.github.com/repos/paulcsmith/pact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulcsmith/pact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulcsmith/pact/teams","hooks_url":"https://api.github.com/repos/paulcsmith/pact/hooks","issue_events_url":"https://api.github.com/repos/paulcsmith/pact/issues/events{/number}","events_url":"https://api.github.com/repos/paulcsmith/pact/events","assignees_url":"https://api.github.com/repos/paulcsmith/pact/assignees{/user}","branches_url":"https://api.github.com/repos/paulcsmith/pact/branches{/branch}","tags_url":"https://api.github.com/repos/paulcsmith/pact/tags","blobs_url":"https://api.github.com/repos/paulcsmith/pact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulcsmith/pact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulcsmith/pact/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulcsmith/pact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulcsmith/pact/statuses/{sha}","languages_url":"https://api.github.com/repos/paulcsmith/pact/languages","stargazers_url":"https://api.github.com/repos/paulcsmith/pact/stargazers","contributors_url":"https://api.github.com/repos/paulcsmith/pact/contributors","subscribers_url":"https://api.github.com/repos/paulcsmith/pact/subscribers","subscription_url":"https://api.github.com/repos/paulcsmith/pact/subscription","commits_url":"https://api.github.com/repos/paulcsmith/pact/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulcsmith/pact/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulcsmith/pact/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulcsmith/pact/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulcsmith/pact/contents/{+path}","compare_url":"https://api.github.com/repos/paulcsmith/pact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulcsmith/pact/merges","archive_url":"https://api.github.com/repos/paulcsmith/pact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulcsmith/pact/downloads","issues_url":"https://api.github.com/repos/paulcsmith/pact/issues{/number}","pulls_url":"https://api.github.com/repos/paulcsmith/pact/pulls{/number}","milestones_url":"https://api.github.com/repos/paulcsmith/pact/milestones{/number}","notifications_url":"https://api.github.com/repos/paulcsmith/pact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulcsmith/pact/labels{/name}","releases_url":"https://api.github.com/repos/paulcsmith/pact/releases{/id}","created_at":"2015-02-25T18:35:33Z","updated_at":"2015-02-25T18:35:34Z","pushed_at":"2015-02-25T18:38:32Z","git_url":"git://github.com/paulcsmith/pact.git","ssh_url":"git@github.com:paulcsmith/pact.git","clone_url":"https://github.com/paulcsmith/pact.git","svn_url":"https://github.com/paulcsmith/pact","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"BlakeWilliams:master","ref":"master","sha":"42a3d29aafeb1b2694d7b1cde6164b1f438b6f3f","user":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"repo":{"id":28836987,"name":"pact","full_name":"BlakeWilliams/pact","owner":{"login":"BlakeWilliams","id":342554,"avatar_url":"https://avatars.githubusercontent.com/u/342554?v=3","gravatar_id":"","url":"https://api.github.com/users/BlakeWilliams","html_url":"https://github.com/BlakeWilliams","followers_url":"https://api.github.com/users/BlakeWilliams/followers","following_url":"https://api.github.com/users/BlakeWilliams/following{/other_user}","gists_url":"https://api.github.com/users/BlakeWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/BlakeWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlakeWilliams/subscriptions","organizations_url":"https://api.github.com/users/BlakeWilliams/orgs","repos_url":"https://api.github.com/users/BlakeWilliams/repos","events_url":"https://api.github.com/users/BlakeWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/BlakeWilliams/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BlakeWilliams/pact","description":"Better dependency injection in Elixir","fork":false,"url":"https://api.github.com/repos/BlakeWilliams/pact","forks_url":"https://api.github.com/repos/BlakeWilliams/pact/forks","keys_url":"https://api.github.com/repos/BlakeWilliams/pact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlakeWilliams/pact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlakeWilliams/pact/teams","hooks_url":"https://api.github.com/repos/BlakeWilliams/pact/hooks","issue_events_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/events{/number}","events_url":"https://api.github.com/repos/BlakeWilliams/pact/events","assignees_url":"https://api.github.com/repos/BlakeWilliams/pact/assignees{/user}","branches_url":"https://api.github.com/repos/BlakeWilliams/pact/branches{/branch}","tags_url":"https://api.github.com/repos/BlakeWilliams/pact/tags","blobs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlakeWilliams/pact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlakeWilliams/pact/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlakeWilliams/pact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlakeWilliams/pact/statuses/{sha}","languages_url":"https://api.github.com/repos/BlakeWilliams/pact/languages","stargazers_url":"https://api.github.com/repos/BlakeWilliams/pact/stargazers","contributors_url":"https://api.github.com/repos/BlakeWilliams/pact/contributors","subscribers_url":"https://api.github.com/repos/BlakeWilliams/pact/subscribers","subscription_url":"https://api.github.com/repos/BlakeWilliams/pact/subscription","commits_url":"https://api.github.com/repos/BlakeWilliams/pact/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlakeWilliams/pact/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlakeWilliams/pact/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlakeWilliams/pact/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlakeWilliams/pact/contents/{+path}","compare_url":"https://api.github.com/repos/BlakeWilliams/pact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlakeWilliams/pact/merges","archive_url":"https://api.github.com/repos/BlakeWilliams/pact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlakeWilliams/pact/downloads","issues_url":"https://api.github.com/repos/BlakeWilliams/pact/issues{/number}","pulls_url":"https://api.github.com/repos/BlakeWilliams/pact/pulls{/number}","milestones_url":"https://api.github.com/repos/BlakeWilliams/pact/milestones{/number}","notifications_url":"https://api.github.com/repos/BlakeWilliams/pact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlakeWilliams/pact/labels{/name}","releases_url":"https://api.github.com/repos/BlakeWilliams/pact/releases{/id}","created_at":"2015-01-05T23:28:09Z","updated_at":"2015-01-11T23:19:20Z","pushed_at":"2015-01-11T23:19:19Z","git_url":"git://github.com/BlakeWilliams/pact.git","ssh_url":"git@github.com:BlakeWilliams/pact.git","clone_url":"https://github.com/BlakeWilliams/pact.git","svn_url":"https://github.com/BlakeWilliams/pact","homepage":null,"size":152,"stargazers_count":0,"watchers_count":0,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1"},"html":{"href":"https://github.com/BlakeWilliams/pact/pull/1"},"issue":{"href":"https://api.github.com/repos/BlakeWilliams/pact/issues/1"},"comments":{"href":"https://api.github.com/repos/BlakeWilliams/pact/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlakeWilliams/pact/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BlakeWilliams/pact/statuses/6adf70129643cb0eaef5243b94064e400957c5cd"}}}}