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

Remove unnecessary ruby filters#6983

Merged
2 commits merged intomasterfrom
remove_unnecessary_ruby_filters
Feb 24, 2019
Merged

Remove unnecessary ruby filters#6983
2 commits merged intomasterfrom
remove_unnecessary_ruby_filters

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

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

The problem was there's a lot of unnecessary code, specially in specs, that's never run.

What was your diagnosis of the problem?

My diagnosis was that since dropping support for old ruby versions, this code is no longer necessary.

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

My fix is to remove the code.

Why did you choose this fix out of the possible options?

I chose this fix because red is great on diffs.

Copy link
Copy Markdown
Member

@hsbt hsbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

@shushugah
Copy link
Copy Markdown

Why are VCR files enclosed in this PR?

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

@shushugah I could've removed the realworld specs that were specific to old rubies, but I ended up adding them to the current suite instead. The VCR files are the result of the API responses recorded by those tests.

I did this because I thought maybe it was worth running these high level specs in our test suite (even if they test cases that only been problematic on old rubies). But I'm not really sure, I guess we could just remove them.

Since the current master will never run those rubies.
@deivid-rodriguez deivid-rodriguez force-pushed the remove_unnecessary_ruby_filters branch 2 times, most recently from c063649 to 911fe33 Compare February 22, 2019 14:46
@deivid-rodriguez deivid-rodriguez force-pushed the remove_unnecessary_ruby_filters branch from 911fe33 to 0842783 Compare February 22, 2019 14:56
@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Finally went ahead and removed that too, so no VCR files included in this PR anymore.

Copy link
Copy Markdown
Member

@colby-swandale colby-swandale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

@bundlerbot r=colby-swandale

ghost pushed a commit that referenced this pull request Feb 24, 2019
6983: Remove unnecessary ruby filters r=colby-swandale a=deivid-rodriguez

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

The problem was there's a lot of unnecessary code, specially in specs, that's never run.

### What was your diagnosis of the problem?

My diagnosis was that since dropping support for old ruby versions, this code is no longer necessary.

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

My fix is to remove the code.

### Why did you choose this fix out of the possible options?

I chose this fix because red is great on diffs.


Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
@ghost
Copy link
Copy Markdown

ghost commented Feb 24, 2019

Build succeeded

@ghost ghost merged commit 0842783 into master Feb 24, 2019
@deivid-rodriguez deivid-rodriguez deleted the remove_unnecessary_ruby_filters branch February 24, 2019 19:26
ghost pushed a commit that referenced this pull request Jul 15, 2019
7239: Fully remove compatibility guard r=deivid-rodriguez a=deivid-rodriguez

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

The problem was that this code is untested and never run.

### What was your diagnosis of the problem?

My diagnosis was that we can remove it.

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

My fix is to remove the code.

### Why did you choose this fix out of the possible options?

I actually intented to remove this in #6983, but after a discussing it with @simi I decided to keep it (see #6983 (comment)). After a second though I think this is safe to remove and that the potential use case (that the latest bundler is allowed to be installed by a really really old rubygems that didn't support ruby version constraints) is not a problem. The `required_ruby_version` constraint landed in [rubygems 0.6, 15 years ago](ruby/rubygems@240a9d3).

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
ghost pushed a commit to ruby/rubygems that referenced this pull request Mar 11, 2020
7239: Fully remove compatibility guard r=deivid-rodriguez a=deivid-rodriguez

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

The problem was that this code is untested and never run.

### What was your diagnosis of the problem?

My diagnosis was that we can remove it.

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

My fix is to remove the code.

### Why did you choose this fix out of the possible options?

I actually intented to remove this in rubygems/bundler#6983, but after a discussing it with @simi I decided to keep it (see rubygems/bundler#6983 (comment)). After a second though I think this is safe to remove and that the potential use case (that the latest bundler is allowed to be installed by a really really old rubygems that didn't support ruby version constraints) is not a problem. The `required_ruby_version` constraint landed in [rubygems 0.6, 15 years ago](240a9d3).

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
This pull request was closed.
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.

6 participants