New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

guard-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guard-ruby

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Guard-Ruby

This is a trivial guard extension that runs ruby files. You might use it to develop benchmarks or other small one-off scripts that don't require much ceremony.

Install

Install the gem:

$ gem install guard-ruby

Or add it to your Gemfile:

gem 'guard-ruby'

Add an example to your Guardfile:

$ guard init ruby

Usage

Please read the Guard usage doc

Guardfile

The original motivation was for developing benchmarks - single file ruby projects that should be re-run each time they change.

guard 'ruby' do
  # run any benchmarking files
  watch(/bench.*\.rb/)
end

If you provide a block, the return value will be used as the script to run.

guard 'ruby' do
  # run a program when it's data is changed
  watch(/.*\.csv/) { 'convert.rb' }
end

FAQs

Package last updated on 29 Oct 2016

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