lense 0.1.23 → 0.1.24

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 +3 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5616609c21cd5d117bc4d895ecb723040f52b1ad
4
- data.tar.gz: c75237a9bb03b4391d73f12feb357d5a6ab04880
3
+ metadata.gz: d443827f828fdc73dacb9a9e22c35774080bca57
4
+ data.tar.gz: 1a324e6c7d2327fc0a7a9a0651961e711b4b62c5
5
5
  SHA512:
6
- metadata.gz: 9dfbf6cb4da734ed72a2c1f77b899285cceb43fe30a0344dd6827b534d6d00052249bd2160457c9f0352577dcf2e96ba349cbe5216e4087430eb920dd20fd3fe
7
- data.tar.gz: 53f4b917e064cb87b7b08e1198c72149866d993a1a0a672f5a656eb1dcd804aca7e35deb553f6726410fb1173de531d0043ef9153b1a03494d939fa136abadc4
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.23'
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
- response = ask "#{q_prefix} #{question}#{show_hint}"
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
 
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.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta