rubeechat 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/rubeechat-install-plugins +5 -5
  2. metadata +3 -3
@@ -51,18 +51,18 @@ Options:
51
51
  @plugins.each do |p|
52
52
  target = File.expand_path(File.join(@plugins_dir, File.basename(p)))
53
53
 
54
- if File.exists?(target)
54
+ begin
55
+ ln_s(p, target)
56
+ $stderr.puts "installed symlink #{target} -> #{p}"
57
+ rescue Errno::EEXIST
55
58
  if @force
56
59
  rm_f(target)
60
+ retry
57
61
  else
58
62
  $stderr.puts "file #{target} already exists, not clobbering without --force option"
59
63
  next
60
64
  end
61
65
  end
62
-
63
- $stderr.puts "installing symlink #{target} -> #{p}"
64
-
65
- ln_s(p, target)
66
66
  end
67
67
  end
68
68
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubeechat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan D. Simms