Changes connected with new version of rb-notifu
This commit is contained in:
parent
18d2db9ff1
commit
ad3def39e2
2
Gemfile
2
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
|
||||
|
@ -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
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user