{"action":"closed","number":55,"pull_request":{"url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55","id":67797739,"html_url":"https://github.com/projecthydra/jettywrapper/pull/55","diff_url":"https://github.com/projecthydra/jettywrapper/pull/55.diff","patch_url":"https://github.com/projecthydra/jettywrapper/pull/55.patch","issue_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/55","number":55,"state":"closed","locked":false,"title":"Load rake tasks only if defined?(Rake::VERSION)","user":{"login":"tpendragon","id":2806645,"avatar_url":"https://avatars.githubusercontent.com/u/2806645?v=3","gravatar_id":"","url":"https://api.github.com/users/tpendragon","html_url":"https://github.com/tpendragon","followers_url":"https://api.github.com/users/tpendragon/followers","following_url":"https://api.github.com/users/tpendragon/following{/other_user}","gists_url":"https://api.github.com/users/tpendragon/gists{/gist_id}","starred_url":"https://api.github.com/users/tpendragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpendragon/subscriptions","organizations_url":"https://api.github.com/users/tpendragon/orgs","repos_url":"https://api.github.com/users/tpendragon/repos","events_url":"https://api.github.com/users/tpendragon/events{/privacy}","received_events_url":"https://api.github.com/users/tpendragon/received_events","type":"User","site_admin":false},"body":"In jettywrapper.rb, only load rake tasks if defined?(Rake::VERSION).\r\nTesting only defined?(Rake) is brittle because some code libraries\r\nmonkey patch Rake.  If the Rake gem is not loaded, this patching\r\nwill nevertheless cause the Rake constant to spring into existence,\r\nand jettywrapper will mistakenly then attempt to load its Rake tasks,\r\neven though the core Rake functionality is absent.\r\n\r\nA real-world case of this is the JetBrains TeamCity code that is\r\nautomatically loaded when line debugging Ruby code in RubyMine/Intellij.\r\nIf the rake gem is not loaded for a given Run/Debug configuration,\r\nthe session will error out inside the jettywrapper gem.\r\n\r\nCloses #53 \r\n\r\nMay or may not be lifted from #54 (with permission) to get around CLA issues.","created_at":"2016-04-25T22:16:38Z","updated_at":"2016-04-25T22:18:25Z","closed_at":"2016-04-25T22:18:25Z","merged_at":"2016-04-25T22:18:24Z","merge_commit_sha":"385d9e5ba4105ea6074a09367b5fc03c725f9f04","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55/commits","review_comments_url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55/comments","review_comment_url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/55/comments","statuses_url":"https://api.github.com/repos/projecthydra/jettywrapper/statuses/8119315f92448fef27248059759679b812b4af53","head":{"label":"projecthydra:plagiarized_rakefile_fix","ref":"plagiarized_rakefile_fix","sha":"8119315f92448fef27248059759679b812b4af53","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":1548559,"name":"jettywrapper","full_name":"projecthydra/jettywrapper","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/jettywrapper","description":"Convenience tasks and classes for automated testing of hydra heads.","fork":false,"url":"https://api.github.com/repos/projecthydra/jettywrapper","forks_url":"https://api.github.com/repos/projecthydra/jettywrapper/forks","keys_url":"https://api.github.com/repos/projecthydra/jettywrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/jettywrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/jettywrapper/teams","hooks_url":"https://api.github.com/repos/projecthydra/jettywrapper/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/jettywrapper/events","assignees_url":"https://api.github.com/repos/projecthydra/jettywrapper/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/jettywrapper/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/jettywrapper/tags","blobs_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/jettywrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/jettywrapper/languages","stargazers_url":"https://api.github.com/repos/projecthydra/jettywrapper/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/jettywrapper/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/jettywrapper/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/jettywrapper/subscription","commits_url":"https://api.github.com/repos/projecthydra/jettywrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/jettywrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra/jettywrapper/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/jettywrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/jettywrapper/merges","archive_url":"https://api.github.com/repos/projecthydra/jettywrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/jettywrapper/downloads","issues_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/jettywrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/jettywrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/jettywrapper/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/jettywrapper/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra/jettywrapper/deployments","created_at":"2011-03-30T22:53:47Z","updated_at":"2015-07-15T22:58:18Z","pushed_at":"2016-04-25T22:18:25Z","git_url":"git://github.com/projecthydra/jettywrapper.git","ssh_url":"git@github.com:projecthydra/jettywrapper.git","clone_url":"https://github.com/projecthydra/jettywrapper.git","svn_url":"https://github.com/projecthydra/jettywrapper","homepage":"","size":327,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":8,"forks":18,"open_issues":8,"watchers":6,"default_branch":"master"}},"base":{"label":"projecthydra:master","ref":"master","sha":"648c768fe3f02089f37ecaddd7b7d6e844e9e6cd","user":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"repo":{"id":1548559,"name":"jettywrapper","full_name":"projecthydra/jettywrapper","owner":{"login":"projecthydra","id":109426,"avatar_url":"https://avatars.githubusercontent.com/u/109426?v=3","gravatar_id":"","url":"https://api.github.com/users/projecthydra","html_url":"https://github.com/projecthydra","followers_url":"https://api.github.com/users/projecthydra/followers","following_url":"https://api.github.com/users/projecthydra/following{/other_user}","gists_url":"https://api.github.com/users/projecthydra/gists{/gist_id}","starred_url":"https://api.github.com/users/projecthydra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projecthydra/subscriptions","organizations_url":"https://api.github.com/users/projecthydra/orgs","repos_url":"https://api.github.com/users/projecthydra/repos","events_url":"https://api.github.com/users/projecthydra/events{/privacy}","received_events_url":"https://api.github.com/users/projecthydra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projecthydra/jettywrapper","description":"Convenience tasks and classes for automated testing of hydra heads.","fork":false,"url":"https://api.github.com/repos/projecthydra/jettywrapper","forks_url":"https://api.github.com/repos/projecthydra/jettywrapper/forks","keys_url":"https://api.github.com/repos/projecthydra/jettywrapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projecthydra/jettywrapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projecthydra/jettywrapper/teams","hooks_url":"https://api.github.com/repos/projecthydra/jettywrapper/hooks","issue_events_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/events{/number}","events_url":"https://api.github.com/repos/projecthydra/jettywrapper/events","assignees_url":"https://api.github.com/repos/projecthydra/jettywrapper/assignees{/user}","branches_url":"https://api.github.com/repos/projecthydra/jettywrapper/branches{/branch}","tags_url":"https://api.github.com/repos/projecthydra/jettywrapper/tags","blobs_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projecthydra/jettywrapper/statuses/{sha}","languages_url":"https://api.github.com/repos/projecthydra/jettywrapper/languages","stargazers_url":"https://api.github.com/repos/projecthydra/jettywrapper/stargazers","contributors_url":"https://api.github.com/repos/projecthydra/jettywrapper/contributors","subscribers_url":"https://api.github.com/repos/projecthydra/jettywrapper/subscribers","subscription_url":"https://api.github.com/repos/projecthydra/jettywrapper/subscription","commits_url":"https://api.github.com/repos/projecthydra/jettywrapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/projecthydra/jettywrapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/projecthydra/jettywrapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/projecthydra/jettywrapper/contents/{+path}","compare_url":"https://api.github.com/repos/projecthydra/jettywrapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projecthydra/jettywrapper/merges","archive_url":"https://api.github.com/repos/projecthydra/jettywrapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projecthydra/jettywrapper/downloads","issues_url":"https://api.github.com/repos/projecthydra/jettywrapper/issues{/number}","pulls_url":"https://api.github.com/repos/projecthydra/jettywrapper/pulls{/number}","milestones_url":"https://api.github.com/repos/projecthydra/jettywrapper/milestones{/number}","notifications_url":"https://api.github.com/repos/projecthydra/jettywrapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projecthydra/jettywrapper/labels{/name}","releases_url":"https://api.github.com/repos/projecthydra/jettywrapper/releases{/id}","deployments_url":"https://api.github.com/repos/projecthydra/jettywrapper/deployments","created_at":"2011-03-30T22:53:47Z","updated_at":"2015-07-15T22:58:18Z","pushed_at":"2016-04-25T22:18:25Z","git_url":"git://github.com/projecthydra/jettywrapper.git","ssh_url":"git@github.com:projecthydra/jettywrapper.git","clone_url":"https://github.com/projecthydra/jettywrapper.git","svn_url":"https://github.com/projecthydra/jettywrapper","homepage":"","size":327,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":8,"forks":18,"open_issues":8,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55"},"html":{"href":"https://github.com/projecthydra/jettywrapper/pull/55"},"issue":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/issues/55"},"comments":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/projecthydra/jettywrapper/statuses/8119315f92448fef27248059759679b812b4af53"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mjgiarlo","id":131982,"avatar_url":"https://avatars.githubusercontent.com/u/131982?v=3","gravatar_id":"","url":"https://api.github.com/users/mjgiarlo","html_url":"https://github.com/mjgiarlo","followers_url":"https://api.github.com/users/mjgiarlo/followers","following_url":"https://api.github.com/users/mjgiarlo/following{/other_user}","gists_url":"https://api.github.com/users/mjgiarlo/gists{/gist_id}","starred_url":"https://api.github.com/users/mjgiarlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjgiarlo/subscriptions","organizations_url":"https://api.github.com/users/mjgiarlo/orgs","repos_url":"https://api.github.com/users/mjgiarlo/repos","events_url":"https://api.github.com/users/mjgiarlo/events{/privacy}","received_events_url":"https://api.github.com/users/mjgiarlo/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}