lense 0.1.43 → 0.1.44
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: 8fa0474edf8fb46fd1d878863e38c844eaffe97b
|
4
|
+
data.tar.gz: 6e7a4dd34d2acd9992631b29be72e7eca28c8257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55ff5e37cf461d3e0e30770f8ba8e269050d2818ed68a64ca19448fa4bac98d54deb19c22a4e62ec9cfa67c0f4bffc0c8ccd35d1b4b9b3f958945afde82fc6aa
|
7
|
+
data.tar.gz: 73bd8670da6cdbeebab7463ff2c18a37d96ea7364778cbfa5dde1626e341a3d0651f0f1ca4ded5271587a49f4130c3426447d37de58c47cf8084598c2d6ec281
|
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.44'
|
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')
|
@@ -168,7 +168,7 @@ class LENSE
|
|
168
168
|
|
169
169
|
combined_hash = files.map {|f| f[:hash]}.join ''
|
170
170
|
commit_hash = Digest::SHA256.hexdigest "#{DateTime.now.to_s}#{combined_hash}"
|
171
|
-
@DB.execute 'insert into commits (
|
171
|
+
@DB.execute 'insert into commits (hash,message,created_at) values (?,?,?);',[commit_hash,msg,DateTime.now.to_s]
|
172
172
|
commit_id = @DB.last_insert_row_id
|
173
173
|
|
174
174
|
files.each do |file|
|