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

Add SimpleCov into the mix to get C0 coverage stats. #53

Closed
wants to merge 1 commit into from
Closed

Add SimpleCov into the mix to get C0 coverage stats. #53

wants to merge 1 commit into from

Conversation

MrJoy
Copy link
Contributor

@MrJoy MrJoy commented Dec 8, 2013

Plug in SimpleCov, as even the minimal guarantees provided by C0 coverage can prove handy for a security-related tool.

@@ -1,3 +1,10 @@
version = RUBY_VERSION.split(/\./).map(&:to_i)
if((version[0] == 1 && version[1] >= 9) || (version[0] >= 2))
Copy link

Choose a reason for hiding this comment

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

This patch looks fine other than this bit. Why restrict simplecov to Ruby 1.. when 2.1.2 is current?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note the || (version[0] >= 2) portion.

It's restricted to Ruby 1.9.x, or 2.0.0+ -- so any subsequent version, including a hypothetical 3.0 would pass.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The first conditional is there only to ensure that it isn't utilized on Ruby 1.8.x or below, as SimpleCov does not work on versions prior to 1.9.

Copy link
Member

Choose a reason for hiding this comment

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

How about let's just make bundler-audit >= 1.9.1 and omit any version checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If that's the consensus, I'll amend the PR tonight.

@MrJoy
Copy link
Contributor Author

MrJoy commented Jun 26, 2014

Closing. Will reopen a rebased version of this, with the specified changes momentarily.

@MrJoy MrJoy closed this Jun 26, 2014
@MrJoy MrJoy deleted the add_coverage_analysis branch June 26, 2014 22:07
@MrJoy MrJoy mentioned this pull request Jun 26, 2014
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

3 participants