vmail 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/vmail.rb +8 -3
  2. data/lib/vmail/version.rb +1 -1
  3. metadata +3 -3
data/lib/vmail.rb CHANGED
@@ -13,15 +13,20 @@ module Vmail
13
13
 
14
14
  vim = ENV['VMAIL_VIM'] || 'vim'
15
15
  ENV['VMAIL_BROWSER'] ||= if RUBY_PLATFORM.downcase.include?('linux')
16
- if `which gnome-open`.size > 0
17
- 'gnome-open'
16
+ tools = ['gnome-open', 'kfmclient-exec', 'konqueror']
17
+ tool = tools.detect { |tool|
18
+ `which #{tool}`.size > 0
19
+ }
20
+ if tool.nil?
21
+ puts "Can't find a VMAIL_BROWSER tool on your system. Please report this issue."
18
22
  else
19
- 'kfmclient-exec'
23
+ tool
20
24
  end
21
25
  else
22
26
  'open'
23
27
  end
24
28
 
29
+ puts "setting VMAIL_BROWSER to '#{ENV['VMAIL_BROWSER']}'"
25
30
  check_lynx
26
31
 
27
32
  opts = Vmail::Options.new(ARGV)
data/lib/vmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 4
8
- - 0
9
- version: 1.4.0
8
+ - 1
9
+ version: 1.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-15 00:00:00 -05:00
17
+ date: 2011-01-16 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency