cpr 0.1.0-linux → 0.1.1-linux

Sign up to get free protection for your applications and to get access to all the features.
@@ -61,7 +61,7 @@ If you want to use everything, just require 'cpr'. It's easy.
61
61
 
62
62
  Linux: none... yet :)
63
63
 
64
- Mac: the ruby-growl gem.
64
+ Mac: growlnotify (http://growl.info/documentation/growlnotify.php)
65
65
 
66
66
  Windows: the ruby-snarl gem.
67
67
 
@@ -73,7 +73,7 @@ Windows: the ruby-snarl gem.
73
73
 
74
74
  (The MIT License)
75
75
 
76
- Copyright (c) 2008 FIXME full name
76
+ Copyright (c) 2008 Tommy Morgan
77
77
 
78
78
  Permission is hereby granted, free of charge, to any person obtaining
79
79
  a copy of this software and associated documentation files (the
data/lib/cpr.rb CHANGED
@@ -5,5 +5,5 @@ require 'cpr/notify'
5
5
  require 'cpr/open'
6
6
 
7
7
  class CPR
8
- VERSION = "0.1.0"
8
+ VERSION = "0.1.1"
9
9
  end
@@ -31,7 +31,7 @@ case PLATFORM
31
31
  CPR::NOTIFIER = CPR::Mumbles_Notifier.new
32
32
  end
33
33
  when /darwin/
34
- if `which growl` != ""
34
+ if %x(which growlnotify).match /^\// # gotta start with a / to indicate it found it in the path
35
35
  require 'cpr/notify/growl-notifier'
36
36
  CPR::NOTIFIER = CPR::Growl_Notifier.new
37
37
  end
@@ -1,10 +1,8 @@
1
- require 'ruby-growl'
2
1
  class CPR
3
2
  class Growl_Notifier
4
3
 
5
4
  def notify(title, text)
6
- @growler ||= Growl.new "localhost", "burble", ["Burble Notification"]
7
- @growler.notify "Burble Notification", title, text
5
+ %x(growlnotify -m #{text} #{title})
8
6
  end
9
7
 
10
8
  end
@@ -1,6 +1,10 @@
1
1
  class CPR
2
2
  class << self
3
3
 
4
+ ##
5
+ #opens the specified item in the OS's default editor (i.e. CPR::OPEN_CMD)
6
+ #path is a resource locator for any kind of resource - a URL to a web page,
7
+ #or a path to something on the filesystem.
4
8
  def open(path)
5
9
  `#{OPEN_CMD} #{path}`
6
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: linux
6
6
  authors:
7
7
  - Tommy Morgan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-28 00:00:00 -04:00
12
+ date: 2008-06-30 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15