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

Tweak rubygems integration #7139

Merged
2 commits merged into from Apr 26, 2019
Merged

Tweak rubygems integration #7139

2 commits merged into from Apr 26, 2019

Conversation

deivid-rodriguez
Copy link
Member

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

The problem was that the rubygems integration file could be more consistent.

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

My fix is to lazily require monitor, just like it's done with the other requires in the file, and to define the methods that check the rubygems version a single time, just like the rest of the methods in the file.

@duckinator
Copy link
Member

The removal of if/else with nested method definitions is always nice. This looks good. 🙂

@deivid-rodriguez
Copy link
Member Author

Thanks! I'll do this!

@bundlerbot r+

ghost pushed a commit that referenced this pull request Apr 26, 2019
7139: Tweak rubygems integration r=deivid-rodriguez a=deivid-rodriguez

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

The problem was that the rubygems integration file could be more consistent.

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

My fix is to lazily require `monitor`, just like it's done with the other requires in the file, and to define the methods that check the rubygems version a single time, just like the rest of the methods in the file. 

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

ghost commented Apr 26, 2019

Build succeeded

@ghost ghost merged commit c0f4d4e into master Apr 26, 2019
@ghost ghost deleted the tweak_rubygems_integration branch April 26, 2019 16:57
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.

None yet

2 participants