lense 0.2.29 → 0.2.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +3 -5
- 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: 953da94c7701f72c2620d5eb93b9a578132ea526
|
4
|
+
data.tar.gz: 91f0167fc7b1d688a63f401853dbd4cc980b8221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f554c8551f97407141f391e95eb428628d7e44a39ec2f8b9d919c5a58dc4e56f335fa8b9e6bc67a75c8c5faaef5be672c785132bfb9e71cad0cc84885dbea6a
|
7
|
+
data.tar.gz: 207538dcbabbcbcd71be07893840c30cc7eb41a0a085f83461fa1a68b9d2e35329f9373d3953d56f3cde92c853d954c594baba32de1c0cad7aad84aec0659f98
|
data/lib/lense.rb
CHANGED
@@ -7,7 +7,7 @@ require 'base64'
|
|
7
7
|
class LENSE
|
8
8
|
attr_reader :config, :current_course, :lense_file_hash
|
9
9
|
|
10
|
-
VERSION = '0.2.
|
10
|
+
VERSION = '0.2.30'
|
11
11
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
12
12
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
13
13
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -79,11 +79,9 @@ class LENSE
|
|
79
79
|
answer_prefix = '<%= color("Ans: ",:red) %>'
|
80
80
|
question_separator = '<%= color("---",:green) %>'
|
81
81
|
|
82
|
-
|
83
|
-
test_str = File.file?(test_file) ? File.read(test_file) : ''
|
84
|
-
lense_file = Psych.load(test_str) || {}
|
82
|
+
lense = read_lensefile
|
85
83
|
|
86
|
-
|
84
|
+
lense ['lesson_plan'].each do |lesson|
|
87
85
|
say question_separator
|
88
86
|
say "#{say_prefix} #{lesson['say']}" if lesson['say']
|
89
87
|
|