Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Bundler::Plugin::API::Source#to_s having empty source type #4084

Merged

Conversation

ayanko
Copy link
Contributor

@ayanko ayanko commented Nov 25, 2020

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

I found this small bug during developing bundler plugin.

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

The fix is self explanatory and covered with spec.

Make sure the following tasks are checked

@welcome
Copy link

welcome bot commented Nov 25, 2020

Thanks for opening a pull request and helping make RubyGems and Bundler better! Someone from the RubyGems team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality.

We use GitHub Actions to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of GitHub Actions in the PR status window below.

If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #rubygems or #bundler channel on Slack.

For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide

@@ -260,7 +260,7 @@ def to_lock
end

def to_s
"plugin source for #{options[:type]} with uri #{uri}"
"plugin source for #{@type} with uri #{@uri}"
Copy link
Contributor Author

@ayanko ayanko Nov 25, 2020

Choose a reason for hiding this comment

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

Use instance variables to be consistent with #to_lock implementation.

Copy link
Member

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

@deivid-rodriguez deivid-rodriguez changed the title Fix bug in Bundler::Plugin::API::Source#to_s Fix Bundler::Plugin::API::Source#to_s having empty source type Nov 30, 2020
@deivid-rodriguez deivid-rodriguez merged commit f38872c into rubygems:master Dec 1, 2020
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Fix `Bundler::Plugin::API::Source#to_s` having empty source type

(cherry picked from commit f38872c)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Fix `Bundler::Plugin::API::Source#to_s` having empty source type

(cherry picked from commit f38872c)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Fix `Bundler::Plugin::API::Source#to_s` having empty source type

(cherry picked from commit f38872c)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Fix `Bundler::Plugin::API::Source#to_s` having empty source type

(cherry picked from commit f38872c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants