lense 0.1.13 → 0.1.14

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: b6808f236fc3eff797c2d1e857963018263db129
4
- data.tar.gz: 9bf61f347702d02b716ae9e0ebaccfd91a8e2d15
3
+ metadata.gz: bcdb2fb208ebc9efd8cf4947afaca7cd16fdc59b
4
+ data.tar.gz: 698fc5411654900e60d03aafd3d92043ff75fbf4
5
5
  SHA512:
6
- metadata.gz: e70642bb06f8ab5ff49047f62c51c71738fd4f156c1c4bcb5261a5cdef3c2f113a0fc5ee6ecb13b00ae66ea8bb3d5387e83307ddc165ac0c1de5a3328122d15c
7
- data.tar.gz: 9842afcad0d503fa6dfa9ad0266e381947b6053646bfded41402f399b45c660b9513f16193a256280df7d4ba2bac950ae9f07791196ecb35d0cf487a0eefdd51
6
+ metadata.gz: 584278c6a64d901f01c217ab44288987e33d1b197937bc81d64a5df6ad62ebb36db0dd2552938a67aa8bbdb964bdf0f0280b9c72aefa2ade9b0b560298c728b4
7
+ data.tar.gz: 8aa71495443323e9fbdc71a642339f90c5e17d52652ca13969dca8c3224325cad6fe3c5952c3a6a9b9cab4e2eed39e4ed1068c98bff74b88e068514210ce8475
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.13'
4
+ VERSION = '0.1.14'
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')
@@ -34,4 +34,12 @@ class LENSE
34
34
  end
35
35
  end
36
36
 
37
+ def list_courses()
38
+ Dir.entries(COURSES_DIR).each do |c|
39
+ prefix = c == @current_course ? " > " : " "
40
+ puts "#{prefix}#{c}"
41
+ puts ""
42
+ puts "Indicates current course (>)"
43
+ end
44
+ end
37
45
  end
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.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta