vmail 2.8.4 → 2.8.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/vmail.rb CHANGED
@@ -36,19 +36,9 @@ module Vmail
36
36
 
37
37
  working_dir = ENV['VMAIL_HOME'] || "#{ENV['HOME']}/.vmail/default"
38
38
  `mkdir -p #{working_dir}`
39
- # legacy migration: move files into VMAIL_HOME
40
- if Dir.pwd != working_dir
41
- ['.vmailrc', 'vmail.log', 'vmail.db', 'vmail-contacts.txt', 'compose_message.txt', 'attachments'].each do |x|
42
- if File.size?(x)
43
- c = "mv #{x} #{working_dir}"
44
- puts c
45
- %x{#{c}}
46
- end
47
- end
48
- end
49
39
  puts "Changing working directory to #{working_dir}"
50
- Dir.chdir(working_dir)
51
40
  opts = Vmail::Options.new(ARGV)
41
+ Dir.chdir(working_dir)
52
42
  opts.config
53
43
  config = opts.config
54
44
 
data/lib/vmail/options.rb CHANGED
@@ -24,10 +24,10 @@ module Vmail
24
24
  opts.separator ""
25
25
  opts.separator "Specific options:"
26
26
  opts.on("-c", "--config path", String, "Path to config file") do |config_file|
27
- @config_file = config_file
27
+ @config_file = File.expand_path(config_file)
28
28
  end
29
29
  opts.on("-t", "--contacts path", String, "Path to contacts file") do |file|
30
- @contacts_file = file
30
+ @contacts_file = File.expand_path(file, Dir.pwd)
31
31
  end
32
32
  opts.on("-g[n]", "--getcontacts[n]", Integer, "Generate contacts file. n is number of emails to scan (default 500).") do |n|
33
33
  @get_contacts = true
data/lib/vmail/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '2.8.4'
2
+ VERSION = '2.8.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.4
4
+ version: 2.8.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-26 00:00:00.000000000 Z
12
+ date: 2013-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail