sheldon 6.0.2 → 6.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sheldon +3 -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: 77855c60ebc703afb4480d94731609dc83a0454a
|
4
|
+
data.tar.gz: 315f4954777abaf94211c00f43fac71b98321b6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
data/lib/sheldon/sheldon.rb
CHANGED