one44 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2c7242ca0a7ce77abb1dc5890ddcd4eb9cb0487d05da5c260577eaa804548112
4
+ data.tar.gz: 376df53e1bb31809247e9afa4b5cda3e7558b933e54e4af39bacfb471a19b848
5
+ SHA512:
6
+ metadata.gz: c3072742d3e89c1414db3ccd329f701cd2aacf7d2b54e102da6d24f2a1979186118cef4d6669c8ae2fe2a37e235e92df34b744f08387b57b728618609675e7b2
7
+ data.tar.gz: 17d80d62229526b0a0ee9b2b52be7e2c2f26c13c6b444eb1674ff9c1139981f6431ca89059956fecf85596be95c2781d9957e469df11861e57a1549e0315768d
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gem '144-core', '1.1.2'
6
+
7
+ gem 'pry', '0.12.2'
8
+ gem 'rspec', '3.9.0'
9
+ gem 'rspec-wait'
10
+ gem 'rubocop', '0.91.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,60 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ 144-core (1.1.2)
5
+ ast (2.4.1)
6
+ coderay (1.1.3)
7
+ diff-lcs (1.4.4)
8
+ method_source (0.9.2)
9
+ parallel (1.20.1)
10
+ parser (3.0.0.0)
11
+ ast (~> 2.4.1)
12
+ pry (0.12.2)
13
+ coderay (~> 1.1.0)
14
+ method_source (~> 0.9.0)
15
+ rainbow (3.0.0)
16
+ regexp_parser (2.0.3)
17
+ rexml (3.2.4)
18
+ rspec (3.9.0)
19
+ rspec-core (~> 3.9.0)
20
+ rspec-expectations (~> 3.9.0)
21
+ rspec-mocks (~> 3.9.0)
22
+ rspec-core (3.9.3)
23
+ rspec-support (~> 3.9.3)
24
+ rspec-expectations (3.9.4)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.9.0)
27
+ rspec-mocks (3.9.1)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.9.0)
30
+ rspec-support (3.9.4)
31
+ rspec-wait (0.0.9)
32
+ rspec (>= 3, < 4)
33
+ rubocop (0.91.0)
34
+ parallel (~> 1.10)
35
+ parser (>= 2.7.1.1)
36
+ rainbow (>= 2.2.2, < 4.0)
37
+ regexp_parser (>= 1.7)
38
+ rexml
39
+ rubocop-ast (>= 0.4.0, < 1.0)
40
+ ruby-progressbar (~> 1.7)
41
+ unicode-display_width (>= 1.4.0, < 2.0)
42
+ rubocop-ast (0.8.0)
43
+ parser (>= 2.7.1.5)
44
+ ruby-progressbar (1.11.0)
45
+ unicode-display_width (1.7.0)
46
+
47
+ PLATFORMS
48
+ ruby
49
+ x86_64-darwin-19
50
+ x86_64-darwin-20
51
+
52
+ DEPENDENCIES
53
+ 144-core (= 1.1.2)
54
+ pry (= 0.12.2)
55
+ rspec (= 3.9.0)
56
+ rspec-wait
57
+ rubocop (= 0.91.0)
58
+
59
+ BUNDLED WITH
60
+ 2.1.4
data/lib/one44.rb ADDED
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require '144-core'
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module One44
4
+ module Adaptors
5
+ module IO
6
+ module CLI
7
+ def load_tests_from_csv_file(path, delimiter)
8
+ convert_to_144_format(load_csv_file(path, delimiter))
9
+ end
10
+
11
+ def load_csv_file(path, delimiter)
12
+ require 'csv'
13
+ CSV.read(path, { col_sep: delimiter })
14
+ end
15
+
16
+ def convert_to_144_format(data)
17
+ data.flatten
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ include One44::Adaptors::IO::CLI
@@ -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,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: one44
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.rb
22
+ - lib/one44/adaptors/io/cli.rb
23
+ - lib/one44/version.rb
24
+ homepage: https://github.com/adambonsu/one44
25
+ licenses:
26
+ - MIT
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.7.0
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.1.4
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: You provide the math problems. It marks your answers
47
+ test_files: []