Skip to content

Ruby library for GNTP(Growl Notification Transport Protocol) client

Notifications You must be signed in to change notification settings

griffin-stewie/ruby_gntp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby library for GNTP(Growl Notification Transport Protocol)

Sorry, document is not avilable now.

Priority level mappings

  2 Emergency
  1 High
  0 Normal
  -1 Moderate
  -2 Very Low

Usage example:

require 'rubygems'
require 'ruby_gntp'

# -- Standard way
growl = GNTP.new("Ruby/GNTP self test")
growl.register({:notifications => [{
  :name     => "notify",
  :enabled  => true,
}]})

growl.notify({
  :name  => "notify",
  :title => "Congraturation",
  :text  => "Congraturation! You are successful install ruby_gntp.",
  :icon  => "http://www.hatena.ne.jp/users/sn/snaka72/profile.gif",
  :sticky=> true,
  :priority => 2
})

# -- Instant notification
GNTP.notify({
  :app_name => "Instant notify",
  :title    => "Instant notification", 
  :text     => "Instant notification available now.",
  :icon     => "http://www.hatena.ne.jp/users/sn/snaka72/profile.gif",
  :priority => 2
})


About

Ruby library for GNTP(Growl Notification Transport Protocol) client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%