lense 0.1.12 → 0.1.13
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 +2 -2
- 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: b6808f236fc3eff797c2d1e857963018263db129
|
4
|
+
data.tar.gz: 9bf61f347702d02b716ae9e0ebaccfd91a8e2d15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e70642bb06f8ab5ff49047f62c51c71738fd4f156c1c4bcb5261a5cdef3c2f113a0fc5ee6ecb13b00ae66ea8bb3d5387e83307ddc165ac0c1de5a3328122d15c
|
7
|
+
data.tar.gz: 9842afcad0d503fa6dfa9ad0266e381947b6053646bfded41402f399b45c660b9513f16193a256280df7d4ba2bac950ae9f07791196ecb35d0cf487a0eefdd51
|
data/lib/lense.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class LENSE
|
2
2
|
attr_reader :config, :current_course
|
3
3
|
|
4
|
-
VERSION = '0.1.
|
4
|
+
VERSION = '0.1.13'
|
5
5
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
6
6
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
7
7
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -17,7 +17,7 @@ class LENSE
|
|
17
17
|
@config = Psych.load(config_str) || {}
|
18
18
|
|
19
19
|
@current_course = File.read(CURRENT_COURSE_FILE).strip()
|
20
|
-
@current_course = '> NOT SET <'
|
20
|
+
@current_course = '> NOT SET <' if @current_course.empty?
|
21
21
|
end
|
22
22
|
|
23
23
|
def select_course(course)
|