Changes connected with new version of rb-notifu

This commit is contained in:
slavic 2011-05-22 11:38:54 +03:00
parent 18d2db9ff1
commit ad3def39e2
3 changed files with 4 additions and 4 deletions

View File

@ -15,5 +15,5 @@ end
if Config::CONFIG['target_os'] =~ /mswin|mingw/i if Config::CONFIG['target_os'] =~ /mswin|mingw/i
gem 'win32console', :require => false gem 'win32console', :require => false
gem 'rb-fchange', '>= 0.0.2', :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 end

View File

@ -33,7 +33,7 @@ module Guard
Libnotify.show :body => message, :summary => title, :icon_path => image_path(image) Libnotify.show :body => message, :summary => title, :icon_path => image_path(image)
when /mswin|mingw/i when /mswin|mingw/i
require_rbnotifu 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 end
end end

View File

@ -41,11 +41,11 @@ describe Guard::Notifier do
if rbnotifu_installed? if rbnotifu_installed?
it "uses rb-notifu on Windows" do it "uses rb-notifu on Windows" do
@result = -1 @result = -1
RbNotifu::show :message => "great", :title => 'Guard' do |status| Notifu::show :message => "great", :title => 'Guard' do |status|
@result = status @result = status
end end
sleep 1.5 sleep 1.5
RbNotifu::ERRORS.include?(@result).should be_false Notifu::ERRORS.include?(@result).should be_false
end end
else else
it { should_not be_enabled } it { should_not be_enabled }