te_reo_maori 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +3 -0
- data/Dockerfile +2 -2
- data/Gemfile +4 -2
- data/README.md +1 -1
- data/lib/te_reo_maori/tau.rb +4 -0
- data/lib/te_reo_maori/version.rb +1 -1
- data/lib/te_reo_maori/whakamatautau_pangarau.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33fd56f0fbea59f62ed3418fbd08300062f79157c5420213908d57b0f4b10c5b
|
4
|
+
data.tar.gz: 61891b379f7de2fc0b89c4c9a45b405053e2f859ee77e7a5afd49d1c1ed3a6f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 462f7843737bdd38df06ea4d46355d41bc3688f85d8d016aac68e5dc722c1055711f5ca8c028ea6bc24b2a27baf4e6688a3cba4f3c3737a6605b60af5a48b0f9
|
7
|
+
data.tar.gz: fab3e451336138f49b03697f412d3fdb61b62687d7765f6a510aa7efdaf4564fd31791167b3ff5ba8e5a0f0ea466bdb3050e7605f072a609f11b1f541c7166ed
|
data/ChangeLog
CHANGED
data/Dockerfile
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Tool to aid one to learn Maori and enable one to program in Maori.
|
|
6
6
|
|
7
7
|
Execute interactive terminal in docker
|
8
8
|
|
9
|
-
`docker run --rm -it registry.gitlab.com/samuel-garratt/te_reo_maori
|
9
|
+
`docker run --rm -it registry.gitlab.com/samuel-garratt/te_reo_maori`
|
10
10
|
|
11
11
|
### As a ruby gem
|
12
12
|
|
data/lib/te_reo_maori/tau.rb
CHANGED
data/lib/te_reo_maori/version.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Math test
|
2
4
|
module WhakamatautauPangarau
|
3
5
|
# Mathematics. Start a maths test
|
@@ -5,7 +7,7 @@ module WhakamatautauPangarau
|
|
5
7
|
puts 'Nau mai. Please type the answer in Teo Reo Maori (e.g "tahi" for 1) when prompted'
|
6
8
|
tau1 = rand(100).to_i
|
7
9
|
tau2 = rand(100).to_i
|
8
|
-
whakautu_tika = tau1 + tau2
|
10
|
+
whakautu_tika = tau1 + tau2
|
9
11
|
puts "#{tau1.inspect} + #{tau2.inspect}?"
|
10
12
|
whakautu = eval(gets).to_i
|
11
13
|
if whakautu == whakautu_tika
|