Permalink
Browse files

Changes connected with new version of rb-notifu

  • Loading branch information...
1 parent 18d2db9 commit ad3def39e2047159ad87126a73b6546aa08941cc @stereobooster committed May 22, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 lib/guard/notifier.rb
  3. +2 −2 spec/guard/notifier_spec.rb
View
@@ -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
View
@@ -33,7 +33,7 @@ def self.notify(message, options = {})
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 @@
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 }

0 comments on commit ad3def3

Please sign in to comment.