lense 0.1.33 → 0.1.34
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: 3010ba88fcb12b8b493331f7bcb6c9d71e4c53f1
|
4
|
+
data.tar.gz: aa193db95c186394b22819372554a4ade984b72f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0e72703044f065238dfd32cafbaea817adaf178fffe4d83ef57cde5792ec414b9185e696933197bbe343b30567b81872091ec7e41302a9c41cb07f232e62afd
|
7
|
+
data.tar.gz: 16cf54c6cfdc3e947dcd51f89ff8a3ea62efc486c7fa4744ca67db19dde9598999bd5950c7c9717a62f069e6c63d18400c9be470edf9008772e2e005f1d00e36
|
data/lib/lense.rb
CHANGED
@@ -6,7 +6,7 @@ require 'sqlite3'
|
|
6
6
|
class LENSE
|
7
7
|
attr_reader :config, :current_course, :lense_file_hash
|
8
8
|
|
9
|
-
VERSION = '0.1.
|
9
|
+
VERSION = '0.1.34'
|
10
10
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
11
11
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
12
12
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -29,7 +29,7 @@ class LENSE
|
|
29
29
|
@current_course = File.read(CURRENT_COURSE_FILE).strip()
|
30
30
|
@current_course = '> NOT SET <' if @current_course.empty?
|
31
31
|
@lense_file_hash = Digest::SHA256.hexdigest(File.read(LENSE_FILE)) if File.file?(LENSE_FILE)
|
32
|
-
@DB = SQLite3::Database.new File.join(LOCAL_LENSE_DIR,'db')
|
32
|
+
@DB = SQLite3::Database.new File.join(LOCAL_LENSE_DIR,'db') if File.directory? LOCAL_LENSE_DIR
|
33
33
|
end
|
34
34
|
|
35
35
|
def select_course(course)
|