armin-joellenbeck-smilies 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -2
- data/Rakefile +1 -1
- data/lib/smilies/helper.rb +0 -4
- data/lib/smilies/server.rb +2 -4
- data/smilies.gemspec +1 -1
- data/spec/smilies/helper_spec.rb +0 -5
- metadata +1 -1
data/README
CHANGED
@@ -25,8 +25,8 @@ Then run the binary *smile* with a command line as parameter, for example:
|
|
25
25
|
$ smile rake
|
26
26
|
|
27
27
|
You get a notification if the command line has passed or failed with the
|
28
|
-
last line of its output (
|
29
|
-
The full output is
|
28
|
+
last line of its output (STDOUT and STDERR together).
|
29
|
+
The full output is printed to STDOUT of the notification server.
|
30
30
|
|
31
31
|
For writing a client for the *smilies* notification server see the binary
|
32
32
|
*smile*:
|
data/Rakefile
CHANGED
data/lib/smilies/helper.rb
CHANGED
data/lib/smilies/server.rb
CHANGED
@@ -67,10 +67,8 @@ module Smilies
|
|
67
67
|
@tray_icon.tooltip = summary
|
68
68
|
end
|
69
69
|
if message
|
70
|
-
|
71
|
-
|
72
|
-
file.puts message
|
73
|
-
end
|
70
|
+
puts Helper.seperator_line
|
71
|
+
puts message
|
74
72
|
tail = message.split("\n")[-1]
|
75
73
|
@notification.update(summary, tail, nil)
|
76
74
|
@notification.pixbuf_icon = icon
|
data/smilies.gemspec
CHANGED
data/spec/smilies/helper_spec.rb
CHANGED
@@ -9,11 +9,6 @@ module Smilies
|
|
9
9
|
Helper.seperator_line.length.should == 80
|
10
10
|
end
|
11
11
|
|
12
|
-
it 'should give the output file' do
|
13
|
-
ENV.stub!(:[]).with('USER').and_return('user')
|
14
|
-
Helper.output_file.should == '/tmp/user_smilies.output'
|
15
|
-
end
|
16
|
-
|
17
12
|
it 'should give the smilies directory' do
|
18
13
|
path = Helper.smilies_directory
|
19
14
|
File.directory?(path).should be_true
|