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 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
 
@@ -1,10 +1,9 @@
1
1
  require 'rubygems'
2
2
 
3
3
 
4
-
5
4
  SPEC = Gem::Specification.new do |s|
6
5
  s.name = "typrtail"
7
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
8
7
  s.author = "Kyle Burton"
9
8
  s.email = "kyle.burton@gmail.com"
10
9
  s.platform = Gem::Platform::RUBY
Binary file
data/typrtail.gemspec CHANGED
@@ -1,10 +1,9 @@
1
1
  require 'rubygems'
2
2
 
3
3
 
4
-
5
4
  SPEC = Gem::Specification.new do |s|
6
5
  s.name = "typrtail"
7
- s.version = "0.0.1"
6
+ s.version = "0.0.2"
8
7
  s.author = "Kyle Burton"
9
8
  s.email = "kyle.burton@gmail.com"
10
9
  s.platform = Gem::Platform::RUBY
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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