lense 0.1.12 → 0.1.13

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: b2f6a99dc6de96fde636673c2fbcfadf8475b6e1
4
- data.tar.gz: a19fc904d01a61a14bc1355f81cb1666d1e1edd0
3
+ metadata.gz: b6808f236fc3eff797c2d1e857963018263db129
4
+ data.tar.gz: 9bf61f347702d02b716ae9e0ebaccfd91a8e2d15
5
5
  SHA512:
6
- metadata.gz: 1e69bbc34c591b3415f30ac2ca0b738b5e0aee217a8012ce97c31e6028513bcd83955649dc8c2bdeabfaae1d2bb0544d28c0189cd21bbeba4a57bcfa59f17661
7
- data.tar.gz: d06f776693edde06b8f35aba7acb231926f1afbd086760de5ce07e2e123774d8cebf3c362da9f9bcec18a3ec54271c6dda44c9d24ac59d97b014b4d892ee3add
6
+ metadata.gz: e70642bb06f8ab5ff49047f62c51c71738fd4f156c1c4bcb5261a5cdef3c2f113a0fc5ee6ecb13b00ae66ea8bb3d5387e83307ddc165ac0c1de5a3328122d15c
7
+ data.tar.gz: 9842afcad0d503fa6dfa9ad0266e381947b6053646bfded41402f399b45c660b9513f16193a256280df7d4ba2bac950ae9f07791196ecb35d0cf487a0eefdd51
data/lib/lense.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class LENSE
2
2
  attr_reader :config, :current_course
3
3
 
4
- VERSION = '0.1.12'
4
+ VERSION = '0.1.13'
5
5
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
6
6
  COURSES_DIR = File.join(LENSE_DIR,'courses')
7
7
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
@@ -17,7 +17,7 @@ class LENSE
17
17
  @config = Psych.load(config_str) || {}
18
18
 
19
19
  @current_course = File.read(CURRENT_COURSE_FILE).strip()
20
- @current_course = '> NOT SET <'
20
+ @current_course = '> NOT SET <' if @current_course.empty?
21
21
  end
22
22
 
23
23
  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.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta