examples/base.rb in ruby-libnotify-0.4.1.1 vs examples/base.rb in ruby-libnotify-0.5.0
- old
+ new
@@ -17,13 +17,9 @@
require 'rubygems'
require 'RNotify'
end
Notify.init("Test1")
-test = Notify::Notification.new("Test 1", "This is a test", nil, nil)
+test = Notify::Notification.new("Test 1", "This is a test", nil)
test.timeout= 5000 # 5 seconds
test.show
-sleep(5)
-
-test.close
-Notify.uninit