{"action":"created","issue":{"url":"https://api.github.com/repos/bundler/bundler/issues/3870","labels_url":"https://api.github.com/repos/bundler/bundler/issues/3870/labels{/name}","comments_url":"https://api.github.com/repos/bundler/bundler/issues/3870/comments","events_url":"https://api.github.com/repos/bundler/bundler/issues/3870/events","html_url":"https://github.com/bundler/bundler/pull/3870","id":96464972,"number":3870,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-22T03:11:03Z","updated_at":"2015-07-22T03:14:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bundler/bundler/pulls/3870","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"},"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"},"comment":{"url":"https://api.github.com/repos/bundler/bundler/issues/comments/123550441","html_url":"https://github.com/bundler/bundler/pull/3870#issuecomment-123550441","issue_url":"https://api.github.com/repos/bundler/bundler/issues/3870","id":123550441,"user":{"login":"indirect","id":78,"avatar_url":"https://avatars.githubusercontent.com/u/78?v=3","gravatar_id":"","url":"https://api.github.com/users/indirect","html_url":"https://github.com/indirect","followers_url":"https://api.github.com/users/indirect/followers","following_url":"https://api.github.com/users/indirect/following{/other_user}","gists_url":"https://api.github.com/users/indirect/gists{/gist_id}","starred_url":"https://api.github.com/users/indirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indirect/subscriptions","organizations_url":"https://api.github.com/users/indirect/orgs","repos_url":"https://api.github.com/users/indirect/repos","events_url":"https://api.github.com/users/indirect/events{/privacy}","received_events_url":"https://api.github.com/users/indirect/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T03:14:58Z","updated_at":"2015-07-22T03:14:58Z","body":"@homu r+"}}