hilfer 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,14 @@
1
+ 2008-04-11 13:37 panic
2
+
3
+ * [r3487] trunk/Manifest.txt, trunk/Rakefile,
4
+ trunk/lib/hilfer/version.rb:
5
+ add xfce_terminal to Manifest.txt
6
+
7
+ 2008-04-11 09:36 panic
8
+
9
+ * [r3486] trunk/Rakefile:
10
+ clean up ChangeLog'
11
+
1
12
  2008-04-11 09:27 panic
2
13
 
3
14
  * [r3485] trunk/README.txt:
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.9.5 / 2008-04-11
2
+
3
+ * include xfce_terminal.rb in Manifest.txt. Doh.
4
+
1
5
  === 0.9.4 / 2008-04-11
2
6
 
3
7
  * add --version flag
data/Manifest.txt CHANGED
@@ -18,3 +18,4 @@ lib/hilfer/tree_viewer.rb
18
18
  lib/hilfer/tree_viewer_window.rb
19
19
  lib/hilfer/version.rb
20
20
  lib/hilfer/xterm.rb
21
+ lib/hilfer/xfce_terminal.rb
data/Rakefile CHANGED
@@ -31,4 +31,10 @@ task 'ChangeLog' do |t|
31
31
  `svn2cl -i --break-before-msg`
32
32
  end
33
33
 
34
+ CLEAN.include 'ChangeLog'
35
+
34
36
  task :docs => 'ChangeLog'
37
+
38
+ task :version do
39
+ puts Hilfer::VERSION
40
+ end
@@ -1,3 +1,3 @@
1
1
  module Hilfer
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
3
3
  end
@@ -0,0 +1,24 @@
1
+ # check for existence of Terminal
2
+ unless File.exist?( '/usr/bin/Terminal' )
3
+ raise 'XFCE Terminal not available at /usr/bin/Terminal'
4
+ end
5
+
6
+ =begin rdoc
7
+ Knows how to lauch XFCE Terminal with mutiple tabs,
8
+ each opened on a different directory
9
+ =end
10
+ class XfceTerminal
11
+ def launch( dirs )
12
+ # construct arguments and launch
13
+ # Terminal --working-directory ~/projects --tab --working-directory /projects/bin
14
+ args = [ 'Terminal' ]
15
+ dirs.uniq.each do |x|
16
+ # first one will be a window so no arg needed, subsequent ones are tabs
17
+ args << '--tab' if args.size > 1
18
+ args << "--working-directory"
19
+ args << x
20
+ end
21
+ puts "args: #{args.inspect}"
22
+ system( *args )
23
+ end
24
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hilfer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Anderson
@@ -53,6 +53,7 @@ files:
53
53
  - lib/hilfer/tree_viewer_window.rb
54
54
  - lib/hilfer/version.rb
55
55
  - lib/hilfer/xterm.rb
56
+ - lib/hilfer/xfce_terminal.rb
56
57
  has_rdoc: true
57
58
  homepage: http://www.rubyforge.org/projects/hilfer
58
59
  post_install_message: