lense 0.1.50 → 0.1.51

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 +9 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d9d715b6fd1d4872b5dfe5a5616351823acc539
4
- data.tar.gz: 77f0f7a18717cdc4560e47cd5e2a9c21be7e22f1
3
+ metadata.gz: b2e960ea4fdeb4bac403e8cb8092d869fb87b126
4
+ data.tar.gz: fd8b78b616a20b3e767aef5f0294a4bc865260c7
5
5
  SHA512:
6
- metadata.gz: 59f48076b9ea0933ebd55a8419b9a8f0578946e70f4aaca4fc7277b495fb63f9bfaa6ed3cfdea6ab007526007c6483b1fef7b87474dc97cfe3abe3403bab5d8f
7
- data.tar.gz: 0ce003889baafea0885bdc0ad94b41d1a659d6d6d64c0d10cfa97795a037f3c0af67dc6859e64328826aa15016cc308431786afe73a551b57481bd15f39f0345
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.50'
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))
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.50
4
+ version: 0.1.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta