sheldon 0.3.0 → 0.3.1
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 +4 -4
- data/lib/sheldon/brain.rb +2 -1
- data/lib/sheldon/sheldon.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0afba78030a4494e811effb363a21e26a7468be4
|
|
4
|
+
data.tar.gz: b70fd44995b128c4ff2f47bfb5cca1dda631af89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb9d000e17243f6ea9d82a233e7a7c4769d046e17b879097e5ffbe1a7a939da9d87e9cddec94913595a6f5194cc1dc1af688fb995fd20f37860c43bbee812dfc
|
|
7
|
+
data.tar.gz: 233d738e092355e4f10fb87c45622cf3713cc37bdb7405dd5c2268e63734ce8a09f9a1b1aa69daed75bba106e02110a12cabcc9ea60bd44d303aaf95e4416361
|
data/lib/sheldon/brain.rb
CHANGED
|
@@ -29,7 +29,8 @@ class Brain
|
|
|
29
29
|
entry = memory.recall(recall_cue)
|
|
30
30
|
destination_path = add_home(entry[:filepath])
|
|
31
31
|
destination_dir = File.dirname(destination_path)
|
|
32
|
-
|
|
32
|
+
# Check for presence of symlink and that the symlink isn't broken
|
|
33
|
+
File.symlink?(destination_path) && File.exists?(File.readlink(destination_path))
|
|
33
34
|
end
|
|
34
35
|
|
|
35
36
|
def has_cue?(recall_cue)
|
data/lib/sheldon/sheldon.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sheldon
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Jones
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|