{"action":"opened","number":13,"pull_request":{"url":"https://api.github.com/repos/soffes/RateLimit/pulls/13","id":45489429,"html_url":"https://github.com/soffes/RateLimit/pull/13","diff_url":"https://github.com/soffes/RateLimit/pull/13.diff","patch_url":"https://github.com/soffes/RateLimit/pull/13.patch","issue_url":"https://api.github.com/repos/soffes/RateLimit/issues/13","number":13,"state":"open","locked":false,"title":"Refixed bug that was a bug and now has tests to show it","user":{"login":"troya2","id":165385,"avatar_url":"https://avatars.githubusercontent.com/u/165385?v=3","gravatar_id":"","url":"https://api.github.com/users/troya2","html_url":"https://github.com/troya2","followers_url":"https://api.github.com/users/troya2/followers","following_url":"https://api.github.com/users/troya2/following{/other_user}","gists_url":"https://api.github.com/users/troya2/gists{/gist_id}","starred_url":"https://api.github.com/users/troya2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troya2/subscriptions","organizations_url":"https://api.github.com/users/troya2/orgs","repos_url":"https://api.github.com/users/troya2/repos","events_url":"https://api.github.com/users/troya2/events{/privacy}","received_events_url":"https://api.github.com/users/troya2/received_events","type":"User","site_admin":false},"body":"I was using the latest version of the library and it wasn't working as expected.  Calling RateLimit.execute() several times, and most notably, just before the time would normally expire, resets the execution time stored in the dictionary and, thus, the block is not executed.  I've updated the test so it passes with this change and fails with the previous code.","created_at":"2015-09-20T04:07:35Z","updated_at":"2015-09-20T04:07:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acc8515e3621b272b65e2f679a400adea5d6e819","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/soffes/RateLimit/pulls/13/commits","review_comments_url":"https://api.github.com/repos/soffes/RateLimit/pulls/13/comments","review_comment_url":"https://api.github.com/repos/soffes/RateLimit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/soffes/RateLimit/issues/13/comments","statuses_url":"https://api.github.com/repos/soffes/RateLimit/statuses/1fc7710a488896de590fad8f44a15b752c02d637","head":{"label":"troya2:master","ref":"master","sha":"1fc7710a488896de590fad8f44a15b752c02d637","user":{"login":"troya2","id":165385,"avatar_url":"https://avatars.githubusercontent.com/u/165385?v=3","gravatar_id":"","url":"https://api.github.com/users/troya2","html_url":"https://github.com/troya2","followers_url":"https://api.github.com/users/troya2/followers","following_url":"https://api.github.com/users/troya2/following{/other_user}","gists_url":"https://api.github.com/users/troya2/gists{/gist_id}","starred_url":"https://api.github.com/users/troya2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troya2/subscriptions","organizations_url":"https://api.github.com/users/troya2/orgs","repos_url":"https://api.github.com/users/troya2/repos","events_url":"https://api.github.com/users/troya2/events{/privacy}","received_events_url":"https://api.github.com/users/troya2/received_events","type":"User","site_admin":false},"repo":{"id":42799436,"name":"RateLimit","full_name":"troya2/RateLimit","owner":{"login":"troya2","id":165385,"avatar_url":"https://avatars.githubusercontent.com/u/165385?v=3","gravatar_id":"","url":"https://api.github.com/users/troya2","html_url":"https://github.com/troya2","followers_url":"https://api.github.com/users/troya2/followers","following_url":"https://api.github.com/users/troya2/following{/other_user}","gists_url":"https://api.github.com/users/troya2/gists{/gist_id}","starred_url":"https://api.github.com/users/troya2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/troya2/subscriptions","organizations_url":"https://api.github.com/users/troya2/orgs","repos_url":"https://api.github.com/users/troya2/repos","events_url":"https://api.github.com/users/troya2/events{/privacy}","received_events_url":"https://api.github.com/users/troya2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/troya2/RateLimit","description":"Simple utility for only executing code every so often.","fork":true,"url":"https://api.github.com/repos/troya2/RateLimit","forks_url":"https://api.github.com/repos/troya2/RateLimit/forks","keys_url":"https://api.github.com/repos/troya2/RateLimit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/troya2/RateLimit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/troya2/RateLimit/teams","hooks_url":"https://api.github.com/repos/troya2/RateLimit/hooks","issue_events_url":"https://api.github.com/repos/troya2/RateLimit/issues/events{/number}","events_url":"https://api.github.com/repos/troya2/RateLimit/events","assignees_url":"https://api.github.com/repos/troya2/RateLimit/assignees{/user}","branches_url":"https://api.github.com/repos/troya2/RateLimit/branches{/branch}","tags_url":"https://api.github.com/repos/troya2/RateLimit/tags","blobs_url":"https://api.github.com/repos/troya2/RateLimit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/troya2/RateLimit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/troya2/RateLimit/git/refs{/sha}","trees_url":"https://api.github.com/repos/troya2/RateLimit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/troya2/RateLimit/statuses/{sha}","languages_url":"https://api.github.com/repos/troya2/RateLimit/languages","stargazers_url":"https://api.github.com/repos/troya2/RateLimit/stargazers","contributors_url":"https://api.github.com/repos/troya2/RateLimit/contributors","subscribers_url":"https://api.github.com/repos/troya2/RateLimit/subscribers","subscription_url":"https://api.github.com/repos/troya2/RateLimit/subscription","commits_url":"https://api.github.com/repos/troya2/RateLimit/commits{/sha}","git_commits_url":"https://api.github.com/repos/troya2/RateLimit/git/commits{/sha}","comments_url":"https://api.github.com/repos/troya2/RateLimit/comments{/number}","issue_comment_url":"https://api.github.com/repos/troya2/RateLimit/issues/comments{/number}","contents_url":"https://api.github.com/repos/troya2/RateLimit/contents/{+path}","compare_url":"https://api.github.com/repos/troya2/RateLimit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/troya2/RateLimit/merges","archive_url":"https://api.github.com/repos/troya2/RateLimit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/troya2/RateLimit/downloads","issues_url":"https://api.github.com/repos/troya2/RateLimit/issues{/number}","pulls_url":"https://api.github.com/repos/troya2/RateLimit/pulls{/number}","milestones_url":"https://api.github.com/repos/troya2/RateLimit/milestones{/number}","notifications_url":"https://api.github.com/repos/troya2/RateLimit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/troya2/RateLimit/labels{/name}","releases_url":"https://api.github.com/repos/troya2/RateLimit/releases{/id}","created_at":"2015-09-20T03:58:32Z","updated_at":"2015-09-20T03:58:34Z","pushed_at":"2015-09-20T04:02:35Z","git_url":"git://github.com/troya2/RateLimit.git","ssh_url":"git@github.com:troya2/RateLimit.git","clone_url":"https://github.com/troya2/RateLimit.git","svn_url":"https://github.com/troya2/RateLimit","homepage":null,"size":319,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"soffes:master","ref":"master","sha":"b1c0d35b1d94de6ea9ba7ed8bd60fc5fea2ae74f","user":{"login":"soffes","id":52870,"avatar_url":"https://avatars.githubusercontent.com/u/52870?v=3","gravatar_id":"","url":"https://api.github.com/users/soffes","html_url":"https://github.com/soffes","followers_url":"https://api.github.com/users/soffes/followers","following_url":"https://api.github.com/users/soffes/following{/other_user}","gists_url":"https://api.github.com/users/soffes/gists{/gist_id}","starred_url":"https://api.github.com/users/soffes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soffes/subscriptions","organizations_url":"https://api.github.com/users/soffes/orgs","repos_url":"https://api.github.com/users/soffes/repos","events_url":"https://api.github.com/users/soffes/events{/privacy}","received_events_url":"https://api.github.com/users/soffes/received_events","type":"User","site_admin":false},"repo":{"id":11291042,"name":"RateLimit","full_name":"soffes/RateLimit","owner":{"login":"soffes","id":52870,"avatar_url":"https://avatars.githubusercontent.com/u/52870?v=3","gravatar_id":"","url":"https://api.github.com/users/soffes","html_url":"https://github.com/soffes","followers_url":"https://api.github.com/users/soffes/followers","following_url":"https://api.github.com/users/soffes/following{/other_user}","gists_url":"https://api.github.com/users/soffes/gists{/gist_id}","starred_url":"https://api.github.com/users/soffes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soffes/subscriptions","organizations_url":"https://api.github.com/users/soffes/orgs","repos_url":"https://api.github.com/users/soffes/repos","events_url":"https://api.github.com/users/soffes/events{/privacy}","received_events_url":"https://api.github.com/users/soffes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soffes/RateLimit","description":"Simple utility for only executing code every so often.","fork":false,"url":"https://api.github.com/repos/soffes/RateLimit","forks_url":"https://api.github.com/repos/soffes/RateLimit/forks","keys_url":"https://api.github.com/repos/soffes/RateLimit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soffes/RateLimit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soffes/RateLimit/teams","hooks_url":"https://api.github.com/repos/soffes/RateLimit/hooks","issue_events_url":"https://api.github.com/repos/soffes/RateLimit/issues/events{/number}","events_url":"https://api.github.com/repos/soffes/RateLimit/events","assignees_url":"https://api.github.com/repos/soffes/RateLimit/assignees{/user}","branches_url":"https://api.github.com/repos/soffes/RateLimit/branches{/branch}","tags_url":"https://api.github.com/repos/soffes/RateLimit/tags","blobs_url":"https://api.github.com/repos/soffes/RateLimit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soffes/RateLimit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soffes/RateLimit/git/refs{/sha}","trees_url":"https://api.github.com/repos/soffes/RateLimit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soffes/RateLimit/statuses/{sha}","languages_url":"https://api.github.com/repos/soffes/RateLimit/languages","stargazers_url":"https://api.github.com/repos/soffes/RateLimit/stargazers","contributors_url":"https://api.github.com/repos/soffes/RateLimit/contributors","subscribers_url":"https://api.github.com/repos/soffes/RateLimit/subscribers","subscription_url":"https://api.github.com/repos/soffes/RateLimit/subscription","commits_url":"https://api.github.com/repos/soffes/RateLimit/commits{/sha}","git_commits_url":"https://api.github.com/repos/soffes/RateLimit/git/commits{/sha}","comments_url":"https://api.github.com/repos/soffes/RateLimit/comments{/number}","issue_comment_url":"https://api.github.com/repos/soffes/RateLimit/issues/comments{/number}","contents_url":"https://api.github.com/repos/soffes/RateLimit/contents/{+path}","compare_url":"https://api.github.com/repos/soffes/RateLimit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soffes/RateLimit/merges","archive_url":"https://api.github.com/repos/soffes/RateLimit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soffes/RateLimit/downloads","issues_url":"https://api.github.com/repos/soffes/RateLimit/issues{/number}","pulls_url":"https://api.github.com/repos/soffes/RateLimit/pulls{/number}","milestones_url":"https://api.github.com/repos/soffes/RateLimit/milestones{/number}","notifications_url":"https://api.github.com/repos/soffes/RateLimit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soffes/RateLimit/labels{/name}","releases_url":"https://api.github.com/repos/soffes/RateLimit/releases{/id}","created_at":"2013-07-09T18:55:17Z","updated_at":"2015-09-20T01:59:20Z","pushed_at":"2015-09-20T04:07:35Z","git_url":"git://github.com/soffes/RateLimit.git","ssh_url":"git@github.com:soffes/RateLimit.git","clone_url":"https://github.com/soffes/RateLimit.git","svn_url":"https://github.com/soffes/RateLimit","homepage":null,"size":319,"stargazers_count":442,"watchers_count":442,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":2,"forks":15,"open_issues":2,"watchers":442,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/soffes/RateLimit/pulls/13"},"html":{"href":"https://github.com/soffes/RateLimit/pull/13"},"issue":{"href":"https://api.github.com/repos/soffes/RateLimit/issues/13"},"comments":{"href":"https://api.github.com/repos/soffes/RateLimit/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/soffes/RateLimit/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/soffes/RateLimit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/soffes/RateLimit/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/soffes/RateLimit/statuses/1fc7710a488896de590fad8f44a15b752c02d637"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":8,"changed_files":2}}