No description
  • Ruby 97.1%
  • Gherkin 2.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cezary Baginski f85e71ce67 Merge pull request #801 from frankenbot/master
Update redirects
2015-11-02 11:02:41 +01:00
bin fix RuboCop offense 2015-07-27 19:47:37 +02:00
config add guard profile for Cucumber 2015-03-29 18:42:57 +02:00
features fix cucumber tests to work with Aruba 0.9.x 2015-08-22 13:46:45 +02:00
images Update GNTP notifier. (Fixes #231) 2012-09-20 10:31:52 +02:00
lib dont reload when plugin templates change 2015-10-17 21:48:03 +02:00
man remove --show-deprecations from man page 2014-11-26 02:32:57 +01:00
spec Use a new NoSuchPlugin error when a plugin cannot be found 2015-10-08 19:35:17 +02:00
vendor/hound/config/style_guides update HoundCi styleguide 2015-06-27 13:20:09 +02:00
.gitignore Satisfy rubocop 2015-02-05 14:36:37 +01:00
.hound.yml update Rubocop config to match Hound [ci skip] 2014-11-14 15:12:51 +01:00
.rspec refresh rspec config + update files 2014-11-03 23:14:47 +01:00
.rubocop.yml ignore Guardfile in rubocop.yml 2014-12-15 01:24:14 +01:00
.rubocop_todo.yml fix RuboCop offenses and update styleguide 2015-03-14 21:49:40 +01:00
.travis.yml stop testing MRIs other than latest 2015-06-27 13:50:16 +02:00
.yardopts yard doc fixes [ci skip] 2014-12-01 12:58:11 +01:00
CHANGELOG.md Bump to 2.0.0.pre.2 2013-09-17 23:34:43 +02:00
CONTRIBUTING.md remove duplicated sections in docs 2014-10-17 01:40:04 +02:00
Gemfile fix cucumber tests to work with Aruba 0.9.x 2015-08-22 13:46:45 +02:00
guard.gemspec remove large guard.png from gem 2015-07-05 01:54:28 +02:00
Guardfile move Guardfile to config and symlink 2014-11-26 02:33:56 +01:00
LICENSE Include "The MIT License (MIT)" in the LICENSE 2014-03-12 20:26:42 +01:00
Rakefile refactor Rakefile 2014-12-15 01:24:14 +01:00
README.md Update redirects 2015-11-01 22:11:59 -08:00

Guard is currently accepting more maintainers. Please read this if you're interested in joining the team.

Guard

Gem Version Build Status Dependency Status Code Climate Test Coverage Inline docs

Guard Icon Guard automates various tasks by running custom rules whenever file or directories are modified.

It's frequently used by software developers, web designers, writers and other specialists to avoid mundane, repetitive actions and commands such as "relaunching" tools after changing source files or configurations.

Common use cases include: an IDE replacement, web development tools, designing "smart" and "responsive" build systems/workflows, automating various project tasks and installing/monitoring various system services.

For a full categorized list of known Guard plugins, look here: https://github.com/guard/guard/wiki/Guard-Plugins

If you have any questions about Guard or want to share some information with the Guard community, please go to one of the following places:

Before you file an issue, make sure you have read the known issues and file an issue sections that contains some important information.

Features

  • File system changes handled by our awesome Listen gem.
  • Support for visual system notifications.
  • Huge eco-system with more than 220 Guard plugins.
  • Tested against Ruby 1.9.3, 2.0.0, 2.1.0, JRuby & Rubinius.

Screencast

Two nice screencasts are available to help you get started:

Installation

The simplest way to install Guard is to use Bundler.

Add Guard (and any other dependencies) to a Gemfile in your projects root:

group :development do
  gem 'guard'
end

then install it by running Bundler:

$ bundle

Generate an empty Guardfile with:

$ bundle exec guard init

Run Guard through Bundler with:

$ bundle exec guard

If you are on Mac OS X and have problems with either Guard not reacting to file changes or Pry behaving strange, then you should add proper Readline support to Ruby on Mac OS X.

Avoiding gem/dependency problems

It's important that you always run Guard through Bundler to avoid errors.

If you're getting sick of typing bundle exec all the time, try one of the following:

  • (Recommended) Running bundle binstub guard will create bin/guard in your project, which means running bin/guard (tab completion will save you a key stroke or two) will have the exact same result as bundle exec guard.

  • Or, for RubyGems >= 2.2.0 (at least, though the more recent the better), simply set the RUBYGEMS_GEMDEPS environment variable to - (for autodetecting the Gemfile in the current or parent directories) or set it to the path of your Gemfile.

(To upgrade RubyGems from RVM, use the rvm rubygems command).

NOTE: this Rubygems feature is still under development still lacks many features of bundler

Add Guard plugins

Guard is now ready to use and you should add some Guard plugins for your specific use. Start exploring the many Guard plugins available by browsing the Guard organization on GitHub or by searching for guard- on RubyGems.

When you have found a Guard plugin of your interest, add it to your Gemfile:

group :development do
  gem '<guard-plugin-name>'
end

See the init section of the Guard usage below to see how to install the supplied plugin template that you can install and to suit your needs.

Usage

Guard is run from the command line. Please open your terminal and go to your project work directory.

Look here for a full list of Guard commands

Start

Just launch Guard inside your Ruby or Rails project with:

$ bundle exec guard

Guard will look for a Guardfile in your current directory. If it does not find one, it will look in your $HOME directory for a .Guardfile.

Please look here to see all the command line options for Guard

Interactions

Please read how to interact with Guard on the console and which signals Guard accepts

Guardfile DSL

For details on extending your Guardfile look at Guardfile examples or look at a list of commands Guardfile-DSL / Configuring-Guard

Issues

Before reporting a problem, please read how to File an issue.

Development / Contributing

See the Contributing Guide.

Author

Thibaud Guillaume-Gentil (@thibaudgg)

Core Team

Contributors

https://github.com/guard/guard/graphs/contributors