Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

duvet

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duvet

  • 0.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Duvet

Install with:

$ gem install duvet

Then add this to the very top of your test/helper.rb (or similar)

require 'duvet'
Duvet.start

Because duvet won't work for Ruby 1.8 you may want to rescue the error and move on,

begin
  require 'duvet'
  Duvet.start
rescue LoadError
  # ignore error
end

You can change the defaults by passing options to Duvet.start, for example:

Duvet.start :dir => 'coverage', :filter => 'app/lib'

Where :dir is the directory to write the coverage to and :filter is a string that a files path must match against. A regular expression can be used for more control, but most of the time a simple string will suffice.

You can see the output of running duvet on itself here.

Credits

This gem was created because I read this blog post on the AT&T engineering site by Aaron Patterson.

Copyright (c) 2010-11 Joshua Hawxwell. See LICENSE for details.

FAQs

Package last updated on 21 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc