talks 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -1
- data/lib/talks/configuration.rb +5 -2
- data/lib/talks/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -12,7 +12,8 @@ Check the notifier's
|
|
12
12
|
find what notifier you want to use - there is support for every OS!
|
13
13
|
|
14
14
|
I added in all sections of this readme notes about usage notifier
|
15
|
-
functionality.
|
15
|
+
functionality. And small
|
16
|
+
[readme](https://github.com/ruby-talks/talks#using-talks-with-growl) about usage with Growl notifier.
|
16
17
|
|
17
18
|
Sponsored by Evil Martians <http://evilmartians.com>
|
18
19
|
|
@@ -180,6 +181,27 @@ Talks.voices[:espeak]
|
|
180
181
|
]
|
181
182
|
```
|
182
183
|
|
184
|
+
### Using talks with Growl
|
185
|
+
|
186
|
+
For [Growl](http://growl.info) you should be a Mac user. And you should have Growl version >= 1.3.
|
187
|
+
|
188
|
+
If it's or for you - you need to do several steps for using talks with Growl:
|
189
|
+
|
190
|
+
* Install the [growlnotify](http://growl.cachefly.net/GrowlNotify-1.3.zip) script
|
191
|
+
|
192
|
+
* Open the Growl Preference Panel (System > Growl) and activate “Listen
|
193
|
+
for incoming notifications” and “Allow remote application registration” (in Growl v1.4 present only first option - activate only her)
|
194
|
+
options on the Network tab
|
195
|
+
|
196
|
+
* I don't really remember - but maybe you should restart your machine
|
197
|
+
after that :)
|
198
|
+
|
199
|
+
Now you can use talks with Growl support:
|
200
|
+
|
201
|
+
```bash
|
202
|
+
$: talking -bn 'This is before notification wich will shown with growl'
|
203
|
+
```
|
204
|
+
|
183
205
|
## Who?
|
184
206
|
|
185
207
|
I did it myself.
|
data/lib/talks/configuration.rb
CHANGED
@@ -62,8 +62,11 @@ module Talks
|
|
62
62
|
def notifier_for(command_name)
|
63
63
|
command = command_name.to_sym
|
64
64
|
(options[:notifier] != 'off') &&
|
65
|
-
|
66
|
-
|
65
|
+
(
|
66
|
+
!options[command] ||
|
67
|
+
(options[command] &&
|
68
|
+
(options[command][:notifier] != 'off'))
|
69
|
+
)
|
67
70
|
end
|
68
71
|
|
69
72
|
def notify_message_for(command_name, position = :after)
|
data/lib/talks/version.rb
CHANGED