lense 0.1.41 → 0.1.42
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: b9e978b74147cbbcf5d6c8c6019c397b82a7b8a6
|
4
|
+
data.tar.gz: 40b26a3185024a18098e5d689d5da6c2b956c58d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ea2f716dc8fa01f8864d8a7a270ca12e33b83f3a216a01392477bacb9c19136e34390f989efefa2d0a66a948a34646e923a2b03d9e672689c062ce3eb22e9f2
|
7
|
+
data.tar.gz: 996ba02669125f8f1a43c2eff232b1b013d7e3021d47751188e88d272dc2191f0063a12f1d0541c44f9e0040d486dd9f572a005ed1d629a179c04bcd47ee221e
|
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.42'
|
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') if File.
|
32
|
+
@DB = SQLite3::Database.new File.join(LOCAL_LENSE_DIR,'db') if File.file? File.join(LOCAL_LENSE_DIR,'db')
|
33
33
|
end
|
34
34
|
|
35
35
|
def select_course(course)
|