lense 0.1.43 → 0.1.44

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f42192d4855d217e54d3dfc54dc0de59450e7b42
4
- data.tar.gz: 410af56c080571b1c261b431239121cb90822bc6
3
+ metadata.gz: 8fa0474edf8fb46fd1d878863e38c844eaffe97b
4
+ data.tar.gz: 6e7a4dd34d2acd9992631b29be72e7eca28c8257
5
5
  SHA512:
6
- metadata.gz: ea1a22f30d4addf2799d89b2beee9ff20da740814fb2391e7f5f70f8a911d41f2011c438f049207c4097bb3b7a62814bd0972cd5ff521d2746c9dcecc8b9fb07
7
- data.tar.gz: 30299fc6253c6effab8171832d0cdfb4fdf7aa4274519c983f68707f5855721e1e9b7fa0f56bc3ee9ca00015b47be3ad76c4778c6a55b585d975c658e7ed4c0d
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.43'
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 (dependency_id,hash,created_at) values (?,?,?);',[dependency_id,commit_hash,DateTime.now.to_s]
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|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.43
4
+ version: 0.1.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta