sheldon 0.5.3 → 0.5.4

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: 6c4ca681cde4c3e1e97c14ed600f95c8cd1df94f
4
- data.tar.gz: 773287608b584d56711980fe1eb0c857d62ced7b
3
+ metadata.gz: 6ee0b52887749915716704a2fb573bc331cdc0db
4
+ data.tar.gz: fbc15b025c4a3fd9168ab2f6792306e4fa149312
5
5
  SHA512:
6
- metadata.gz: 499c4e9efbb84df4914e5a8e7ea6b8e29822c0918b499ca628854a41236e184c3f5e2d1f8f15ea9c3696bb83dda6cc1ea784325718a8feda117c3286b8024b2c
7
- data.tar.gz: b31bf3819de5c9917afec733909e0581d3b8a99b84a3f0a602522cb525e7e7c7b5b9e510c1430f0c11478b491fcd926e05f36aacdb9e197d707e020b3ad11127
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 recalled?(recall_cue)
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
@@ -1,7 +1,7 @@
1
1
  require "fileutils"
2
2
 
3
3
  class Sheldon
4
- VERSION = "0.5.3".freeze
4
+ VERSION = "0.5.4".freeze
5
5
  attr_reader :brain, :builder
6
6
 
7
7
  def initialize(sheldon_data_dir)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sheldon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jones