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 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 (stdout and stderr together).
29
- The full output is appended to the file <b>/tmp/<user>.smilies.output</b>.
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
@@ -6,7 +6,7 @@ require 'rake/rdoctask'
6
6
  task :default => [:spec]
7
7
 
8
8
 
9
- task :all => [:spec, :doc]
9
+ task :all => [:spec, :doc, :gem]
10
10
 
11
11
 
12
12
  Spec::Rake::SpecTask.new do |t|
@@ -6,10 +6,6 @@ module Smilies
6
6
  "=" * 24 + ' ' + Time.now.to_s + ' ' + "=" * 24
7
7
  end
8
8
 
9
- def self.output_file
10
- "/tmp/#{ENV['USER']}_smilies.output"
11
- end
12
-
13
9
  def self.smilies_directory
14
10
  File.dirname(__FILE__) + '/../../icons'
15
11
  end
@@ -67,10 +67,8 @@ module Smilies
67
67
  @tray_icon.tooltip = summary
68
68
  end
69
69
  if message
70
- File.open(Helper.output_file, 'a') do |file|
71
- file.puts Helper.seperator_line
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'smilies'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
4
4
  s.summary = 'Notification for linux desktops'
5
5
  s.author = 'Armin Joellenbeck'
6
6
  s.email = 'armin@joellenbeck.net'
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armin-joellenbeck-smilies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Armin Joellenbeck