lense 0.1.33 → 0.1.34

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: 996e95ed901327215357b4ba5919f7812b3760a1
4
- data.tar.gz: 90c60877f0a3fb7da7d509eb5decaca75c95463c
3
+ metadata.gz: 3010ba88fcb12b8b493331f7bcb6c9d71e4c53f1
4
+ data.tar.gz: aa193db95c186394b22819372554a4ade984b72f
5
5
  SHA512:
6
- metadata.gz: 79cdc104137830d20ed0212a73840d3bd89d97d1d42ee61547dfbf1dd6f3c8a04d6833d53e69c030619896a2238d81a0048ec6c599d6d7444ec726416ee37625
7
- data.tar.gz: 5c75ca073d1a093500810c66763d7a4e42beaa22b533fdb0f940e728c8bc48b74b2fe43ea683cddeaa47e395d3c80f5d577c292e11fb35921e7968b4dcbf23fb
6
+ metadata.gz: c0e72703044f065238dfd32cafbaea817adaf178fffe4d83ef57cde5792ec414b9185e696933197bbe343b30567b81872091ec7e41302a9c41cb07f232e62afd
7
+ data.tar.gz: 16cf54c6cfdc3e947dcd51f89ff8a3ea62efc486c7fa4744ca67db19dde9598999bd5950c7c9717a62f069e6c63d18400c9be470edf9008772e2e005f1d00e36
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.33'
9
+ VERSION = '0.1.34'
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')
32
+ @DB = SQLite3::Database.new File.join(LOCAL_LENSE_DIR,'db') if File.directory? LOCAL_LENSE_DIR
33
33
  end
34
34
 
35
35
  def select_course(course)
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.33
4
+ version: 0.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta