{"action":"closed","number":3870,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/3870","id":40526558,"html_url":"https://github.com/bundler/bundler/pull/3870","diff_url":"https://github.com/bundler/bundler/pull/3870.diff","patch_url":"https://github.com/bundler/bundler/pull/3870.patch","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3870","number":3870,"state":"closed","locked":false,"title":"Make sure that monkeypatch of Gem::Platform gets loaded on subshells","user":{"login":"cdwort","id":1014482,"avatar_url":"https://avatars.githubusercontent.com/u/1014482?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwort","html_url":"https://github.com/cdwort","followers_url":"https://api.github.com/users/cdwort/followers","following_url":"https://api.github.com/users/cdwort/following{/other_user}","gists_url":"https://api.github.com/users/cdwort/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwort/subscriptions","organizations_url":"https://api.github.com/users/cdwort/orgs","repos_url":"https://api.github.com/users/cdwort/repos","events_url":"https://api.github.com/users/cdwort/events{/privacy}","received_events_url":"https://api.github.com/users/cdwort/received_events","type":"User","site_admin":false},"body":"When running `spec/cache/gems_spec.rb:213` on master, I got the following error due to the monkey patch of `Gem::Platform::local` in `spec/support/hax.rb` not getting loaded when the spec runs `bundle :install`.\r\n\r\n```\r\n➜ ~/dev/bundler (master)↑⚡ $ /Users/aunger/.rvm/rubies/ruby-2.2.0/bin/ruby -S rspec ./spec/cache/gems_spec.rb:213\r\n\r\nRun options:\r\n  include {:focused=>true, :locations=>{\"./spec/cache/gems_spec.rb\"=>[213]}}\r\n  exclude {:rubygems_master=>true, :rubygems=>\"=< 2.4.5\", :ruby=>\"=< 2.2.0\", :realworld=>true, :sudo=>true}\r\n\r\nbundle cache\r\n  when previously cached\r\n\r\nUpdating files in vendor/cache\r\n    doesn't remove gems that are for another platform (FAILED - 1)\r\n\r\nFailures:\r\n\r\n  1) bundle cache when previously cached doesn't remove gems that are for another platform\r\n     Failure/Error: expect(cached_gem(\"platform_specific-1.0-java\")).to exist\r\n       expected #<Pathname:/Users/aunger/dev/bundler/tmp/bundled_app/vendor/cache/platform_specific-1.0-java.gem> to exist\r\n     # ./spec/cache/gems_spec.rb:221:in `block (4 levels) in <top (required)>'\r\n     # ./spec/support/helpers.rb:305:in `simulate_platform'\r\n     # ./spec/cache/gems_spec.rb:214:in `block (3 levels) in <top (required)>'\r\n\r\nFinished in 1.95 seconds (files took 0.20268 seconds to load)\r\n1 example, 1 failure\r\n\r\nFailed examples:\r\n\r\nrspec ./spec/cache/gems_spec.rb:213 # bundle cache when previously cached doesn't remove gems that are for another platform\r\n```\r\n","created_at":"2015-07-22T03:11:03Z","updated_at":"2015-07-23T00:56:01Z","closed_at":"2015-07-23T00:56:01Z","merged_at":"2015-07-23T00:56:00Z","merge_commit_sha":"2de4d0c337c65ffbb7a0220d3e6d6452efc848e8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bundler/bundler/pulls/3870/commits","review_comments_url":"https://api.github.com/repos/bundler/bundler/pulls/3870/comments","review_comment_url":"https://api.github.com/repos/bundler/bundler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3870/comments","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/48dbc74e34e7779b53bf59e3ec407e8eeccd3db1","head":{"label":"cdwort:fix_strange_failure","ref":"fix_strange_failure","sha":"48dbc74e34e7779b53bf59e3ec407e8eeccd3db1","user":{"login":"cdwort","id":1014482,"avatar_url":"https://avatars.githubusercontent.com/u/1014482?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwort","html_url":"https://github.com/cdwort","followers_url":"https://api.github.com/users/cdwort/followers","following_url":"https://api.github.com/users/cdwort/following{/other_user}","gists_url":"https://api.github.com/users/cdwort/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwort/subscriptions","organizations_url":"https://api.github.com/users/cdwort/orgs","repos_url":"https://api.github.com/users/cdwort/repos","events_url":"https://api.github.com/users/cdwort/events{/privacy}","received_events_url":"https://api.github.com/users/cdwort/received_events","type":"User","site_admin":false},"repo":{"id":34763921,"name":"bundler","full_name":"cdwort/bundler","owner":{"login":"cdwort","id":1014482,"avatar_url":"https://avatars.githubusercontent.com/u/1014482?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwort","html_url":"https://github.com/cdwort","followers_url":"https://api.github.com/users/cdwort/followers","following_url":"https://api.github.com/users/cdwort/following{/other_user}","gists_url":"https://api.github.com/users/cdwort/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwort/subscriptions","organizations_url":"https://api.github.com/users/cdwort/orgs","repos_url":"https://api.github.com/users/cdwort/repos","events_url":"https://api.github.com/users/cdwort/events{/privacy}","received_events_url":"https://api.github.com/users/cdwort/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdwort/bundler","description":"Manage your application's gem dependencies with less pain","fork":true,"url":"https://api.github.com/repos/cdwort/bundler","forks_url":"https://api.github.com/repos/cdwort/bundler/forks","keys_url":"https://api.github.com/repos/cdwort/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdwort/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdwort/bundler/teams","hooks_url":"https://api.github.com/repos/cdwort/bundler/hooks","issue_events_url":"https://api.github.com/repos/cdwort/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/cdwort/bundler/events","assignees_url":"https://api.github.com/repos/cdwort/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/cdwort/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/cdwort/bundler/tags","blobs_url":"https://api.github.com/repos/cdwort/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdwort/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdwort/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdwort/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdwort/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/cdwort/bundler/languages","stargazers_url":"https://api.github.com/repos/cdwort/bundler/stargazers","contributors_url":"https://api.github.com/repos/cdwort/bundler/contributors","subscribers_url":"https://api.github.com/repos/cdwort/bundler/subscribers","subscription_url":"https://api.github.com/repos/cdwort/bundler/subscription","commits_url":"https://api.github.com/repos/cdwort/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdwort/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdwort/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdwort/bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdwort/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/cdwort/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdwort/bundler/merges","archive_url":"https://api.github.com/repos/cdwort/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdwort/bundler/downloads","issues_url":"https://api.github.com/repos/cdwort/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/cdwort/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/cdwort/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/cdwort/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdwort/bundler/labels{/name}","releases_url":"https://api.github.com/repos/cdwort/bundler/releases{/id}","created_at":"2015-04-29T00:47:44Z","updated_at":"2015-04-29T00:47:46Z","pushed_at":"2015-07-22T20:31:04Z","git_url":"git://github.com/cdwort/bundler.git","ssh_url":"git@github.com:cdwort/bundler.git","clone_url":"https://github.com/cdwort/bundler.git","svn_url":"https://github.com/cdwort/bundler","homepage":"http://bundler.io","size":18106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bundler:master","ref":"master","sha":"8d25615ab4c3b72d8d1154d32d5b65e268f16226","user":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"repo":{"id":488514,"name":"bundler","full_name":"bundler/bundler","owner":{"login":"bundler","id":1137638,"avatar_url":"https://avatars.githubusercontent.com/u/1137638?v=3","gravatar_id":"","url":"https://api.github.com/users/bundler","html_url":"https://github.com/bundler","followers_url":"https://api.github.com/users/bundler/followers","following_url":"https://api.github.com/users/bundler/following{/other_user}","gists_url":"https://api.github.com/users/bundler/gists{/gist_id}","starred_url":"https://api.github.com/users/bundler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bundler/subscriptions","organizations_url":"https://api.github.com/users/bundler/orgs","repos_url":"https://api.github.com/users/bundler/repos","events_url":"https://api.github.com/users/bundler/events{/privacy}","received_events_url":"https://api.github.com/users/bundler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bundler/bundler","description":"Manage your application's gem dependencies with less pain","fork":false,"url":"https://api.github.com/repos/bundler/bundler","forks_url":"https://api.github.com/repos/bundler/bundler/forks","keys_url":"https://api.github.com/repos/bundler/bundler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bundler/bundler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bundler/bundler/teams","hooks_url":"https://api.github.com/repos/bundler/bundler/hooks","issue_events_url":"https://api.github.com/repos/bundler/bundler/issues/events{/number}","events_url":"https://api.github.com/repos/bundler/bundler/events","assignees_url":"https://api.github.com/repos/bundler/bundler/assignees{/user}","branches_url":"https://api.github.com/repos/bundler/bundler/branches{/branch}","tags_url":"https://api.github.com/repos/bundler/bundler/tags","blobs_url":"https://api.github.com/repos/bundler/bundler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bundler/bundler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bundler/bundler/git/refs{/sha}","trees_url":"https://api.github.com/repos/bundler/bundler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bundler/bundler/statuses/{sha}","languages_url":"https://api.github.com/repos/bundler/bundler/languages","stargazers_url":"https://api.github.com/repos/bundler/bundler/stargazers","contributors_url":"https://api.github.com/repos/bundler/bundler/contributors","subscribers_url":"https://api.github.com/repos/bundler/bundler/subscribers","subscription_url":"https://api.github.com/repos/bundler/bundler/subscription","commits_url":"https://api.github.com/repos/bundler/bundler/commits{/sha}","git_commits_url":"https://api.github.com/repos/bundler/bundler/git/commits{/sha}","comments_url":"https://api.github.com/repos/bundler/bundler/comments{/number}","issue_comment_url":"https://api.github.com/repos/bundler/bundler/issues/comments{/number}","contents_url":"https://api.github.com/repos/bundler/bundler/contents/{+path}","compare_url":"https://api.github.com/repos/bundler/bundler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bundler/bundler/merges","archive_url":"https://api.github.com/repos/bundler/bundler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bundler/bundler/downloads","issues_url":"https://api.github.com/repos/bundler/bundler/issues{/number}","pulls_url":"https://api.github.com/repos/bundler/bundler/pulls{/number}","milestones_url":"https://api.github.com/repos/bundler/bundler/milestones{/number}","notifications_url":"https://api.github.com/repos/bundler/bundler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bundler/bundler/labels{/name}","releases_url":"https://api.github.com/repos/bundler/bundler/releases{/id}","created_at":"2010-01-26T00:46:38Z","updated_at":"2015-07-22T18:12:03Z","pushed_at":"2015-07-23T00:56:00Z","git_url":"git://github.com/bundler/bundler.git","ssh_url":"git@github.com:bundler/bundler.git","clone_url":"https://github.com/bundler/bundler.git","svn_url":"https://github.com/bundler/bundler","homepage":"http://bundler.io","size":33964,"stargazers_count":2943,"watchers_count":2943,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1335,"mirror_url":null,"open_issues_count":108,"forks":1335,"open_issues":108,"watchers":2943,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3870"},"html":{"href":"https://github.com/bundler/bundler/pull/3870"},"issue":{"href":"https://api.github.com/repos/bundler/bundler/issues/3870"},"comments":{"href":"https://api.github.com/repos/bundler/bundler/issues/3870/comments"},"review_comments":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3870/comments"},"review_comment":{"href":"https://api.github.com/repos/bundler/bundler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bundler/bundler/pulls/3870/commits"},"statuses":{"href":"https://api.github.com/repos/bundler/bundler/statuses/48dbc74e34e7779b53bf59e3ec407e8eeccd3db1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"homu","id":10212162,"avatar_url":"https://avatars.githubusercontent.com/u/10212162?v=3","gravatar_id":"","url":"https://api.github.com/users/homu","html_url":"https://github.com/homu","followers_url":"https://api.github.com/users/homu/followers","following_url":"https://api.github.com/users/homu/following{/other_user}","gists_url":"https://api.github.com/users/homu/gists{/gist_id}","starred_url":"https://api.github.com/users/homu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homu/subscriptions","organizations_url":"https://api.github.com/users/homu/orgs","repos_url":"https://api.github.com/users/homu/repos","events_url":"https://api.github.com/users/homu/events{/privacy}","received_events_url":"https://api.github.com/users/homu/received_events","type":"User","site_admin":false},"comments":17,"review_comments":1,"commits":1,"additions":6,"deletions":1,"changed_files":1}}