lense 0.1.41 → 0.1.42

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: 0bbdf21aadab61017389535e532066172719aee1
4
- data.tar.gz: 75a77c016ee8d9123186b82ceb7c4dc0831de854
3
+ metadata.gz: b9e978b74147cbbcf5d6c8c6019c397b82a7b8a6
4
+ data.tar.gz: 40b26a3185024a18098e5d689d5da6c2b956c58d
5
5
  SHA512:
6
- metadata.gz: 9b629be34db17d4e5682bde3ef8d78693eb73687802748b2f8a8d89e371db7aae01188352c833607a5ddfe3d2c949ed82e9721f68f83b0db332f0072dd60a14f
7
- data.tar.gz: ac24c186f30769e59412cbc39a827562c4378926027f90f3788a84a255ec10425647451f2a7ec29f1d7aafd065a59625889b985c953493b94d4fe963410a4859
6
+ metadata.gz: 7ea2f716dc8fa01f8864d8a7a270ca12e33b83f3a216a01392477bacb9c19136e34390f989efefa2d0a66a948a34646e923a2b03d9e672689c062ce3eb22e9f2
7
+ data.tar.gz: 996ba02669125f8f1a43c2eff232b1b013d7e3021d47751188e88d272dc2191f0063a12f1d0541c44f9e0040d486dd9f572a005ed1d629a179c04bcd47ee221e
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.41'
9
+ VERSION = '0.1.42'
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') if File.directory? LOCAL_LENSE_DIR
32
+ @DB = SQLite3::Database.new File.join(LOCAL_LENSE_DIR,'db') if File.file? File.join(LOCAL_LENSE_DIR,'db')
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.41
4
+ version: 0.1.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta