one44-cli 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcb4075a73f18afa9d7a20784d3eea8c1c0c0f45a46928176dce3f8af3e94ec9
4
- data.tar.gz: 389cc96715a3b8b2f204db184bf3549af5314b7e2359b52ab22e0e79074b3d12
3
+ metadata.gz: bd7cc1252e5fac557dddaae6e1edf97a499b2184a17ec7605c485acfcc48b2a0
4
+ data.tar.gz: 18657389812e044bd2c6e0dc7e4fd12aba62d78cfda53f7419731be8e5aaddba
5
5
  SHA512:
6
- metadata.gz: 2676c40383bcb5d72b4082bad93babe8f2a75071ba31ef6ad8e1d8f4bd85699d3b7700ffa9d37405fe6016fd814ba07e61445d8783c219c5e4a4fdfea863dce6
7
- data.tar.gz: 66669bda9e7a25584d173ba830b6026c335ea77ad03f564fa429e7142c52d5f7d79fa15ef265843578055b1eb68a181e8171e30bdf048e27e60417e3cfb9386d
6
+ metadata.gz: 8cef03dcbe9009b2cff67aa6d24f9ed7c0eff2856b6bb3deddb1a7ce66b3f97d7cb89616fe884c1c7cebc336598c2c55c77c814cf64252abe275558e7ed0aad8
7
+ data.tar.gz: 132e20f915f5ab49dcf330a84dd394f34787432e6c073c9a774e64ad52316ccf6b244eb8908405776afc1ad59968b007581ee9b6b9b21b354748300486c2ec57
data/CHANGELOG.md ADDED
File without changes
data/README.md ADDED
File without changes
data/bin/one44-cli ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift File.expand_path('../lib', __dir__)
5
+ require 'one44'
6
+ require 'one44/adaptors/io/cli'
7
+ require 'one44-cli'
8
+
9
+
10
+ include One44::Adaptors::IO::CLI
11
+
12
+ test = One44::Test.new(STDOUT)
13
+ test.start('indigo', randomise(questions))
14
+ test.questions.each_with_index do |_question, index|
15
+ test.provide clean(answer), index
16
+ STDOUT.puts
17
+ STDOUT.print "#{test.questions[index + 1]}: " unless test.questions[index] == test.questions.last
18
+ end
19
+ STDOUT.print 'Result: '
20
+ STDOUT.print test.result.to_s
21
+ STDOUT.puts
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module One44
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
metadata CHANGED
@@ -1,23 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one44-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Bonsu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-07 00:00:00.000000000 Z
12
- dependencies: []
13
- description: Marks math problems
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: one44
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.2
27
+ description: Marks math problems'
14
28
  email: adam@bonsu.io
15
- executables: []
29
+ executables:
30
+ - one44-cli
16
31
  extensions: []
17
- extra_rdoc_files: []
32
+ extra_rdoc_files:
33
+ - README.md
34
+ - CHANGELOG.md
18
35
  files:
19
- - Gemfile
20
- - Gemfile.lock
36
+ - CHANGELOG.md
37
+ - README.md
38
+ - bin/one44-cli
21
39
  - lib/one44-cli.rb
22
40
  - lib/one44-cli/version.rb
23
41
  homepage: https://github.com/adambonsu/one44-cli
@@ -32,7 +50,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
32
50
  requirements:
33
51
  - - ">="
34
52
  - !ruby/object:Gem::Version
35
- version: 2.7.0
53
+ version: 2.7.2
36
54
  required_rubygems_version: !ruby/object:Gem::Requirement
37
55
  requirements:
38
56
  - - ">="
data/Gemfile DELETED
@@ -1,11 +0,0 @@
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 DELETED
@@ -1,82 +0,0 @@
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