sheldon 6.0.2 → 6.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sheldon +3 -2
  3. data/lib/sheldon/sheldon.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe61cb42f008cdbe0ea4384f415214eb20a08f22
4
- data.tar.gz: 87bfc05fb3a49fc4a5b23ddbab0ad332717d83df
3
+ metadata.gz: 77855c60ebc703afb4480d94731609dc83a0454a
4
+ data.tar.gz: 315f4954777abaf94211c00f43fac71b98321b6a
5
5
  SHA512:
6
- metadata.gz: c98cb280a893571e19f74bae7d8a02a5875f46c473aede3f9337a3b5c3ac1b51efb2300dda5277ab269ff3436185d5c52d7c1c56736946a22b6a85029156deda
7
- data.tar.gz: 81d2b925351f51422563397bb0ee20fd71b3200386a7d271e6dc8d62f77663d83cb1c407e9a248ad8d847997e470634df53046e8d6836f4ca6833388e295dab1
6
+ metadata.gz: dd9cc116ae69569aca23a1f8e7ccadc7d705f8c36807950a6cf7104d43578b6f8b4186f1220251596753a8f367700f6abc9d5e2cae219e387e001e9799947263
7
+ data.tar.gz: 2303df8a63f6d709dba17ba03b363d0b087a2744cfb7014793ca0b0739105bf507d70925928c3754639160fbf50c3767710888ca3b5b584f6376c29512e60127
data/bin/sheldon CHANGED
@@ -62,13 +62,14 @@ module CLI
62
62
  option :i, type: :boolean, desc: "Interactive mode - prompts Y/N for each available recall_cue"
63
63
 
64
64
  def recall(recall_cue=nil)
65
+ cue_options = sheldon.list_cues.reject{ |cue| sheldon.recalled?(cue) }
65
66
  if options[:i]
66
- sheldon.list_cues.each do |recall_cue|
67
+ cue_options.each do |recall_cue|
67
68
  answer = prompt.yes?("Recall #{recall_cue}?")
68
69
  with_exception_handling { sheldon.recall(recall_cue) if answer.downcase == "y" }
69
70
  end
70
71
  else
71
- recall_cue ||= cue_picker("What would you like to recall?")
72
+ recall_cue ||= cue_picker("What would you like to recall?", cue_options)
72
73
  with_exception_handling { sheldon.recall(recall_cue) }
73
74
  end
74
75
 
@@ -1,7 +1,7 @@
1
1
  require "fileutils"
2
2
 
3
3
  class Sheldon
4
- VERSION = "6.0.2".freeze
4
+ VERSION = "6.0.3".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: 6.0.2
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Jones