lense 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +3 -2
- 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: d443827f828fdc73dacb9a9e22c35774080bca57
|
4
|
+
data.tar.gz: 1a324e6c7d2327fc0a7a9a0651961e711b4b62c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fdb9e034ea864d5b1d3f215c39706ed43b94f7aecaae965918be90dc47e4060476d20ff566d29354638d8adc1fb99d005c7bb2d9c06e1d461a90a76193e946d
|
7
|
+
data.tar.gz: b46b66fb5513413f5ef703407dce127ea145f2d4c17d1710935cf30576f659c406e76f45c326b48a677f39cbe6c904399773a2e122bb4cf16b78079e5d2a7bbf
|
data/lib/lense.rb
CHANGED
@@ -4,7 +4,7 @@ require 'highline/import'
|
|
4
4
|
class LENSE
|
5
5
|
attr_reader :config, :current_course
|
6
6
|
|
7
|
-
VERSION = '0.1.
|
7
|
+
VERSION = '0.1.24'
|
8
8
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
9
9
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
10
10
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -89,7 +89,8 @@ class LENSE
|
|
89
89
|
show_hint = "\n#{hint_prefix} #{hint}"
|
90
90
|
end
|
91
91
|
|
92
|
-
|
92
|
+
attempt = "(Attempt #{asked} of #{max_asked})"
|
93
|
+
response = ask "#{q_prefix} #{question}#{attempt}#{show_hint}"
|
93
94
|
correct = response == lesson['question']['expect']
|
94
95
|
end
|
95
96
|
|