powder 0.3.0.pre3 → 0.3.0.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/powder +8 -3
  3. data/lib/powder/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e4a35b1d405232538646453110547b32aba37b0
4
- data.tar.gz: 17f115261003f7f702b3a0f7a099a41562ae4f46
3
+ metadata.gz: de83ef5a6b218c71e71c9a79b8231732a645178b
4
+ data.tar.gz: 414b1caa88fb2d4a3958a57a4f24f4e3fcc7a01b
5
5
  SHA512:
6
- metadata.gz: e63e2ca725be0350fd318a099a9329324ed3705c8f43d55505a10cc6705f09352bf0f8b59de3688a22ba570233f4b6571f79141d355632facc1e1769b3fd51b4
7
- data.tar.gz: b80d074eec145223790399be6df763ccab57bc3f44741c2e734db2b2fb7be66c88757e4e38e140304d4aa6e0514f5bdb91267460da20b83301f9d2175ff415ea
6
+ metadata.gz: 986a5d53c6773bac1a603440d0167be9c9d1759fccb12efe72f39a5569c229af5beb02d1e9f2df49b6b851bfd45d65a4fbecb5f53339abd3ffb408b875d8e176
7
+ data.tar.gz: 59e56d01b063789f3da56ad87ea906ea9a3f6babc83b54090ef40a77140377316d0e0cf73a6598a17913e7630e448543f8c6cd4b076b48986035f0bc871adc13
data/bin/powder CHANGED
@@ -229,9 +229,14 @@ module Powder
229
229
 
230
230
  desc "cleanup", "Clean up invalid symbolic link"
231
231
  def cleanup
232
- Dir[POW_PATH + "/*"].map { |symlink|
233
- FileUtils.rm(symlink) unless File.exists? File.readlink(symlink)
234
- }
232
+ Dir[POW_PATH + "/*"].map do |symlink|
233
+ begin
234
+ FileUtils.rm(symlink) unless File.exists?(File.readlink(symlink))
235
+ rescue
236
+ # Not all platforms support File.readlink, thus throwing exceptions.
237
+ # Unfortunately we can't decide then if a symlink is invalid.
238
+ end
239
+ end
235
240
  end
236
241
 
237
242
  desc "install", "Installs or updates pow"
@@ -1,3 +1,3 @@
1
1
  module Powder
2
- VERSION = "0.3.0.pre3"
2
+ VERSION = "0.3.0.pre4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: powder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre3
4
+ version: 0.3.0.pre4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash