Sha256: 36737b5afb18f186f5964e1c62b17cd5428a6d2593767ffe75eba194240bf69f

Contents?: true

Size: 933 Bytes

Versions: 5

Compression:

Stored size: 933 Bytes

Contents

# Notifaction

Include terminal and OS notifications in your project.

## Usage

```ruby
gem install notifaction

# ...
require 'notifaction'

# Print an angry red terminal message
# Other methods:
# - success (green)
# - info (blue)
# - note (light blue)
# - warning (yellow)
# - spit (no colour/white)
begin
  call_method
rescue => e
  Notify.error(e.message)
end

# display a bubble notification in OSX and Linux
if install_successful
  Notify.bubble("You can now proceed to use our software...", "Install Successful")
end
```

Plugins extend the base notification functionality, sending messages to online services.  This example will show you how to send log information to a 3rd party service.

```ruby
# ~/.notifaction.yml

hooks:
    - "https://api.yourwebsite.com/messages/receive?token=1am4t0k3n"
```

That's it.  You will start receiving POST requests at the URL(s) listed in the `hooks` section of the configuration file.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notifaction-0.4.4 README.md
notifaction-0.4.3 README.md
notifaction-0.4.2 README.md
notifaction-0.4.1 README.md
notifaction-0.4.0 README.md