typrtail 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/typrtail +3 -1
- data/pkg/typrtail-0.0.1/bin/typrtail +3 -1
- data/pkg/typrtail-0.0.1/typrtail.gemspec +1 -2
- data/typrtail-0.0.1.gem +0 -0
- data/typrtail.gemspec +1 -2
- metadata +4 -3
data/bin/typrtail
CHANGED
@@ -167,6 +167,8 @@ def erase_typo
|
|
167
167
|
$stderr.putc("\b"[0])
|
168
168
|
$stderr.putc(" "[0])
|
169
169
|
$stderr.putc("\b"[0])
|
170
|
+
slp = pause_time("a"[0]) / 2.0
|
171
|
+
sleep slp
|
170
172
|
end
|
171
173
|
|
172
174
|
lastch = ' '
|
@@ -200,7 +202,7 @@ while ch = $stdin.getc
|
|
200
202
|
sleep($speed_adjust * $time_to_recognize_typo)
|
201
203
|
end
|
202
204
|
# making a typo makes another one more likely :P
|
203
|
-
typo_prob /= 2
|
205
|
+
typo_prob /= 2.0
|
204
206
|
end
|
205
207
|
num_typos.times { erase_typo }
|
206
208
|
|
@@ -167,6 +167,8 @@ def erase_typo
|
|
167
167
|
$stderr.putc("\b"[0])
|
168
168
|
$stderr.putc(" "[0])
|
169
169
|
$stderr.putc("\b"[0])
|
170
|
+
slp = pause_time("a"[0]) / 2.0
|
171
|
+
sleep slp
|
170
172
|
end
|
171
173
|
|
172
174
|
lastch = ' '
|
@@ -200,7 +202,7 @@ while ch = $stdin.getc
|
|
200
202
|
sleep($speed_adjust * $time_to_recognize_typo)
|
201
203
|
end
|
202
204
|
# making a typo makes another one more likely :P
|
203
|
-
typo_prob /= 2
|
205
|
+
typo_prob /= 2.0
|
204
206
|
end
|
205
207
|
num_typos.times { erase_typo }
|
206
208
|
|
data/typrtail-0.0.1.gem
ADDED
Binary file
|
data/typrtail.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typrtail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kyle Burton
|
@@ -37,6 +37,7 @@ files:
|
|
37
37
|
- pkg/typrtail-0.0.1.tgz
|
38
38
|
- Rakefile
|
39
39
|
- README.textile
|
40
|
+
- typrtail-0.0.1.gem
|
40
41
|
- typrtail.gemspec
|
41
42
|
has_rdoc: true
|
42
43
|
homepage: http://github.com/kyleburton/typrtail
|