cpr 0.1.0-linux → 0.1.1-linux
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/README.rdoc +2 -2
- data/lib/cpr.rb +1 -1
- data/lib/cpr/notify.rb +1 -1
- data/lib/cpr/notify/growl-notifier.rb +1 -3
- data/lib/cpr/open.rb +4 -0
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -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:
|
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
|
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
data/lib/cpr/notify.rb
CHANGED
@@ -31,7 +31,7 @@ case PLATFORM
|
|
31
31
|
CPR::NOTIFIER = CPR::Mumbles_Notifier.new
|
32
32
|
end
|
33
33
|
when /darwin/
|
34
|
-
if
|
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
|
-
|
7
|
-
@growler.notify "Burble Notification", title, text
|
5
|
+
%x(growlnotify -m #{text} #{title})
|
8
6
|
end
|
9
7
|
|
10
8
|
end
|
data/lib/cpr/open.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2008-06-30 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|