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

guard-preserves

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guard-preserves

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Guard::Preserves

This gem allows you to make changes to files in the preserves repository and have those changes automatically compiled if in a coffeescript file. The resulting files will then be copied to a directory with the same name as the modified package located in the directory specified by the destination option.

Installation

Add this line to your application's Gemfile:

gem 'guard-preserves'

And then execute:

$ bundle

Usage

The destination must be provided. An optional app_root can be set, but defaults to the location of the Guardfile. If no watch is provided, all .js and .coffee files in the directory will be watched.

guard 'preserves', destination: 'public/foo/lib' do
  #optional watch('foo/src/foo.coffee')
end

To start the guard run:

bundle exec guard --watchdir [absolute path to directory to watch]  --guardfile [absolute path to directory with guardfile]

For example, given a Rails application named 'cool-stuff' in the same parent directory as the preserves repo with the jam assets stored in app/assets/javascripts/lib with a Guardfile named Preserves-Guardfile that looks like

guard 'preserves', destination: 'app/assets/javascripts/lib'

run bundle exec guard --watchdir ~/source/preserves --guardfile ~/source/cool-stuff/Preserves-Guardfile to start the guard.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 24 May 2013

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