kilt 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.textile CHANGED
@@ -1,10 +1,20 @@
1
1
  h2. ABOUT
2
2
 
3
- Kilt looks for new activities in all your projects and displays them with Growl, so you are up-to-date with everything is happening.
3
+ Kilt looks for new activities in all your projects and displays them with Growl/Libnotify, so you are up-to-date with everything is happening.
4
4
 
5
5
  Example: http://img684.imageshack.us/img684/4875/screenshot20100319at349.png
6
6
 
7
- Support for Linux is comming. If you want to help, please send me a pull request.
7
+ Support for Windows is comming. If you want to help, please send me a pull request.
8
+
9
+ h2. DEPENDENCIES
10
+
11
+ On OS X:
12
+
13
+ * Growl (http://growl.info/)
14
+
15
+ On Linux:
16
+
17
+ * libnotify-bin
8
18
 
9
19
  h2. INSTALLATION
10
20
 
@@ -25,8 +35,6 @@ h2. USAGE
25
35
 
26
36
  h2. TODO
27
37
 
28
- * run kilt-app in the background
29
- * support for Linux
30
38
  * support for Windows
31
39
  * kilt-check (see issues)
32
40
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
data/img/pivotal.png ADDED
Binary file
data/lib/kilt.rb CHANGED
@@ -41,11 +41,12 @@ class Kilt
41
41
 
42
42
  def notify_about(message)
43
43
  title = 'Pivotal Tracker'
44
+ icon_path = File.join File.dirname(__FILE__), '..', 'img', 'pivotal.png'
44
45
  case RUBY_PLATFORM
45
46
  when /linux/
46
47
  system "notify-send '#{title}' '#{message}'"
47
48
  when /darwin/
48
- system "growlnotify -t '#{title}' -m '#{message}'"
49
+ system "growlnotify -t '#{title}' -m '#{message}' --image #{icon_path}"
49
50
  end
50
51
  end
51
52
  end
data/spec/kilt_spec.rb CHANGED
@@ -59,13 +59,16 @@ describe Kilt do
59
59
  end
60
60
 
61
61
  it "should notify growl calling growlnotify with 'Pivotal Tracker' as the name the application, the author and the action" do
62
- @client.should_receive(:system).with("growlnotify -t 'Pivotal Tracker' -m 'Superman finished lorem ipsum'")
62
+ regexp = /growlnotify -t \'Pivotal Tracker\' -m \'Superman finished lorem ipsum\' --image \S+.pivotal.png/
63
+ @client.should_receive(:system).with(regexp)
63
64
  @client.update
64
65
  end
65
66
 
66
67
  it "should notify newer activities at least" do
67
- @client.should_receive(:system).with("growlnotify -t 'Pivotal Tracker' -m 'SpongeBog finished lorem ipsum'").ordered
68
- @client.should_receive(:system).with("growlnotify -t 'Pivotal Tracker' -m 'Superman finished lorem ipsum'").ordered
68
+ regexp = /growlnotify -t \'Pivotal Tracker\' -m \'SpongeBog finished lorem ipsum\' --image \S+.pivotal.png/
69
+ regexp2 = /growlnotify -t \'Pivotal Tracker\' -m \'Superman finished lorem ipsum\' --image \S+.pivotal.png/
70
+ @client.should_receive(:system).with(regexp).ordered
71
+ @client.should_receive(:system).with(regexp2).ordered
69
72
  @client.update
70
73
  end
71
74
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Diego Carrion
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-20 00:00:00 -03:00
17
+ date: 2010-04-29 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -72,6 +72,7 @@ files:
72
72
  - VERSION
73
73
  - bin/kilt-app
74
74
  - bin/kilt-install
75
+ - img/pivotal.png
75
76
  - lib/kilt.rb
76
77
  - spec/data/latests_activities.xml
77
78
  - spec/kilt_spec.rb