lense 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/lense +1 -1
- data/lib/lense.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ceb5de301433f049554c90535753dfc61f3b0e0
|
4
|
+
data.tar.gz: ada916cb969086e3f936550e34d6901e267cc383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0892df93dee9eee19d9faa6a6514d39a012c730ae0157cadc848c47e34a75ae99ae579e8a8c2a00db7089c037ea26dcda979c3c8d4ed88dacdab6b1fe1f5a55a
|
7
|
+
data.tar.gz: 59e3490e5c7b213cf2b9e0d898367537b0de358f56517867f0cf12bb5404976504060c6292fd6712ab35e9d976a21540f3cc1da1b95aa892a5bf36d7502b4bdf
|
data/bin/lense
CHANGED
data/lib/lense.rb
CHANGED
@@ -8,7 +8,7 @@ require 'psych'
|
|
8
8
|
class LENSE
|
9
9
|
attr_reader :config, :current_course, :lense_file_hash
|
10
10
|
|
11
|
-
VERSION = '0.3.
|
11
|
+
VERSION = '0.3.3'
|
12
12
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
13
13
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
14
14
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -64,9 +64,9 @@ class LENSE
|
|
64
64
|
response = RestClient.get "#{API_BASE}/lessons", { params: { format: 'json', text: term } }
|
65
65
|
courses = JSON.parse(response)
|
66
66
|
courses.each do |c|
|
67
|
-
|
68
|
-
|
69
|
-
|
67
|
+
say "<%= color('---',:green) %>"
|
68
|
+
say "Repository: #{c['repo_name']}"
|
69
|
+
say "Title: #{c['title']}"
|
70
70
|
print "Difficulty: "
|
71
71
|
c['difficulty'].times { print '*' }
|
72
72
|
puts ""
|