From ad3def39e2047159ad87126a73b6546aa08941cc Mon Sep 17 00:00:00 2001 From: slavic Date: Sun, 22 May 2011 11:38:54 +0300 Subject: [PATCH] Changes connected with new version of rb-notifu --- Gemfile | 2 +- lib/guard/notifier.rb | 2 +- spec/guard/notifier_spec.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 675c4b3..1386270 100644 --- a/Gemfile +++ b/Gemfile @@ -15,5 +15,5 @@ end if Config::CONFIG['target_os'] =~ /mswin|mingw/i gem 'win32console', :require => false gem 'rb-fchange', '>= 0.0.2', :require => false - gem 'rb-notifu', '>= 0.0.3', :require => false + gem 'rb-notifu', '>= 0.0.4', :require => false end diff --git a/lib/guard/notifier.rb b/lib/guard/notifier.rb index 93ea92e..ed29eeb 100644 --- a/lib/guard/notifier.rb +++ b/lib/guard/notifier.rb @@ -33,7 +33,7 @@ module Guard Libnotify.show :body => message, :summary => title, :icon_path => image_path(image) when /mswin|mingw/i require_rbnotifu - RbNotifu.show :message => message, :title => title, :type => image_level(image), :display => 3000 + Notifu.show :message => message, :title => title, :type => image_level(image), :time => 3 end end end diff --git a/spec/guard/notifier_spec.rb b/spec/guard/notifier_spec.rb index 17dfdae..f7452bb 100644 --- a/spec/guard/notifier_spec.rb +++ b/spec/guard/notifier_spec.rb @@ -41,11 +41,11 @@ describe Guard::Notifier do if rbnotifu_installed? it "uses rb-notifu on Windows" do @result = -1 - RbNotifu::show :message => "great", :title => 'Guard' do |status| + Notifu::show :message => "great", :title => 'Guard' do |status| @result = status end sleep 1.5 - RbNotifu::ERRORS.include?(@result).should be_false + Notifu::ERRORS.include?(@result).should be_false end else it { should_not be_enabled }