Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added credits to .rb files. Added a README file.

  • Loading branch information...
commit 734fd3e5fb73ee3ef9bf9ee91fb0e018e8de7e28 1 parent 26397ac
Pedro Henrique Cavallieri Franceshi authored
View
27 README.rdoc
@@ -0,0 +1,27 @@
+= Notify-OSD-Ruby
+
+== DESCRIPTION:
+
+Library to send Ubuntu's Notify-OSD notifications from Ruby.
+
+== INSTALL:
+
+Download the library and require the notify-osd-ruby.rb file in your code header.
+
+== SYNOPSIS:
+
+Sending a simple notification:
+
+ >> require "notify-osd-ruby.rb"
+ >> notification = Notification.new
+ >> notification.title = "Hello world"
+ >> notification.body = "Testing Notify OSD Ruby, and.. it works!"
+ >> notification.post
+
+You should see now the notification appearing in the screen.
+
+For more informations and examples, take a look at the 'scripts' folder.
+
+== ABOUT:
+
+by pH (Pedro Henrique Cavallieri Franceschi) - iBlogeek.com - 2006-2010 (C) - All Rights Reserved - @pedroh96 - pedrohfranceschi@gmail.com
View
4 lib/notify-osd-ruby.rb
@@ -1,5 +1,9 @@
#!/usr/bin/ruby
+# notify-osd-ruby.rb
+# sends ubuntu's notify-osd notifications
+# by pH (Pedro Henrique Cavallieri Franceschi) - iBlogeek.com - 2006-2010 (C) - All Rights Reserved - @pedroh96 - pedrohfranceschi@gmail.com
+
class Notification
attr_writer :title, :body, :urgency, :expire_time, :icon
View
4 scripts/website_status.rb
@@ -1,5 +1,9 @@
#!/usr/bin/ruby
+# website_status.rb
+# checks a website status and post a Notify-OSD notification.
+# by pH (Pedro Henrique Cavallieri Franceschi) - iBlogeek.com - 2006-2010 (C) - All Rights Reserved - @pedroh96 - pedrohfranceschi@gmail.com
+
require "../lib/notify-osd-ruby.rb"
def website_is_online?(website)
Please sign in to comment.
Something went wrong with that request. Please try again.