Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Make Bundler.setup not make Kernel#gem public in Bundler 2#5838

Merged
bundlerbot merged 1 commit intomasterfrom
seg-make-gem-private
Jul 9, 2017
Merged

Make Bundler.setup not make Kernel#gem public in Bundler 2#5838
bundlerbot merged 1 commit intomasterfrom
seg-make-gem-private

Conversation

@segiddins
Copy link
Copy Markdown
Contributor

What was the end-user problem that led to this PR?

The problem was Bundler 1 accidentally made Kernel#gem public, even though RubyGems declares it as private. Oops. We tried to make it private in 1.13, it broke stuff, so we added in a hack to keep it public.

What was your diagnosis of the problem?

My diagnosis was we could delete that hack in 2.0.

What is your fix for the problem, implemented in this PR?

My fix implements a feature flag that skips making Kernel#gem public, and adds regression tests for gem or require accidentally being made public.

@bundlerbot
Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (presumably #5839) made this pull request unmergeable. Please resolve the merge conflicts.

@segiddins segiddins force-pushed the seg-make-gem-private branch from 5239b8e to b7387ed Compare July 7, 2017 22:52
@indirect
Copy link
Copy Markdown

indirect commented Jul 8, 2017

awesome. @bundlerbot r+

@bundlerbot
Copy link
Copy Markdown
Collaborator

📌 Commit b7387ed has been approved by indirect

@bundlerbot
Copy link
Copy Markdown
Collaborator

⌛ Testing commit b7387ed with merge 757664c...

bundlerbot added a commit that referenced this pull request Jul 8, 2017
Make Bundler.setup not make Kernel#gem public in Bundler 2

### What was the end-user problem that led to this PR?

The problem was Bundler 1 accidentally made `Kernel#gem` public, even though RubyGems declares it as private. Oops. We tried to make it private in 1.13, it broke stuff, so we added in a hack to keep it public.

### What was your diagnosis of the problem?

My diagnosis was we could delete that hack in 2.0.

### What is your fix for the problem, implemented in this PR?

My fix implements a feature flag that skips making `Kernel#gem` public, and adds regression tests for `gem` or `require` accidentally being made public.
@bundlerbot
Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-travis
Approved by: indirect
Pushing 757664c to master...

@bundlerbot bundlerbot merged commit b7387ed into master Jul 9, 2017
@colby-swandale colby-swandale deleted the seg-make-gem-private branch July 9, 2017 02:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants