0.0
No commit activity in last 3 years
No release in over 3 years
Let Guard send Pushover notifications
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 1.6
>= 0.3.0
 Project Readme

Gem Version Build Status Coverage Status Dependency Status

Guard::Pushover

Send Pushover notifications with Guard!

Installation

$ gem install guard-pushover

or

# Add to Gemfile
gem 'guard/pushover

or install it yourself

$ git clone git@github.com:joenas/guard-pushover.git
$ cd guard-pushover
$ rake install

Usage

To generate template:

$ guard init pushover

Examples

# 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

: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.

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