one44-cli 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fcb4075a73f18afa9d7a20784d3eea8c1c0c0f45a46928176dce3f8af3e94ec9
4
+ data.tar.gz: 389cc96715a3b8b2f204db184bf3549af5314b7e2359b52ab22e0e79074b3d12
5
+ SHA512:
6
+ metadata.gz: 2676c40383bcb5d72b4082bad93babe8f2a75071ba31ef6ad8e1d8f4bd85699d3b7700ffa9d37405fe6016fd814ba07e61445d8783c219c5e4a4fdfea863dce6
7
+ data.tar.gz: 66669bda9e7a25584d173ba830b6026c335ea77ad03f564fa429e7142c52d5f7d79fa15ef265843578055b1eb68a181e8171e30bdf048e27e60417e3cfb9386d
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem 'coderay'
6
+ gem 'cucumber', '3.1.2'
7
+ gem 'one44', '0.0.2'
8
+ gem 'pry', '0.12.2'
9
+ gem 'rspec', '3.9.0'
10
+ gem 'rspec-wait'
11
+ gem 'rubocop', '0.91.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,82 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (2.4.2)
5
+ backports (3.21.0)
6
+ builder (3.2.4)
7
+ coderay (1.1.3)
8
+ cucumber (3.1.2)
9
+ builder (>= 2.1.2)
10
+ cucumber-core (~> 3.2.0)
11
+ cucumber-expressions (~> 6.0.1)
12
+ cucumber-wire (~> 0.0.1)
13
+ diff-lcs (~> 1.3)
14
+ gherkin (~> 5.1.0)
15
+ multi_json (>= 1.7.5, < 2.0)
16
+ multi_test (>= 0.1.2)
17
+ cucumber-core (3.2.1)
18
+ backports (>= 3.8.0)
19
+ cucumber-tag_expressions (~> 1.1.0)
20
+ gherkin (~> 5.0)
21
+ cucumber-expressions (6.0.1)
22
+ cucumber-tag_expressions (1.1.1)
23
+ cucumber-wire (0.0.1)
24
+ diff-lcs (1.4.4)
25
+ gherkin (5.1.0)
26
+ method_source (0.9.2)
27
+ multi_json (1.15.0)
28
+ multi_test (0.1.2)
29
+ one44 (0.0.2)
30
+ parallel (1.20.1)
31
+ parser (3.0.1.1)
32
+ ast (~> 2.4.1)
33
+ pry (0.12.2)
34
+ coderay (~> 1.1.0)
35
+ method_source (~> 0.9.0)
36
+ rainbow (3.0.0)
37
+ regexp_parser (2.1.1)
38
+ rexml (3.2.5)
39
+ rspec (3.9.0)
40
+ rspec-core (~> 3.9.0)
41
+ rspec-expectations (~> 3.9.0)
42
+ rspec-mocks (~> 3.9.0)
43
+ rspec-core (3.9.3)
44
+ rspec-support (~> 3.9.3)
45
+ rspec-expectations (3.9.4)
46
+ diff-lcs (>= 1.2.0, < 2.0)
47
+ rspec-support (~> 3.9.0)
48
+ rspec-mocks (3.9.1)
49
+ diff-lcs (>= 1.2.0, < 2.0)
50
+ rspec-support (~> 3.9.0)
51
+ rspec-support (3.9.4)
52
+ rspec-wait (0.0.9)
53
+ rspec (>= 3, < 4)
54
+ rubocop (0.91.0)
55
+ parallel (~> 1.10)
56
+ parser (>= 2.7.1.1)
57
+ rainbow (>= 2.2.2, < 4.0)
58
+ regexp_parser (>= 1.7)
59
+ rexml
60
+ rubocop-ast (>= 0.4.0, < 1.0)
61
+ ruby-progressbar (~> 1.7)
62
+ unicode-display_width (>= 1.4.0, < 2.0)
63
+ rubocop-ast (0.8.0)
64
+ parser (>= 2.7.1.5)
65
+ ruby-progressbar (1.11.0)
66
+ unicode-display_width (1.7.0)
67
+
68
+ PLATFORMS
69
+ ruby
70
+ x86_64-darwin-20
71
+
72
+ DEPENDENCIES
73
+ coderay
74
+ cucumber (= 3.1.2)
75
+ one44 (= 0.0.2)
76
+ pry (= 0.12.2)
77
+ rspec (= 3.9.0)
78
+ rspec-wait
79
+ rubocop (= 0.91.0)
80
+
81
+ BUNDLED WITH
82
+ 2.2.19
data/lib/one44-cli.rb ADDED
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ def answer
4
+ gets.chomp
5
+ end
6
+
7
+ def clean(answer)
8
+ Integer(answer).to_i
9
+ rescue StandardError
10
+ nil
11
+ end
12
+
13
+ def randomise(questions)
14
+ questions.shuffle
15
+ end
16
+
17
+ def questions
18
+ load_tests_from_csv_file('bin/tests/Advanced Indigo.txt', "\t\t")
19
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module One44
4
+ VERSION = '0.0.1'
5
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: one44-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Adam Bonsu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-06-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Marks math problems
14
+ email: adam@bonsu.io
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - Gemfile
20
+ - Gemfile.lock
21
+ - lib/one44-cli.rb
22
+ - lib/one44-cli/version.rb
23
+ homepage: https://github.com/adambonsu/one44-cli
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: 2.7.0
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubygems_version: 3.1.4
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: CLI User Interface for one44
46
+ test_files: []