Sha256: 482c1bf9b9b058fa19aad4b3d7d8b1d0c782256bfbf4050633da4522e1c034b2

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

# Guard::Compat

Currently, provides only a test helper for testing custom Guard plugins.

## Installation

Add this to your application's Gemfile:

```ruby
group :development do
  gem 'guard-compat', require: false
end
```

And then execute:

    $ bundle

## Usage

Put the following notes in your plugin file (e.g. `lib/guard/myplugin.rb`):

```ruby
# Do NOT require "guard/plugin"
# It will either be required or a stub will be supplied by the test class
```

And in your plugin tests (e.g. `spec/lib/guard/myplugin_spec.rb`):

```ruby
require 'guard/compat/test/helper'
require 'guard/myplugin'

# And your tests instantiating your plugin go here...
```
## Example

See `lib/guard/example.rb` for an example plugin implementation.


## Contributing

1. Fork it ( https://github.com/guard/guard-compat/fork )
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 a new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-compat-0.0.2 README.md
guard-compat-0.0.1 README.md