Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joenas/guard-pushover
Send Pushover notifications with Guard!
https://github.com/joenas/guard-pushover
Last synced: about 2 months ago
JSON representation
Send Pushover notifications with Guard!
- Host: GitHub
- URL: https://github.com/joenas/guard-pushover
- Owner: joenas
- License: mit
- Created: 2013-03-04T19:18:07.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-07T07:59:32.000Z (almost 12 years ago)
- Last Synced: 2024-10-15T14:27:21.480Z (2 months ago)
- Language: Ruby
- Homepage:
- Size: 188 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Gem Version](https://badge.fury.io/rb/guard-pushover.png)](http://badge.fury.io/rb/guard-pushover)
[![Build Status](https://travis-ci.org/joenas/preek.png)](https://travis-ci.org/joenas/guard-pushover)
[![Coverage Status](https://coveralls.io/repos/joenas/guard-pushover/badge.png?branch=master)](https://coveralls.io/r/joenas/guard-pushover)
[![Dependency Status](https://gemnasium.com/joenas/guard-pushover.png)](https://gemnasium.com/joenas/guard-pushover)# Guard::Pushover
Send [Pushover](https://pushover.net/) notifications with Guard!
## Installation
$ gem install guard-pushover
or# Add to Gemfile
gem 'guard/pushoveror install it yourself
$ git clone [email protected]:joenas/guard-pushover.git
$ cd guard-pushover
$ rake install
## Usage
To generate template:
$ guard init pushover### Examples
```ruby
# Give the filename as it is
guard :pushover, :api_key => '', :user_key => '' do
watch(/lib\/(.*).rb/)
end
#=> "file.rb was changed"# Custom message
guard :pushover, :message => "Yo! I just changed %s!", :api_key => '', :user_key => '' do
watch(/lib\/(.*).rb/)
end
#=> "Yo! I just changed file.rb!"# Do something with the filename before giving it to Pushover
guard :pushover, :api_key => '', :user_key => '' do
watch(/lib\/(.*).rb/) { |match| match[0].uppercase }
end
#=> "FILE.RB was changed"
```### Available options
``` ruby
:title => 'Title' # Custom title, default is 'Guard'
:priority => 1 # Priority, default is 0
:message => "Filename: %s" # Custom message, using sprintf.
:ignore_additions => true # Ignores added files
:ignore_changes => true # Ignores changed files
:ignore_removals => true # Ignores removed files```
Read more on [Pushover API](https://pushover.net/api).
## 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