typingtutor 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/README.md +3 -1
- data/dictionary/.DS_Store +0 -0
- data/dictionary/american-abbreviations.70 +4 -0
- data/dictionary/american-upper.50 +21 -0
- data/dictionary/american-upper.60 +2 -0
- data/dictionary/american-upper.70 +68 -0
- data/dictionary/american-words.10 +35 -0
- data/dictionary/american-words.20 +167 -0
- data/dictionary/american-words.35 +1049 -0
- data/dictionary/american-words.40 +221 -0
- data/dictionary/american-words.50 +781 -0
- data/dictionary/american-words.55 +227 -0
- data/dictionary/american-words.60 +528 -0
- data/dictionary/american-words.70 +1337 -0
- data/dictionary/british-abbreviations.55 +1 -0
- data/dictionary/british-abbreviations.70 +6 -0
- data/dictionary/british-upper.50 +21 -0
- data/dictionary/british-upper.60 +2 -0
- data/dictionary/british-upper.70 +67 -0
- data/dictionary/british-words.10 +47 -0
- data/dictionary/british-words.20 +195 -0
- data/dictionary/british-words.35 +1078 -0
- data/dictionary/british-words.40 +223 -0
- data/dictionary/british-words.50 +783 -0
- data/dictionary/british-words.55 +219 -0
- data/dictionary/british-words.60 +526 -0
- data/dictionary/british-words.70 +1339 -0
- data/dictionary/british_variant_1-abbreviations.55 +1 -0
- data/dictionary/british_variant_1-contractions.35 +1 -0
- data/dictionary/british_variant_1-contractions.50 +2 -0
- data/dictionary/british_variant_1-contractions.60 +1 -0
- data/dictionary/british_variant_1-upper.35 +4 -0
- data/dictionary/british_variant_1-upper.40 +6 -0
- data/dictionary/british_variant_1-upper.50 +48 -0
- data/dictionary/british_variant_1-upper.60 +50 -0
- data/dictionary/british_variant_1-upper.70 +3 -0
- data/dictionary/british_variant_1-words.10 +15 -0
- data/dictionary/british_variant_1-words.20 +44 -0
- data/dictionary/british_variant_1-words.35 +264 -0
- data/dictionary/british_variant_1-words.40 +74 -0
- data/dictionary/british_variant_1-words.50 +287 -0
- data/dictionary/british_variant_1-words.55 +86 -0
- data/dictionary/british_variant_1-words.60 +164 -0
- data/dictionary/british_variant_1-words.70 +23 -0
- data/dictionary/british_variant_2-abbreviations.70 +3 -0
- data/dictionary/british_variant_2-contractions.50 +9 -0
- data/dictionary/british_variant_2-contractions.70 +1 -0
- data/dictionary/british_variant_2-upper.35 +1 -0
- data/dictionary/british_variant_2-upper.40 +7 -0
- data/dictionary/british_variant_2-upper.50 +105 -0
- data/dictionary/british_variant_2-upper.60 +53 -0
- data/dictionary/british_variant_2-upper.70 +142 -0
- data/dictionary/british_variant_2-words.10 +6 -0
- data/dictionary/british_variant_2-words.20 +27 -0
- data/dictionary/british_variant_2-words.35 +439 -0
- data/dictionary/british_variant_2-words.40 +121 -0
- data/dictionary/british_variant_2-words.50 +479 -0
- data/dictionary/british_variant_2-words.55 +104 -0
- data/dictionary/british_variant_2-words.60 +183 -0
- data/dictionary/british_variant_2-words.70 +299 -0
- data/dictionary/british_z-abbreviations.55 +1 -0
- data/dictionary/british_z-abbreviations.70 +6 -0
- data/dictionary/british_z-upper.50 +21 -0
- data/dictionary/british_z-upper.60 +2 -0
- data/dictionary/british_z-upper.70 +68 -0
- data/dictionary/british_z-words.10 +44 -0
- data/dictionary/british_z-words.20 +186 -0
- data/dictionary/british_z-words.35 +1063 -0
- data/dictionary/british_z-words.40 +223 -0
- data/dictionary/british_z-words.50 +779 -0
- data/dictionary/british_z-words.55 +219 -0
- data/dictionary/british_z-words.60 +526 -0
- data/dictionary/british_z-words.70 +1336 -0
- data/dictionary/english-abbreviations.10 +3 -0
- data/dictionary/english-abbreviations.20 +2 -0
- data/dictionary/english-abbreviations.35 +85 -0
- data/dictionary/english-abbreviations.40 +208 -0
- data/dictionary/english-abbreviations.50 +683 -0
- data/dictionary/english-abbreviations.55 +27 -0
- data/dictionary/english-abbreviations.60 +547 -0
- data/dictionary/english-abbreviations.70 +693 -0
- data/dictionary/english-contractions.10 +13 -0
- data/dictionary/english-contractions.35 +5 -0
- data/dictionary/english-contractions.40 +30 -0
- data/dictionary/english-contractions.50 +8 -0
- data/dictionary/english-contractions.60 +12 -0
- data/dictionary/english-contractions.70 +13 -0
- data/dictionary/english-proper-names.35 +2 -0
- data/dictionary/english-proper-names.40 +3 -0
- data/dictionary/english-proper-names.50 +7817 -0
- data/dictionary/english-proper-names.60 +45 -0
- data/dictionary/english-proper-names.70 +1510 -0
- data/dictionary/english-upper.10 +13 -0
- data/dictionary/english-upper.35 +220 -0
- data/dictionary/english-upper.40 +488 -0
- data/dictionary/english-upper.50 +10301 -0
- data/dictionary/english-upper.60 +725 -0
- data/dictionary/english-upper.70 +6303 -0
- data/dictionary/english-words.10 +4374 -0
- data/dictionary/english-words.20 +7951 -0
- data/dictionary/english-words.35 +36071 -0
- data/dictionary/english-words.40 +6379 -0
- data/dictionary/english-words.50 +23648 -0
- data/dictionary/english-words.55 +6213 -0
- data/dictionary/english-words.60 +12999 -0
- data/dictionary/english-words.70 +33400 -0
- data/dictionary/special-hacker.50 +1649 -0
- data/dictionary/special-roman-numerals.35 +63 -0
- data/dictionary/variant_1-abbreviations.55 +1 -0
- data/dictionary/variant_1-contractions.35 +1 -0
- data/dictionary/variant_1-contractions.50 +2 -0
- data/dictionary/variant_1-contractions.60 +1 -0
- data/dictionary/variant_1-upper.35 +4 -0
- data/dictionary/variant_1-upper.40 +6 -0
- data/dictionary/variant_1-upper.50 +48 -0
- data/dictionary/variant_1-upper.60 +51 -0
- data/dictionary/variant_1-upper.70 +3 -0
- data/dictionary/variant_1-words.10 +22 -0
- data/dictionary/variant_1-words.20 +71 -0
- data/dictionary/variant_1-words.35 +453 -0
- data/dictionary/variant_1-words.40 +96 -0
- data/dictionary/variant_1-words.50 +360 -0
- data/dictionary/variant_1-words.55 +100 -0
- data/dictionary/variant_1-words.60 +187 -0
- data/dictionary/variant_1-words.70 +57 -0
- data/dictionary/variant_2-abbreviations.70 +3 -0
- data/dictionary/variant_2-contractions.50 +9 -0
- data/dictionary/variant_2-contractions.70 +1 -0
- data/dictionary/variant_2-upper.35 +1 -0
- data/dictionary/variant_2-upper.40 +7 -0
- data/dictionary/variant_2-upper.50 +109 -0
- data/dictionary/variant_2-upper.60 +53 -0
- data/dictionary/variant_2-upper.70 +142 -0
- data/dictionary/variant_2-words.10 +25 -0
- data/dictionary/variant_2-words.20 +98 -0
- data/dictionary/variant_2-words.35 +892 -0
- data/dictionary/variant_2-words.40 +155 -0
- data/dictionary/variant_2-words.50 +608 -0
- data/dictionary/variant_2-words.55 +120 -0
- data/dictionary/variant_2-words.60 +226 -0
- data/dictionary/variant_2-words.70 +331 -0
- data/dictionary/variant_3-abbreviations.40 +1 -0
- data/dictionary/variant_3-words.10 +9 -0
- data/dictionary/variant_3-words.20 +23 -0
- data/dictionary/variant_3-words.35 +112 -0
- data/dictionary/variant_3-words.40 +29 -0
- data/dictionary/variant_3-words.50 +92 -0
- data/dictionary/variant_3-words.55 +74 -0
- data/dictionary/variant_3-words.60 +33 -0
- data/dictionary/variant_3-words.70 +46 -0
- data/lib/typingtutor/dictionary.rb +51 -0
- data/lib/typingtutor/runner.rb +6 -0
- data/lib/typingtutor/version.rb +1 -1
- data/lib/typingtutor.rb +1 -0
- metadata +153 -3
@@ -0,0 +1,112 @@
|
|
1
|
+
almanack
|
2
|
+
almanacks
|
3
|
+
annexe
|
4
|
+
annexe's
|
5
|
+
channellings
|
6
|
+
chequer's
|
7
|
+
chequers
|
8
|
+
chequers's
|
9
|
+
chlorophyl
|
10
|
+
chlorophyl's
|
11
|
+
cocain
|
12
|
+
cocain's
|
13
|
+
cyphers
|
14
|
+
discolouration
|
15
|
+
discolouration's
|
16
|
+
discolourations
|
17
|
+
fileted
|
18
|
+
fileting
|
19
|
+
flautist
|
20
|
+
flautist's
|
21
|
+
flautists
|
22
|
+
foetid
|
23
|
+
gaol's
|
24
|
+
gaoled
|
25
|
+
gaoler
|
26
|
+
gaoler's
|
27
|
+
gaolers
|
28
|
+
gaoling
|
29
|
+
gaols
|
30
|
+
gramme
|
31
|
+
gramme's
|
32
|
+
grammes
|
33
|
+
gulleys
|
34
|
+
gynaecology
|
35
|
+
gynaecology's
|
36
|
+
hiccupped
|
37
|
+
hiccupping
|
38
|
+
hurrahes
|
39
|
+
incumber
|
40
|
+
incumbered
|
41
|
+
incumbering
|
42
|
+
incumbers
|
43
|
+
inflexion
|
44
|
+
inflexion's
|
45
|
+
inflexions
|
46
|
+
jewelleries
|
47
|
+
kilogramme
|
48
|
+
kilogramme's
|
49
|
+
kilogrammes
|
50
|
+
manoeuver
|
51
|
+
manoeuver's
|
52
|
+
manoeuvered
|
53
|
+
manoeuvering
|
54
|
+
manoeuvers
|
55
|
+
milligramme
|
56
|
+
milligramme's
|
57
|
+
milligrammes
|
58
|
+
millionnaire
|
59
|
+
millionnaire's
|
60
|
+
millionnaires
|
61
|
+
oesophagus
|
62
|
+
oesophagus's
|
63
|
+
oesophaguses
|
64
|
+
paralyse
|
65
|
+
paralysed
|
66
|
+
paralysing
|
67
|
+
punkin
|
68
|
+
punkin's
|
69
|
+
punkins
|
70
|
+
quintette
|
71
|
+
quintette's
|
72
|
+
quintettes
|
73
|
+
reprogramme
|
74
|
+
reprogrammes
|
75
|
+
ripost
|
76
|
+
scarey
|
77
|
+
sceptic
|
78
|
+
sceptic's
|
79
|
+
scepticism
|
80
|
+
scepticism's
|
81
|
+
sceptics
|
82
|
+
snowplough
|
83
|
+
snowplough's
|
84
|
+
snowploughs
|
85
|
+
stimuluses
|
86
|
+
swob
|
87
|
+
swob's
|
88
|
+
swobbed
|
89
|
+
swobbing
|
90
|
+
swobs
|
91
|
+
synthesiser's
|
92
|
+
synthesisers
|
93
|
+
synthetize
|
94
|
+
synthetized
|
95
|
+
synthetizes
|
96
|
+
synthetizing
|
97
|
+
tassells
|
98
|
+
tranquillise
|
99
|
+
tranquillised
|
100
|
+
tranquilliser
|
101
|
+
tranquilliser's
|
102
|
+
tranquillisers
|
103
|
+
tranquillises
|
104
|
+
tranquillising
|
105
|
+
unparallelled
|
106
|
+
virtuosoes
|
107
|
+
waggon
|
108
|
+
waggon's
|
109
|
+
waggons
|
110
|
+
werwolf
|
111
|
+
werwolf's
|
112
|
+
werwolves
|
@@ -0,0 +1,29 @@
|
|
1
|
+
alumnuses
|
2
|
+
chequered
|
3
|
+
chequering
|
4
|
+
friz
|
5
|
+
friz's
|
6
|
+
galoshe
|
7
|
+
galoshe's
|
8
|
+
haschisch
|
9
|
+
haschisch's
|
10
|
+
homoeopathic
|
11
|
+
homoeopathy
|
12
|
+
homoeopathy's
|
13
|
+
mommie
|
14
|
+
mommie's
|
15
|
+
phrenetic
|
16
|
+
placeboes
|
17
|
+
sceptically
|
18
|
+
shmaltz
|
19
|
+
shmaltz's
|
20
|
+
stymy
|
21
|
+
stymy's
|
22
|
+
stymyed
|
23
|
+
subpena
|
24
|
+
subpena's
|
25
|
+
subpenaed
|
26
|
+
subpenaing
|
27
|
+
subpenas
|
28
|
+
turnround's
|
29
|
+
turnrounds
|
@@ -0,0 +1,92 @@
|
|
1
|
+
bacilluses
|
2
|
+
banshie
|
3
|
+
banshie's
|
4
|
+
banshies
|
5
|
+
caesium
|
6
|
+
caesium's
|
7
|
+
carcase
|
8
|
+
catalyse
|
9
|
+
catalysed
|
10
|
+
catalysing
|
11
|
+
cicatrixes
|
12
|
+
colouration
|
13
|
+
colouration's
|
14
|
+
cutesie
|
15
|
+
cutlas
|
16
|
+
cutlas's
|
17
|
+
cutlases
|
18
|
+
dingos
|
19
|
+
dogy
|
20
|
+
dogy's
|
21
|
+
empanelled
|
22
|
+
empanelling
|
23
|
+
eyries
|
24
|
+
eyry
|
25
|
+
eyry's
|
26
|
+
gaolbreak
|
27
|
+
gaolbreak's
|
28
|
+
gaolbreaks
|
29
|
+
houmus
|
30
|
+
impanelled
|
31
|
+
impanelling
|
32
|
+
ioniser
|
33
|
+
ioniser's
|
34
|
+
ionisers
|
35
|
+
jinriksha
|
36
|
+
jinriksha's
|
37
|
+
jinrikshas
|
38
|
+
khalif
|
39
|
+
khalif's
|
40
|
+
khalifs
|
41
|
+
kirk
|
42
|
+
kirk's
|
43
|
+
kirks
|
44
|
+
lagnappe
|
45
|
+
lagnappe's
|
46
|
+
lagnappes
|
47
|
+
liquidise
|
48
|
+
liquidised
|
49
|
+
liquidises
|
50
|
+
liquidising
|
51
|
+
loch
|
52
|
+
loch's
|
53
|
+
lochs
|
54
|
+
mesquit
|
55
|
+
mesquit's
|
56
|
+
mesquits
|
57
|
+
metred
|
58
|
+
metring
|
59
|
+
missilry
|
60
|
+
missilry's
|
61
|
+
notarise
|
62
|
+
notarised
|
63
|
+
notarises
|
64
|
+
notarising
|
65
|
+
oleomargarin
|
66
|
+
oleomargarin's
|
67
|
+
paederast
|
68
|
+
paederast's
|
69
|
+
paederasts
|
70
|
+
pinocle
|
71
|
+
pinocle's
|
72
|
+
quadrophonic
|
73
|
+
ripost's
|
74
|
+
riposts
|
75
|
+
schnaps
|
76
|
+
schnaps's
|
77
|
+
shellack
|
78
|
+
shellack's
|
79
|
+
shellacks
|
80
|
+
tyreo
|
81
|
+
tyreo's
|
82
|
+
tyreos
|
83
|
+
unlearnt
|
84
|
+
updraught
|
85
|
+
updraught's
|
86
|
+
updraughts
|
87
|
+
videodisk
|
88
|
+
videodisk's
|
89
|
+
videodisks
|
90
|
+
waggoner
|
91
|
+
waggoner's
|
92
|
+
waggoners
|
@@ -0,0 +1,74 @@
|
|
1
|
+
bangers
|
2
|
+
blether
|
3
|
+
blethered
|
4
|
+
blethering
|
5
|
+
blethers
|
6
|
+
breathalyse
|
7
|
+
breathalysed
|
8
|
+
breathalyses
|
9
|
+
breathalysing
|
10
|
+
burk
|
11
|
+
burks
|
12
|
+
carburettor
|
13
|
+
carburettor's
|
14
|
+
carburettors
|
15
|
+
carcases
|
16
|
+
cashpoint
|
17
|
+
cashpoints
|
18
|
+
ciggies
|
19
|
+
ciggy
|
20
|
+
cissies
|
21
|
+
cissy
|
22
|
+
draftboard
|
23
|
+
draftboards
|
24
|
+
escalop
|
25
|
+
escalop's
|
26
|
+
escalops
|
27
|
+
gaolbird
|
28
|
+
gaolbird's
|
29
|
+
gaolbirds
|
30
|
+
grandaddies
|
31
|
+
grandaddy
|
32
|
+
homoeopath
|
33
|
+
homoeopath's
|
34
|
+
homoeopaths
|
35
|
+
hotchpotch
|
36
|
+
hullo
|
37
|
+
hullo's
|
38
|
+
hullos
|
39
|
+
kissagram
|
40
|
+
kissagrams
|
41
|
+
letch
|
42
|
+
letches
|
43
|
+
linctus
|
44
|
+
liquorice
|
45
|
+
liquorice's
|
46
|
+
liquorices
|
47
|
+
luvvies
|
48
|
+
manoeuverings
|
49
|
+
mileometer
|
50
|
+
mileometers
|
51
|
+
moggies
|
52
|
+
neurone
|
53
|
+
neurones
|
54
|
+
oecumenism
|
55
|
+
passivise
|
56
|
+
passivised
|
57
|
+
passivises
|
58
|
+
passivising
|
59
|
+
pater
|
60
|
+
paters
|
61
|
+
poncey
|
62
|
+
poxy
|
63
|
+
shite
|
64
|
+
shites
|
65
|
+
spelaeological
|
66
|
+
spik
|
67
|
+
spiks
|
68
|
+
squaddie
|
69
|
+
squaddies
|
70
|
+
technicolour
|
71
|
+
toged
|
72
|
+
toging
|
73
|
+
walla
|
74
|
+
wallas
|
@@ -0,0 +1,33 @@
|
|
1
|
+
carburetter
|
2
|
+
carburetter's
|
3
|
+
carburetters
|
4
|
+
coenobite
|
5
|
+
coenobite's
|
6
|
+
coenobites
|
7
|
+
coenobitic
|
8
|
+
cyder
|
9
|
+
cyder's
|
10
|
+
cyders
|
11
|
+
cyphered
|
12
|
+
cyphering
|
13
|
+
enthralment
|
14
|
+
enthralment's
|
15
|
+
hectogramme
|
16
|
+
hectogramme's
|
17
|
+
hectogrammes
|
18
|
+
homoeostatic
|
19
|
+
hydrolyse
|
20
|
+
hydrolysed
|
21
|
+
hydrolysing
|
22
|
+
merchandizer
|
23
|
+
merchandizer's
|
24
|
+
merchandizers
|
25
|
+
ratlin
|
26
|
+
ratlin's
|
27
|
+
ratlins
|
28
|
+
redialled
|
29
|
+
redialling
|
30
|
+
reflexion
|
31
|
+
reflexion's
|
32
|
+
reflexions
|
33
|
+
tularaemia
|
@@ -0,0 +1,46 @@
|
|
1
|
+
aetiologies
|
2
|
+
amenorrhoea
|
3
|
+
amenorrhoeas
|
4
|
+
auld
|
5
|
+
aulder
|
6
|
+
auldest
|
7
|
+
babu
|
8
|
+
babus
|
9
|
+
burked
|
10
|
+
burking
|
11
|
+
caesiums
|
12
|
+
coenobitical
|
13
|
+
colourimeter
|
14
|
+
colourimeters
|
15
|
+
colourimetric
|
16
|
+
doyley
|
17
|
+
doyleys
|
18
|
+
emprize
|
19
|
+
glamourousness
|
20
|
+
glutaeal
|
21
|
+
gynaecomastia
|
22
|
+
hotchpotches
|
23
|
+
kinaesthesia
|
24
|
+
kinaesthesias
|
25
|
+
kinaesthetic
|
26
|
+
kinema
|
27
|
+
kyloes
|
28
|
+
misprise
|
29
|
+
oecumenic
|
30
|
+
oecumenical
|
31
|
+
oecumenicalism
|
32
|
+
oecumenicity
|
33
|
+
ourang
|
34
|
+
ourangs
|
35
|
+
paleoethnology
|
36
|
+
phenobarbitone
|
37
|
+
phenobarbitones
|
38
|
+
primaevally
|
39
|
+
pyrolyse
|
40
|
+
stoor
|
41
|
+
syphonophore
|
42
|
+
syphonostele
|
43
|
+
tenour
|
44
|
+
unglamourous
|
45
|
+
unskilful
|
46
|
+
waggonette
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Typingtutor
|
2
|
+
class Dictionary
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
@letters = {}
|
6
|
+
@words = []
|
7
|
+
|
8
|
+
files = Dir[File.join(File.dirname(__FILE__), '../../dictionary/*')]
|
9
|
+
files.each do |file|
|
10
|
+
IO.read(file).lines.each {|word| add(word)}
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def add(word)
|
15
|
+
return if word =~ /'s/
|
16
|
+
word = word.strip
|
17
|
+
@words << word
|
18
|
+
word.chars.uniq.each do |letter|
|
19
|
+
@letters[letter] ||= []
|
20
|
+
@letters[letter] << word
|
21
|
+
end
|
22
|
+
word
|
23
|
+
rescue Exception => e
|
24
|
+
puts "Error adding '#{word}': #{e.message}"
|
25
|
+
raise e
|
26
|
+
end
|
27
|
+
|
28
|
+
def pick_word_with_letter(letter)
|
29
|
+
@letters[letter][rand(@letters[letter].size)]
|
30
|
+
end
|
31
|
+
|
32
|
+
def pick_word
|
33
|
+
@words[rand(@words.size)]
|
34
|
+
end
|
35
|
+
|
36
|
+
def training_exercise
|
37
|
+
lines = []
|
38
|
+
line = ""
|
39
|
+
500.times do
|
40
|
+
line << (pick_word+" ")
|
41
|
+
if line.size > 70
|
42
|
+
lines << line.strip
|
43
|
+
line = ""
|
44
|
+
end
|
45
|
+
end
|
46
|
+
lines << line
|
47
|
+
lines
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
data/lib/typingtutor/runner.rb
CHANGED
@@ -17,6 +17,7 @@ module Typingtutor
|
|
17
17
|
puts "$ typingtutor path/to/localfile.txt"
|
18
18
|
puts
|
19
19
|
puts "built in exercises:"
|
20
|
+
puts "- training (dynamically generated)"
|
20
21
|
exercises.each {|e| puts "- #{e}"}
|
21
22
|
puts
|
22
23
|
puts "eg: typingtutor biglebowski"
|
@@ -43,6 +44,7 @@ module Typingtutor
|
|
43
44
|
def load_exercise(name)
|
44
45
|
gem_file_name = File.join(File.dirname(__FILE__), '..', '..', "exercises", "#{name}.txt")
|
45
46
|
|
47
|
+
lines ||= dictionary.training_exercise if name == 'training'
|
46
48
|
# load from exercise folder in the gem
|
47
49
|
lines ||= IO.read(name).lines if File.exists?(name)
|
48
50
|
lines ||= IO.read("#{name}.txt").lines if File.exists?("#{name}.txt")
|
@@ -65,6 +67,10 @@ module Typingtutor
|
|
65
67
|
files
|
66
68
|
end
|
67
69
|
|
70
|
+
def dictionary
|
71
|
+
@dictionary ||= Dictionary.new
|
72
|
+
end
|
73
|
+
|
68
74
|
def print_stats(stats)
|
69
75
|
time = Time.now - @start
|
70
76
|
total_chars = stats.map {|s| s[:total_chars] }.inject(:+)
|
data/lib/typingtutor/version.rb
CHANGED
data/lib/typingtutor.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typingtutor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paolo Dona
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|
@@ -54,12 +54,162 @@ files:
|
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
56
|
- bin/typingtutor
|
57
|
+
- dictionary/.DS_Store
|
58
|
+
- dictionary/american-abbreviations.70
|
59
|
+
- dictionary/american-upper.50
|
60
|
+
- dictionary/american-upper.60
|
61
|
+
- dictionary/american-upper.70
|
62
|
+
- dictionary/american-words.10
|
63
|
+
- dictionary/american-words.20
|
64
|
+
- dictionary/american-words.35
|
65
|
+
- dictionary/american-words.40
|
66
|
+
- dictionary/american-words.50
|
67
|
+
- dictionary/american-words.55
|
68
|
+
- dictionary/american-words.60
|
69
|
+
- dictionary/american-words.70
|
70
|
+
- dictionary/british-abbreviations.55
|
71
|
+
- dictionary/british-abbreviations.70
|
72
|
+
- dictionary/british-upper.50
|
73
|
+
- dictionary/british-upper.60
|
74
|
+
- dictionary/british-upper.70
|
75
|
+
- dictionary/british-words.10
|
76
|
+
- dictionary/british-words.20
|
77
|
+
- dictionary/british-words.35
|
78
|
+
- dictionary/british-words.40
|
79
|
+
- dictionary/british-words.50
|
80
|
+
- dictionary/british-words.55
|
81
|
+
- dictionary/british-words.60
|
82
|
+
- dictionary/british-words.70
|
83
|
+
- dictionary/british_variant_1-abbreviations.55
|
84
|
+
- dictionary/british_variant_1-contractions.35
|
85
|
+
- dictionary/british_variant_1-contractions.50
|
86
|
+
- dictionary/british_variant_1-contractions.60
|
87
|
+
- dictionary/british_variant_1-upper.35
|
88
|
+
- dictionary/british_variant_1-upper.40
|
89
|
+
- dictionary/british_variant_1-upper.50
|
90
|
+
- dictionary/british_variant_1-upper.60
|
91
|
+
- dictionary/british_variant_1-upper.70
|
92
|
+
- dictionary/british_variant_1-words.10
|
93
|
+
- dictionary/british_variant_1-words.20
|
94
|
+
- dictionary/british_variant_1-words.35
|
95
|
+
- dictionary/british_variant_1-words.40
|
96
|
+
- dictionary/british_variant_1-words.50
|
97
|
+
- dictionary/british_variant_1-words.55
|
98
|
+
- dictionary/british_variant_1-words.60
|
99
|
+
- dictionary/british_variant_1-words.70
|
100
|
+
- dictionary/british_variant_2-abbreviations.70
|
101
|
+
- dictionary/british_variant_2-contractions.50
|
102
|
+
- dictionary/british_variant_2-contractions.70
|
103
|
+
- dictionary/british_variant_2-upper.35
|
104
|
+
- dictionary/british_variant_2-upper.40
|
105
|
+
- dictionary/british_variant_2-upper.50
|
106
|
+
- dictionary/british_variant_2-upper.60
|
107
|
+
- dictionary/british_variant_2-upper.70
|
108
|
+
- dictionary/british_variant_2-words.10
|
109
|
+
- dictionary/british_variant_2-words.20
|
110
|
+
- dictionary/british_variant_2-words.35
|
111
|
+
- dictionary/british_variant_2-words.40
|
112
|
+
- dictionary/british_variant_2-words.50
|
113
|
+
- dictionary/british_variant_2-words.55
|
114
|
+
- dictionary/british_variant_2-words.60
|
115
|
+
- dictionary/british_variant_2-words.70
|
116
|
+
- dictionary/british_z-abbreviations.55
|
117
|
+
- dictionary/british_z-abbreviations.70
|
118
|
+
- dictionary/british_z-upper.50
|
119
|
+
- dictionary/british_z-upper.60
|
120
|
+
- dictionary/british_z-upper.70
|
121
|
+
- dictionary/british_z-words.10
|
122
|
+
- dictionary/british_z-words.20
|
123
|
+
- dictionary/british_z-words.35
|
124
|
+
- dictionary/british_z-words.40
|
125
|
+
- dictionary/british_z-words.50
|
126
|
+
- dictionary/british_z-words.55
|
127
|
+
- dictionary/british_z-words.60
|
128
|
+
- dictionary/british_z-words.70
|
129
|
+
- dictionary/english-abbreviations.10
|
130
|
+
- dictionary/english-abbreviations.20
|
131
|
+
- dictionary/english-abbreviations.35
|
132
|
+
- dictionary/english-abbreviations.40
|
133
|
+
- dictionary/english-abbreviations.50
|
134
|
+
- dictionary/english-abbreviations.55
|
135
|
+
- dictionary/english-abbreviations.60
|
136
|
+
- dictionary/english-abbreviations.70
|
137
|
+
- dictionary/english-contractions.10
|
138
|
+
- dictionary/english-contractions.35
|
139
|
+
- dictionary/english-contractions.40
|
140
|
+
- dictionary/english-contractions.50
|
141
|
+
- dictionary/english-contractions.60
|
142
|
+
- dictionary/english-contractions.70
|
143
|
+
- dictionary/english-proper-names.35
|
144
|
+
- dictionary/english-proper-names.40
|
145
|
+
- dictionary/english-proper-names.50
|
146
|
+
- dictionary/english-proper-names.60
|
147
|
+
- dictionary/english-proper-names.70
|
148
|
+
- dictionary/english-upper.10
|
149
|
+
- dictionary/english-upper.35
|
150
|
+
- dictionary/english-upper.40
|
151
|
+
- dictionary/english-upper.50
|
152
|
+
- dictionary/english-upper.60
|
153
|
+
- dictionary/english-upper.70
|
154
|
+
- dictionary/english-words.10
|
155
|
+
- dictionary/english-words.20
|
156
|
+
- dictionary/english-words.35
|
157
|
+
- dictionary/english-words.40
|
158
|
+
- dictionary/english-words.50
|
159
|
+
- dictionary/english-words.55
|
160
|
+
- dictionary/english-words.60
|
161
|
+
- dictionary/english-words.70
|
162
|
+
- dictionary/special-hacker.50
|
163
|
+
- dictionary/special-roman-numerals.35
|
164
|
+
- dictionary/variant_1-abbreviations.55
|
165
|
+
- dictionary/variant_1-contractions.35
|
166
|
+
- dictionary/variant_1-contractions.50
|
167
|
+
- dictionary/variant_1-contractions.60
|
168
|
+
- dictionary/variant_1-upper.35
|
169
|
+
- dictionary/variant_1-upper.40
|
170
|
+
- dictionary/variant_1-upper.50
|
171
|
+
- dictionary/variant_1-upper.60
|
172
|
+
- dictionary/variant_1-upper.70
|
173
|
+
- dictionary/variant_1-words.10
|
174
|
+
- dictionary/variant_1-words.20
|
175
|
+
- dictionary/variant_1-words.35
|
176
|
+
- dictionary/variant_1-words.40
|
177
|
+
- dictionary/variant_1-words.50
|
178
|
+
- dictionary/variant_1-words.55
|
179
|
+
- dictionary/variant_1-words.60
|
180
|
+
- dictionary/variant_1-words.70
|
181
|
+
- dictionary/variant_2-abbreviations.70
|
182
|
+
- dictionary/variant_2-contractions.50
|
183
|
+
- dictionary/variant_2-contractions.70
|
184
|
+
- dictionary/variant_2-upper.35
|
185
|
+
- dictionary/variant_2-upper.40
|
186
|
+
- dictionary/variant_2-upper.50
|
187
|
+
- dictionary/variant_2-upper.60
|
188
|
+
- dictionary/variant_2-upper.70
|
189
|
+
- dictionary/variant_2-words.10
|
190
|
+
- dictionary/variant_2-words.20
|
191
|
+
- dictionary/variant_2-words.35
|
192
|
+
- dictionary/variant_2-words.40
|
193
|
+
- dictionary/variant_2-words.50
|
194
|
+
- dictionary/variant_2-words.55
|
195
|
+
- dictionary/variant_2-words.60
|
196
|
+
- dictionary/variant_2-words.70
|
197
|
+
- dictionary/variant_3-abbreviations.40
|
198
|
+
- dictionary/variant_3-words.10
|
199
|
+
- dictionary/variant_3-words.20
|
200
|
+
- dictionary/variant_3-words.35
|
201
|
+
- dictionary/variant_3-words.40
|
202
|
+
- dictionary/variant_3-words.50
|
203
|
+
- dictionary/variant_3-words.55
|
204
|
+
- dictionary/variant_3-words.60
|
205
|
+
- dictionary/variant_3-words.70
|
57
206
|
- exercises/biglebowski.txt
|
58
207
|
- exercises/fox.txt
|
59
208
|
- exercises/haikurb.txt
|
60
209
|
- exercises/lorem.txt
|
61
210
|
- exercises/starwars.txt
|
62
211
|
- lib/typingtutor.rb
|
212
|
+
- lib/typingtutor/dictionary.rb
|
63
213
|
- lib/typingtutor/line.rb
|
64
214
|
- lib/typingtutor/runner.rb
|
65
215
|
- lib/typingtutor/version.rb
|
@@ -84,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
234
|
version: '0'
|
85
235
|
requirements: []
|
86
236
|
rubyforge_project:
|
87
|
-
rubygems_version: 2.5.1
|
237
|
+
rubygems_version: 2.4.5.1
|
88
238
|
signing_key:
|
89
239
|
specification_version: 4
|
90
240
|
summary: Command line typing tutor
|