myosx 0.2.4 → 0.2.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5452e9a2e38902cd1a893f6ede7202e367bf2baf
4
- data.tar.gz: 725ffe4995b8f4e21a0295bfaff50865214febd4
3
+ metadata.gz: 7bc356d6a6f9bdd6f53ad4de7e3258dde8a9b190
4
+ data.tar.gz: ee12badd6701898bce97a50c99812513eae924c2
5
5
  SHA512:
6
- metadata.gz: 0a2c76eece56bdfe1418e2f5afd498026bdc440593f57866d68df9ba9858c1a0c1e5be155bfa0d4ea4bdc2c5082ffc2d09380ccf3f1443744947e4b54e9361fd
7
- data.tar.gz: c6a8f2ce2c54427a85fe2cb76d86fb047e837821ea2787af45a2ef9cd69b21ec3b6ad970b8adbd5b8c86ba50c65712ae6537c88408e6f858ab7ba69a75a48d2a
6
+ metadata.gz: 24346471392611a3497088bee58f59b32165f2ad204d42fc3e985f0527c5c580cb6344b13add44d4ff04c52f4023581f2c54339a0ba8d784fd4f656791aaac4d
7
+ data.tar.gz: 32d2bfa8940daf8c3f0cc4308510c3fc18f11bee7c47e9f4cb3dd7e9c7752c09e5efc6a635c13636dd1cf67b81cf2cf3f5639f8817a28fdc56c945958909335e
@@ -32,16 +32,16 @@ class Dotfiles < Config
32
32
  dest = File.expand_path(dest)
33
33
  raise "#{file} doesn't exist! Check your config or repo" unless File.exist?(file)
34
34
 
35
+ if File.symlink?(dest)
36
+ File.delete(dest)
37
+ end
38
+
35
39
  if File.exist?(dest)
36
40
  backup_file = "#{dest}.#{Date.today.to_s}"
37
41
  puts "Creating backup of #{dest} called: #{backup_file}"
38
42
  File.rename(dest, backup_file)
39
43
  end
40
44
 
41
- if File.symlink?(dest)
42
- File.delete(dest)
43
- end
44
-
45
45
  puts "Linking #{file} to #{dest}"
46
46
  File.symlink(file, dest)
47
47
  end
data/lib/myosx/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Myosx
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myosx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laura Martin