lense 0.2.29 → 0.2.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +3 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32b80c5720711c9d533557f97ca7f963dd54b7ed
4
- data.tar.gz: 832a16ab6845e4f0975a047b6a7483a967922ca5
3
+ metadata.gz: 953da94c7701f72c2620d5eb93b9a578132ea526
4
+ data.tar.gz: 91f0167fc7b1d688a63f401853dbd4cc980b8221
5
5
  SHA512:
6
- metadata.gz: 8af90a2b804ead7f631de699a20df422fb7a5b8826615b161e6522e342200a8afb5215ac4bb534d4fc54b786b1214527e0b2493c8fc0a8bee108a12145588299
7
- data.tar.gz: 6890ad54e3fe692e55117aa290f4f5e3ac6ce9f5ea61db2a138364265c3a1afdfaa7c3b892cc8b07f355327b21edf8520538a306ba89968c53542cda31f08126
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.29'
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
- test_file = 'data/mfwvl1.yaml'
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
- lense_file['lesson_plan'].each do |lesson|
84
+ lense ['lesson_plan'].each do |lesson|
87
85
  say question_separator
88
86
  say "#{say_prefix} #{lesson['say']}" if lesson['say']
89
87
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.29
4
+ version: 0.2.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta