hubeye 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Hubeye
2
- # 0.2.7 since Dec. 4, 2011
3
- VERSION = [0,2,7]
2
+ # 0.2.8 since Dec. 4, 2011
3
+ VERSION = [0,2,8]
4
4
  end
5
5
 
@@ -1,8 +1,8 @@
1
1
  module Notification
2
+ include Environment
2
3
 
3
- dir = File.dirname(__FILE__)
4
4
  CHANGE_ICON = "change_icon.jpg"
5
- CHANGE_ICON_PATH = File.expand_path(File.join(dir, "..", "images", CHANGE_ICON))
5
+ CHANGE_ICON_PATH = (File.join(ROOTDIR, "images", CHANGE_ICON))
6
6
 
7
7
  class Finder
8
8
 
@@ -2,9 +2,9 @@ module Autotest
2
2
  module Growl
3
3
 
4
4
  EXPIRATION_IN_SECONDS = 2
5
- IMG = ::Notification::CHANGE_ICON_PATH
5
+ CHANGE_ICON_PATH = ::Notification::CHANGE_ICON_PATH
6
6
 
7
- def self.growl(title, msg, img=IMG, pri=0, stick="")
7
+ def self.growl(title, msg, img=CHANGE_ICON_PATH, pri=0, stick="")
8
8
  system "growlnotify -n autotest --image #{img} -p #{pri} -m #{msg.inspect} #{title} #{stick}"
9
9
  end
10
10
 
@@ -62,7 +62,7 @@ class Hubeye
62
62
  require "helpers/time"
63
63
  include Helpers::Time
64
64
 
65
- CONFIG_FILE = ENV['HOME'] + "/.hubeye/hubeyerc"
65
+ CONFIG_FILE = File.join(ENV['HOME'], ".hubeye", "hubeyerc")
66
66
  CONFIG = {}
67
67
  # find Desktop notification system
68
68
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubeye
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: