Skip to content

Merge in simplecov_json_formatter. #1130

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simi
Copy link

@simi simi commented Jun 8, 2025

Hello!

I was working on configuring CI for simplecov_json_formatter and I have realized, it seems probably better to merge it inside the main gem, since it is useless without SimpleCov at all (even having no dependency, but it is referencing SimpleCov in each file). And on the other side, there is no way to install SimpleCov without simplecov_json_formatter, since it is direct dependency.

Happy to get proven wrong, but I don't see any reason to not merge it together, since simplecov_json_formatter as separate gem felt a little out of radar even it is one of the top gems downloaded per month on RubyGems.org (currently with ~7M monthly downloads).

I have ported JSON formatter 1:1, let the rubocop fix the style and added verbose: true additional argument to format method to keep original behaviour of putting message to stdout using puts, but also to be able to keep it less verbose during testing.

This gem was identified by RubyElders as one of the crucial for whole RubyGems.org ecosystem and it is crucial to get well maintained dependencies. I'm preparing blog post with more details on this effort.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@simi
Copy link
Author

simi commented Jun 8, 2025

ℹ️ test failure seems unrelated, but I'm trying to fix it at #1131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant