{"action":"closed","number":3254,"pull_request":{"url":"https://api.github.com/repos/exercism/exercism.io/pulls/3254","id":93724500,"html_url":"https://github.com/exercism/exercism.io/pull/3254","diff_url":"https://github.com/exercism/exercism.io/pull/3254.diff","patch_url":"https://github.com/exercism/exercism.io/pull/3254.patch","issue_url":"https://api.github.com/repos/exercism/exercism.io/issues/3254","number":3254,"state":"closed","locked":false,"title":"Rework rake tasks to remove Bundle.require","user":{"login":"esparta","id":1037088,"avatar_url":"https://avatars.githubusercontent.com/u/1037088?v=3","gravatar_id":"","url":"https://api.github.com/users/esparta","html_url":"https://github.com/esparta","followers_url":"https://api.github.com/users/esparta/followers","following_url":"https://api.github.com/users/esparta/following{/other_user}","gists_url":"https://api.github.com/users/esparta/gists{/gist_id}","starred_url":"https://api.github.com/users/esparta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esparta/subscriptions","organizations_url":"https://api.github.com/users/esparta/orgs","repos_url":"https://api.github.com/users/esparta/repos","events_url":"https://api.github.com/users/esparta/events{/privacy}","received_events_url":"https://api.github.com/users/esparta/received_events","type":"User","site_admin":false},"body":"The goal of this PR is remove the use of Bundle.require on the rake task to minimize the required time to run any given task.\r\n\r\nIn order to achieve the goal was needed:\r\n\r\n- Create a top-level rake task `connection` and make it required by other rake task that need connection to the database\r\n- Remove the duplicated required and calls needed to create the connection\r\n- Require 'manually' all the dependencies on gems and classes\r\n\r\nNote: At some points I had to require `lib/exercism` which requires all the models, it needs to be done like that because some classes has dependency to `Exercism.uuid`.\r\n\r\nPlease comment on any issue.\r\n\r\nP.S. I manually run every rake task with no errors, but some internal work (inside loops) may or may not be executed/processed because preconditions/data.","created_at":"2016-11-15T08:58:38Z","updated_at":"2016-11-24T17:42:05Z","closed_at":"2016-11-24T17:42:05Z","merged_at":null,"merge_commit_sha":"0f4edfe85d7927725f5dfce1ec4df3f47b1a5b26","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/exercism/exercism.io/pulls/3254/commits","review_comments_url":"https://api.github.com/repos/exercism/exercism.io/pulls/3254/comments","review_comment_url":"https://api.github.com/repos/exercism/exercism.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exercism/exercism.io/issues/3254/comments","statuses_url":"https://api.github.com/repos/exercism/exercism.io/statuses/d2f2d87c3c57d2b7285f17904cb777bd63d9365d","head":{"label":"esparta:rework_rake_tasks","ref":"rework_rake_tasks","sha":"d2f2d87c3c57d2b7285f17904cb777bd63d9365d","user":{"login":"esparta","id":1037088,"avatar_url":"https://avatars.githubusercontent.com/u/1037088?v=3","gravatar_id":"","url":"https://api.github.com/users/esparta","html_url":"https://github.com/esparta","followers_url":"https://api.github.com/users/esparta/followers","following_url":"https://api.github.com/users/esparta/following{/other_user}","gists_url":"https://api.github.com/users/esparta/gists{/gist_id}","starred_url":"https://api.github.com/users/esparta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esparta/subscriptions","organizations_url":"https://api.github.com/users/esparta/orgs","repos_url":"https://api.github.com/users/esparta/repos","events_url":"https://api.github.com/users/esparta/events{/privacy}","received_events_url":"https://api.github.com/users/esparta/received_events","type":"User","site_admin":false},"repo":{"id":71628625,"name":"exercism.io","full_name":"esparta/exercism.io","owner":{"login":"esparta","id":1037088,"avatar_url":"https://avatars.githubusercontent.com/u/1037088?v=3","gravatar_id":"","url":"https://api.github.com/users/esparta","html_url":"https://github.com/esparta","followers_url":"https://api.github.com/users/esparta/followers","following_url":"https://api.github.com/users/esparta/following{/other_user}","gists_url":"https://api.github.com/users/esparta/gists{/gist_id}","starred_url":"https://api.github.com/users/esparta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esparta/subscriptions","organizations_url":"https://api.github.com/users/esparta/orgs","repos_url":"https://api.github.com/users/esparta/repos","events_url":"https://api.github.com/users/esparta/events{/privacy}","received_events_url":"https://api.github.com/users/esparta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esparta/exercism.io","description":"Level up your programming skills. Want to contribute? Read this: https://github.com/exercism/exercism.io#contributing-to-exercism","fork":true,"url":"https://api.github.com/repos/esparta/exercism.io","forks_url":"https://api.github.com/repos/esparta/exercism.io/forks","keys_url":"https://api.github.com/repos/esparta/exercism.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esparta/exercism.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esparta/exercism.io/teams","hooks_url":"https://api.github.com/repos/esparta/exercism.io/hooks","issue_events_url":"https://api.github.com/repos/esparta/exercism.io/issues/events{/number}","events_url":"https://api.github.com/repos/esparta/exercism.io/events","assignees_url":"https://api.github.com/repos/esparta/exercism.io/assignees{/user}","branches_url":"https://api.github.com/repos/esparta/exercism.io/branches{/branch}","tags_url":"https://api.github.com/repos/esparta/exercism.io/tags","blobs_url":"https://api.github.com/repos/esparta/exercism.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esparta/exercism.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esparta/exercism.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/esparta/exercism.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esparta/exercism.io/statuses/{sha}","languages_url":"https://api.github.com/repos/esparta/exercism.io/languages","stargazers_url":"https://api.github.com/repos/esparta/exercism.io/stargazers","contributors_url":"https://api.github.com/repos/esparta/exercism.io/contributors","subscribers_url":"https://api.github.com/repos/esparta/exercism.io/subscribers","subscription_url":"https://api.github.com/repos/esparta/exercism.io/subscription","commits_url":"https://api.github.com/repos/esparta/exercism.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/esparta/exercism.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/esparta/exercism.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/esparta/exercism.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/esparta/exercism.io/contents/{+path}","compare_url":"https://api.github.com/repos/esparta/exercism.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esparta/exercism.io/merges","archive_url":"https://api.github.com/repos/esparta/exercism.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esparta/exercism.io/downloads","issues_url":"https://api.github.com/repos/esparta/exercism.io/issues{/number}","pulls_url":"https://api.github.com/repos/esparta/exercism.io/pulls{/number}","milestones_url":"https://api.github.com/repos/esparta/exercism.io/milestones{/number}","notifications_url":"https://api.github.com/repos/esparta/exercism.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esparta/exercism.io/labels{/name}","releases_url":"https://api.github.com/repos/esparta/exercism.io/releases{/id}","deployments_url":"https://api.github.com/repos/esparta/exercism.io/deployments","created_at":"2016-10-22T09:09:50Z","updated_at":"2016-10-22T09:10:24Z","pushed_at":"2016-11-17T07:04:50Z","git_url":"git://github.com/esparta/exercism.io.git","ssh_url":"git@github.com:esparta/exercism.io.git","clone_url":"https://github.com/esparta/exercism.io.git","svn_url":"https://github.com/esparta/exercism.io","homepage":"http://exercism.io","size":15432,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"exercism:master","ref":"master","sha":"c0dcfca21632c8b2980a82c6b8c85f98eadae303","user":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"repo":{"id":10395188,"name":"exercism.io","full_name":"exercism/exercism.io","owner":{"login":"exercism","id":5624255,"avatar_url":"https://avatars.githubusercontent.com/u/5624255?v=3","gravatar_id":"","url":"https://api.github.com/users/exercism","html_url":"https://github.com/exercism","followers_url":"https://api.github.com/users/exercism/followers","following_url":"https://api.github.com/users/exercism/following{/other_user}","gists_url":"https://api.github.com/users/exercism/gists{/gist_id}","starred_url":"https://api.github.com/users/exercism/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exercism/subscriptions","organizations_url":"https://api.github.com/users/exercism/orgs","repos_url":"https://api.github.com/users/exercism/repos","events_url":"https://api.github.com/users/exercism/events{/privacy}","received_events_url":"https://api.github.com/users/exercism/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exercism/exercism.io","description":"Level up your programming skills. Want to contribute? Read this: https://github.com/exercism/exercism.io#contributing-to-exercism","fork":false,"url":"https://api.github.com/repos/exercism/exercism.io","forks_url":"https://api.github.com/repos/exercism/exercism.io/forks","keys_url":"https://api.github.com/repos/exercism/exercism.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exercism/exercism.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exercism/exercism.io/teams","hooks_url":"https://api.github.com/repos/exercism/exercism.io/hooks","issue_events_url":"https://api.github.com/repos/exercism/exercism.io/issues/events{/number}","events_url":"https://api.github.com/repos/exercism/exercism.io/events","assignees_url":"https://api.github.com/repos/exercism/exercism.io/assignees{/user}","branches_url":"https://api.github.com/repos/exercism/exercism.io/branches{/branch}","tags_url":"https://api.github.com/repos/exercism/exercism.io/tags","blobs_url":"https://api.github.com/repos/exercism/exercism.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exercism/exercism.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exercism/exercism.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/exercism/exercism.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exercism/exercism.io/statuses/{sha}","languages_url":"https://api.github.com/repos/exercism/exercism.io/languages","stargazers_url":"https://api.github.com/repos/exercism/exercism.io/stargazers","contributors_url":"https://api.github.com/repos/exercism/exercism.io/contributors","subscribers_url":"https://api.github.com/repos/exercism/exercism.io/subscribers","subscription_url":"https://api.github.com/repos/exercism/exercism.io/subscription","commits_url":"https://api.github.com/repos/exercism/exercism.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/exercism/exercism.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/exercism/exercism.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/exercism/exercism.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/exercism/exercism.io/contents/{+path}","compare_url":"https://api.github.com/repos/exercism/exercism.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exercism/exercism.io/merges","archive_url":"https://api.github.com/repos/exercism/exercism.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exercism/exercism.io/downloads","issues_url":"https://api.github.com/repos/exercism/exercism.io/issues{/number}","pulls_url":"https://api.github.com/repos/exercism/exercism.io/pulls{/number}","milestones_url":"https://api.github.com/repos/exercism/exercism.io/milestones{/number}","notifications_url":"https://api.github.com/repos/exercism/exercism.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exercism/exercism.io/labels{/name}","releases_url":"https://api.github.com/repos/exercism/exercism.io/releases{/id}","deployments_url":"https://api.github.com/repos/exercism/exercism.io/deployments","created_at":"2013-05-31T00:53:50Z","updated_at":"2016-11-24T17:34:26Z","pushed_at":"2016-11-24T17:41:57Z","git_url":"git://github.com/exercism/exercism.io.git","ssh_url":"git@github.com:exercism/exercism.io.git","clone_url":"https://github.com/exercism/exercism.io.git","svn_url":"https://github.com/exercism/exercism.io","homepage":"http://exercism.io","size":29557,"stargazers_count":2488,"watchers_count":2488,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":757,"mirror_url":null,"open_issues_count":99,"forks":757,"open_issues":99,"watchers":2488,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/3254"},"html":{"href":"https://github.com/exercism/exercism.io/pull/3254"},"issue":{"href":"https://api.github.com/repos/exercism/exercism.io/issues/3254"},"comments":{"href":"https://api.github.com/repos/exercism/exercism.io/issues/3254/comments"},"review_comments":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/3254/comments"},"review_comment":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exercism/exercism.io/pulls/3254/commits"},"statuses":{"href":"https://api.github.com/repos/exercism/exercism.io/statuses/d2f2d87c3c57d2b7285f17904cb777bd63d9365d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":6,"review_comments":4,"commits":11,"additions":55,"deletions":120,"changed_files":9}}
{"actor":{"display_login":"kytrinyx"}}