sheldon 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sheldon/brain.rb +2 -2
- data/lib/sheldon/sheldon.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ee0b52887749915716704a2fb573bc331cdc0db
|
4
|
+
data.tar.gz: fbc15b025c4a3fd9168ab2f6792306e4fa149312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b05a5a1b7bee03e34ee6d361e934f9c96cfddde840d6ba7482554862c0b349b0addfc5fcb9bbd3a4aed28e21563d407a3541c4daf7f04057d8992c0f6a6d0e58
|
7
|
+
data.tar.gz: 9bbee9aa6a3f825f7280dd38df53ca342af1eb4df7c8367cd21f6beb8f97b5bdd6a199e83f2d54dfa959e083443ba9a8609c8a63f072c147c3b90619add4e643
|
data/lib/sheldon/brain.rb
CHANGED
@@ -11,8 +11,8 @@ class Brain
|
|
11
11
|
entry = memory.recall(recall_cue)
|
12
12
|
brain_path = brain_path_for_cue(recall_cue)
|
13
13
|
destination_path = add_home(entry[:filepath])
|
14
|
-
FileUtils.rm_r(destination_path) if
|
15
|
-
FileUtils.rm_r(brain_path)
|
14
|
+
FileUtils.rm_r(destination_path) if File.symlink?(destination_path)
|
15
|
+
FileUtils.rm_r(brain_path) if Dir.exist?(brain_path)
|
16
16
|
|
17
17
|
memory.forget(recall_cue)
|
18
18
|
end
|
data/lib/sheldon/sheldon.rb
CHANGED