wordword 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.rubocop.yml +268 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +149 -0
- data/README.md +44 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/config/locales/en.yml +10 -0
- data/exe/wordword +18 -0
- data/lib/initializers/i18n.rb +4 -0
- data/lib/wordword.rb +9 -0
- data/lib/wordword/cli.rb +61 -0
- data/lib/wordword/command.rb +123 -0
- data/lib/wordword/commands/.gitkeep +1 -0
- data/lib/wordword/commands/compose.rb +43 -0
- data/lib/wordword/commands/train.rb +67 -0
- data/lib/wordword/interactors/compose/handle_exit.rb +60 -0
- data/lib/wordword/interactors/train/single_choice.rb +58 -0
- data/lib/wordword/interactors/train/word_loop.rb +42 -0
- data/lib/wordword/operations/read_word_table.rb +37 -0
- data/lib/wordword/templates/.gitkeep +1 -0
- data/lib/wordword/templates/compose/.gitkeep +1 -0
- data/lib/wordword/templates/train/.gitkeep +1 -0
- data/lib/wordword/version.rb +5 -0
- data/wordword.gemspec +67 -0
- metadata +472 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "dry/monads"
|
4
|
+
require "pastel"
|
5
|
+
|
6
|
+
module Train
|
7
|
+
class SingleChoice
|
8
|
+
|
9
|
+
include Dry::Monads[:result]
|
10
|
+
CHOICES_SIZE = 4
|
11
|
+
|
12
|
+
def initialize(command_context)
|
13
|
+
@command_context = command_context
|
14
|
+
end
|
15
|
+
|
16
|
+
def call(word, translated_word, words:)
|
17
|
+
answer = command_context.prompt.select(
|
18
|
+
"What is the translation of '#{word}'?",
|
19
|
+
choices(translated_word, words),
|
20
|
+
)
|
21
|
+
|
22
|
+
if answer == translated_word
|
23
|
+
Success(answer)
|
24
|
+
else
|
25
|
+
Failure(
|
26
|
+
I18n.t(
|
27
|
+
"train.wrong_answer_entry",
|
28
|
+
word: pastel.blue(word),
|
29
|
+
correct_answer: pastel.green(translated_word),
|
30
|
+
answer: pastel.red(answer),
|
31
|
+
),
|
32
|
+
)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
attr_reader :command_context
|
39
|
+
|
40
|
+
def choices(translated_word, words)
|
41
|
+
result = [translated_word]
|
42
|
+
|
43
|
+
choices_size = words.size < CHOICES_SIZE ? words.size : CHOICES_SIZE
|
44
|
+
|
45
|
+
until result.size == choices_size
|
46
|
+
sample = words.values.sample
|
47
|
+
result << sample unless result.include?(sample)
|
48
|
+
end
|
49
|
+
|
50
|
+
result.shuffle
|
51
|
+
end
|
52
|
+
|
53
|
+
def pastel
|
54
|
+
@pastel ||= Pastel.new
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "./single_choice"
|
4
|
+
|
5
|
+
module Train
|
6
|
+
class WordLoop
|
7
|
+
|
8
|
+
attr_reader :wrong_answers
|
9
|
+
|
10
|
+
def initialize(command_context)
|
11
|
+
@command_context = command_context
|
12
|
+
@wrong_answers = []
|
13
|
+
end
|
14
|
+
|
15
|
+
def run(words, loop_depth:)
|
16
|
+
selected_words = selected_words(words, loop_depth)
|
17
|
+
|
18
|
+
selected_words.each do |word, translated_word|
|
19
|
+
answer = single_choice.call(word, translated_word, words: selected_words)
|
20
|
+
if answer.failure?
|
21
|
+
command_context.prompt.error(I18n.t("train.wrong_alert"))
|
22
|
+
@wrong_answers << answer.failure
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
|
29
|
+
attr_reader :command_context
|
30
|
+
|
31
|
+
def selected_words(words, loop_depth)
|
32
|
+
words.to_a.sample(loop_depth || words.size).to_h
|
33
|
+
end
|
34
|
+
|
35
|
+
def single_choice
|
36
|
+
SingleChoice.new(
|
37
|
+
@command_context,
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "dry/monads/all"
|
4
|
+
|
5
|
+
class ReadWordTable
|
6
|
+
|
7
|
+
include Dry::Monads[:result]
|
8
|
+
include Dry::Monads::Do.for(:call)
|
9
|
+
|
10
|
+
def call(filename:)
|
11
|
+
lines = yield read_file(filename)
|
12
|
+
words = yield parse_lines(lines)
|
13
|
+
|
14
|
+
Success(words)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def read_file(filename)
|
20
|
+
Success(File.readlines(filename))
|
21
|
+
rescue StandardError
|
22
|
+
Failure(:file_is_not_readable)
|
23
|
+
end
|
24
|
+
|
25
|
+
def parse_lines(file)
|
26
|
+
words = {}
|
27
|
+
file.each do |line|
|
28
|
+
next if line.strip == ""
|
29
|
+
return Failure(:file_is_not_parseable) unless line.match?(/.*#.*/)
|
30
|
+
|
31
|
+
word, translated_word = line.split("#").map(&:strip)
|
32
|
+
words[word] = translated_word
|
33
|
+
end
|
34
|
+
Success(words)
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
#
|
@@ -0,0 +1 @@
|
|
1
|
+
#
|
@@ -0,0 +1 @@
|
|
1
|
+
#
|
data/wordword.gemspec
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path("lib", __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "wordword/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "wordword"
|
9
|
+
spec.license = "MIT"
|
10
|
+
spec.version = Wordword::VERSION
|
11
|
+
spec.authors = ["Artur Martsinkovskyi"]
|
12
|
+
spec.email = ["deimoss42@gmail.com"]
|
13
|
+
|
14
|
+
spec.summary = "A language-agnostic CLI application for learning new words."
|
15
|
+
spec.description = "A language-agnostic CLI application for learning new words. You are able to construct the word lists and then train on them using nothing but the cli. The word list format is intuitive, so you can create your word lists however you want."
|
16
|
+
spec.homepage = "https://github.com/artur-martsinkovskyi/wordword"
|
17
|
+
|
18
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
+
if spec.respond_to?(:metadata)
|
21
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
22
|
+
spec.metadata["source_code_uri"] = "https://github.com/artur-martsinkovskyi/wordword"
|
23
|
+
spec.metadata["changelog_uri"] = "https://github.com/artur-martsinkovskyi/wordword/CHANGELOG.md"
|
24
|
+
else
|
25
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
26
|
+
"public gem pushes."
|
27
|
+
end
|
28
|
+
|
29
|
+
# Specify which files should be added to the gem when it is released.
|
30
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
32
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
+
end
|
34
|
+
spec.bindir = "exe"
|
35
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ["lib"]
|
37
|
+
|
38
|
+
spec.add_dependency "dry-monads", "~> 1.3"
|
39
|
+
spec.add_dependency "i18n", "~> 1.7"
|
40
|
+
spec.add_dependency "pastel", "~> 0.7"
|
41
|
+
spec.add_dependency "thor", "~> 0.20"
|
42
|
+
spec.add_dependency "tty-box", "~> 0.4.1"
|
43
|
+
spec.add_dependency "tty-color", "~> 0.5"
|
44
|
+
spec.add_dependency "tty-command", "~> 0.9.0"
|
45
|
+
spec.add_dependency "tty-config", "~> 0.3.2"
|
46
|
+
spec.add_dependency "tty-cursor", "~> 0.7"
|
47
|
+
spec.add_dependency "tty-editor", "~> 0.5"
|
48
|
+
spec.add_dependency "tty-file", "~> 0.8.0"
|
49
|
+
spec.add_dependency "tty-font", "~> 0.4.0"
|
50
|
+
spec.add_dependency "tty-logger", "~> 0.2.0"
|
51
|
+
spec.add_dependency "tty-markdown", "~> 0.6.0"
|
52
|
+
spec.add_dependency "tty-pager", "~> 0.12"
|
53
|
+
spec.add_dependency "tty-pie", "~> 0.3.0"
|
54
|
+
spec.add_dependency "tty-platform", "~> 0.2"
|
55
|
+
spec.add_dependency "tty-progressbar", "~> 0.17"
|
56
|
+
spec.add_dependency "tty-prompt", "~> 0.19"
|
57
|
+
spec.add_dependency "tty-screen", "~> 0.7"
|
58
|
+
spec.add_dependency "tty-spinner", "~> 0.9"
|
59
|
+
spec.add_dependency "tty-table", "~> 0.11.0"
|
60
|
+
spec.add_dependency "tty-tree", "~> 0.3"
|
61
|
+
spec.add_dependency "tty-which", "~> 0.4"
|
62
|
+
|
63
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
64
|
+
spec.add_development_dependency "pry", "~> 0.12"
|
65
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
66
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
67
|
+
end
|
metadata
ADDED
@@ -0,0 +1,472 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wordword
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Artur Martsinkovskyi
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-04-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: dry-monads
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pastel
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.20'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.20'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: tty-box
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.4.1
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.4.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: tty-color
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.5'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.5'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: tty-command
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.9.0
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.9.0
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: tty-config
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.3.2
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.3.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: tty-cursor
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0.7'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0.7'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: tty-editor
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0.5'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0.5'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: tty-file
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.8.0
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.8.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: tty-font
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.4.0
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.4.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: tty-logger
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.2.0
|
188
|
+
type: :runtime
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.2.0
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: tty-markdown
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.6.0
|
202
|
+
type: :runtime
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.6.0
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: tty-pager
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - "~>"
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0.12'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - "~>"
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0.12'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: tty-pie
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.3.0
|
230
|
+
type: :runtime
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.3.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: tty-platform
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '0.2'
|
244
|
+
type: :runtime
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '0.2'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: tty-progressbar
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - "~>"
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0.17'
|
258
|
+
type: :runtime
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - "~>"
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0.17'
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: tty-prompt
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - "~>"
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0.19'
|
272
|
+
type: :runtime
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0.19'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: tty-screen
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - "~>"
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0.7'
|
286
|
+
type: :runtime
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - "~>"
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0.7'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: tty-spinner
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0.9'
|
300
|
+
type: :runtime
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0.9'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: tty-table
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 0.11.0
|
314
|
+
type: :runtime
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - "~>"
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: 0.11.0
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: tty-tree
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - "~>"
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: '0.3'
|
328
|
+
type: :runtime
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - "~>"
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0.3'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: tty-which
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0.4'
|
342
|
+
type: :runtime
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0.4'
|
349
|
+
- !ruby/object:Gem::Dependency
|
350
|
+
name: bundler
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - "~>"
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '1.17'
|
356
|
+
type: :development
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - "~>"
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '1.17'
|
363
|
+
- !ruby/object:Gem::Dependency
|
364
|
+
name: pry
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
366
|
+
requirements:
|
367
|
+
- - "~>"
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: '0.12'
|
370
|
+
type: :development
|
371
|
+
prerelease: false
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - "~>"
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: '0.12'
|
377
|
+
- !ruby/object:Gem::Dependency
|
378
|
+
name: rake
|
379
|
+
requirement: !ruby/object:Gem::Requirement
|
380
|
+
requirements:
|
381
|
+
- - "~>"
|
382
|
+
- !ruby/object:Gem::Version
|
383
|
+
version: '10.0'
|
384
|
+
type: :development
|
385
|
+
prerelease: false
|
386
|
+
version_requirements: !ruby/object:Gem::Requirement
|
387
|
+
requirements:
|
388
|
+
- - "~>"
|
389
|
+
- !ruby/object:Gem::Version
|
390
|
+
version: '10.0'
|
391
|
+
- !ruby/object:Gem::Dependency
|
392
|
+
name: rspec
|
393
|
+
requirement: !ruby/object:Gem::Requirement
|
394
|
+
requirements:
|
395
|
+
- - "~>"
|
396
|
+
- !ruby/object:Gem::Version
|
397
|
+
version: '3.0'
|
398
|
+
type: :development
|
399
|
+
prerelease: false
|
400
|
+
version_requirements: !ruby/object:Gem::Requirement
|
401
|
+
requirements:
|
402
|
+
- - "~>"
|
403
|
+
- !ruby/object:Gem::Version
|
404
|
+
version: '3.0'
|
405
|
+
description: A language-agnostic CLI application for learning new words. You are able
|
406
|
+
to construct the word lists and then train on them using nothing but the cli. The
|
407
|
+
word list format is intuitive, so you can create your word lists however you want.
|
408
|
+
email:
|
409
|
+
- deimoss42@gmail.com
|
410
|
+
executables:
|
411
|
+
- wordword
|
412
|
+
extensions: []
|
413
|
+
extra_rdoc_files: []
|
414
|
+
files:
|
415
|
+
- ".gitignore"
|
416
|
+
- ".rspec"
|
417
|
+
- ".rubocop.yml"
|
418
|
+
- ".travis.yml"
|
419
|
+
- CODE_OF_CONDUCT.md
|
420
|
+
- Gemfile
|
421
|
+
- Gemfile.lock
|
422
|
+
- LICENSE.txt
|
423
|
+
- README.md
|
424
|
+
- Rakefile
|
425
|
+
- bin/console
|
426
|
+
- bin/setup
|
427
|
+
- config/locales/en.yml
|
428
|
+
- exe/wordword
|
429
|
+
- lib/initializers/i18n.rb
|
430
|
+
- lib/wordword.rb
|
431
|
+
- lib/wordword/cli.rb
|
432
|
+
- lib/wordword/command.rb
|
433
|
+
- lib/wordword/commands/.gitkeep
|
434
|
+
- lib/wordword/commands/compose.rb
|
435
|
+
- lib/wordword/commands/train.rb
|
436
|
+
- lib/wordword/interactors/compose/handle_exit.rb
|
437
|
+
- lib/wordword/interactors/train/single_choice.rb
|
438
|
+
- lib/wordword/interactors/train/word_loop.rb
|
439
|
+
- lib/wordword/operations/read_word_table.rb
|
440
|
+
- lib/wordword/templates/.gitkeep
|
441
|
+
- lib/wordword/templates/compose/.gitkeep
|
442
|
+
- lib/wordword/templates/train/.gitkeep
|
443
|
+
- lib/wordword/version.rb
|
444
|
+
- wordword.gemspec
|
445
|
+
homepage: https://github.com/artur-martsinkovskyi/wordword
|
446
|
+
licenses:
|
447
|
+
- MIT
|
448
|
+
metadata:
|
449
|
+
homepage_uri: https://github.com/artur-martsinkovskyi/wordword
|
450
|
+
source_code_uri: https://github.com/artur-martsinkovskyi/wordword
|
451
|
+
changelog_uri: https://github.com/artur-martsinkovskyi/wordword/CHANGELOG.md
|
452
|
+
post_install_message:
|
453
|
+
rdoc_options: []
|
454
|
+
require_paths:
|
455
|
+
- lib
|
456
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
457
|
+
requirements:
|
458
|
+
- - ">="
|
459
|
+
- !ruby/object:Gem::Version
|
460
|
+
version: '0'
|
461
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
462
|
+
requirements:
|
463
|
+
- - ">="
|
464
|
+
- !ruby/object:Gem::Version
|
465
|
+
version: '0'
|
466
|
+
requirements: []
|
467
|
+
rubyforge_project:
|
468
|
+
rubygems_version: 2.7.7
|
469
|
+
signing_key:
|
470
|
+
specification_version: 4
|
471
|
+
summary: A language-agnostic CLI application for learning new words.
|
472
|
+
test_files: []
|