sheldon 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b89027c2b9ed6b6279afac46478daeb80519575
4
- data.tar.gz: c28cc8c9b82878fe51dce0f307d30c2e0c9c879d
3
+ metadata.gz: 0afba78030a4494e811effb363a21e26a7468be4
4
+ data.tar.gz: b70fd44995b128c4ff2f47bfb5cca1dda631af89
5
5
  SHA512:
6
- metadata.gz: a405d489433c81ca4fb4a99c0319cd1c6fa19a31d05106183ea2c13535258d828b64c15b76ac1335d990e7186c6778f629d87fa766b158cb49787540d9fcb151
7
- data.tar.gz: 4195d7653dedbaaaf78a365954372009a06834b2217abeb33fcd784f519f769bbaeea62f8f53de55f85029bd4030c717116132d7ede5e62180b422ee232af362
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
- File.symlink?(destination_path)
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)
@@ -1,7 +1,7 @@
1
1
  require "fileutils"
2
2
 
3
3
  class Sheldon
4
- VERSION = "0.3.0".freeze
4
+ VERSION = "0.3.1".freeze
5
5
  attr_reader :brain, :builder
6
6
 
7
7
  def initialize(sheldon_data_dir, opts = {})
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.0
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-05-13 00:00:00.000000000 Z
11
+ date: 2016-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor