lense 0.1.50 → 0.1.51
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 +9 -1
- 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: b2e960ea4fdeb4bac403e8cb8092d869fb87b126
|
4
|
+
data.tar.gz: fd8b78b616a20b3e767aef5f0294a4bc865260c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f8c413cb19c98d6691d6ee6e6494a920dc11967a2a7e83dfa41ccfdf7a16dbdeb3c7550cd2aa81f110a973e5849922eac5e5eeb10a06ffdfa507f4e77f54a7
|
7
|
+
data.tar.gz: 7eaf559480565335bfd94d5dff2526dab53d4507f09ef84dc2f53d49a9dfbb1e8ec33a443c90ce631bf93c128262847252629c23f51ff4a659403e3d1fc9875a
|
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.51'
|
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')
|
@@ -230,6 +230,14 @@ class LENSE
|
|
230
230
|
def remove(file)
|
231
231
|
end
|
232
232
|
|
233
|
+
def get_commit_log()
|
234
|
+
rows = @DB.execute 'select id, message, hash, created_at from commits order by created_at desc;'
|
235
|
+
rows.each do |row|
|
236
|
+
id, message, hash, created_at = row
|
237
|
+
say "<%= color('#{id}',:blue) %> | #{created_at} | <%= color('#{hash}',:green) %> | #{message}"
|
238
|
+
end
|
239
|
+
end
|
240
|
+
|
233
241
|
private
|
234
242
|
def hash_file(file)
|
235
243
|
Digest::SHA256.hexdigest(File.read(file))
|