Permalink
Browse files

New examples

  • Loading branch information...
1 parent c6ef692 commit b572aa52a228258b2c734fa28c070c280941f474 @tj committed Apr 13, 2009
Showing with 8 additions and 24 deletions.
  1. +8 −24 examples/growl.rb
View
@@ -7,29 +7,13 @@
imagepath = File.dirname(__FILE__) + '/../spec/fixtures/image.png'
iconpath = File.dirname(__FILE__) + '/../spec/fixtures/icon.icns'
-Growl.notify do |notification|
- notification.sticky!
- notification.title = 'Sticky'
- notification.message = 'Im sticky'
-end
-
-Growl.notify do
- sticky!
- self.title = 'Image'
- self.message = 'I have an image as an icon'
- self.image = imagepath
-end
-
include Growl
-# notify 'Image processing complete', :icon => :jpeg ; sleep 0.2
-# notify 'Kicks ass!', :title => 'Growl', :iconpath => iconpath ; sleep 0.2
-# notify_info 'New email received' ; sleep 0.2
-# notify_ok 'Deployment complete' ; sleep 0.2
-# notify_error 'Deployment failure' ; sleep 0.2
-
-notify 'Safari icon', :icon => :Safari ; sleep 0.2
-notify 'Jpeg icon', :icon => :jpeg ; sleep 0.2
-notify 'Image icon', :icon => imagepath ; sleep 0.2
-notify 'Icns icon', :icon => iconpath ; sleep 0.2
-notify 'Path extname icon', :icon => 'foo.rb' ; sleep 0.2
+notify_info 'New email received', :sticky => true, :title => 'Some app'; sleep 0.2
+notify_ok 'Deployment complete' ; sleep 0.2
+notify_error 'Deployment failure' ; sleep 0.2
+notify 'Safari icon', :icon => :Safari ; sleep 0.2
+notify 'Jpeg icon', :icon => :jpeg ; sleep 0.2
+notify 'Image icon', :icon => imagepath ; sleep 0.2
+notify 'Icns icon', :icon => iconpath ; sleep 0.2
+notify 'Path extname icon', :icon => 'foo.rb' ; sleep 0.2

0 comments on commit b572aa5

Please sign in to comment.