te_reo_maori 0.1.3 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/te_reo_maori +33 -25
- data/lib/te_reo_maori.rb +12 -9
- data/lib/te_reo_maori/tau.rb +83 -78
- data/lib/te_reo_maori/version.rb +5 -5
- data/lib/te_reo_maori/whakahua.rb +51 -25
- data/lib/te_reo_maori/whakahua_rorohiko.rb +12 -0
- data/lib/te_reo_maori/whakamatautau_pangarau.rb +22 -0
- metadata +5 -16
- data/.gitignore +0 -13
- data/.gitlab-ci.yml +0 -28
- data/.rspec +0 -3
- data/CODE_OF_CONDUCT.md +0 -74
- data/ChangeLog +0 -4
- data/Dockerfile +0 -10
- data/Gemfile +0 -9
- data/LICENSE.txt +0 -21
- data/README.md +0 -59
- data/Rakefile +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/te_reo_maori.gemspec +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbb6a3a38a2729f7192c8341d17ac25db0e99b0c9fd0449861f19fa9d02c8fd7
|
4
|
+
data.tar.gz: 60e68ce341c57a804a293597a1d001d8f41c21bfbb5838bf03d7bd3988b260f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b216aa1ee469e515572994c6ceb2a915fc78624f6e83c701c3fa0b0aa30bbe99cd5a375e16680cb0cd44c67df968d6bf13eded16537716d7696672e255a1ee9d
|
7
|
+
data.tar.gz: 8af602fc826064236a6f8fe35c60b44b9760bac7af91f6e9aa01427287a71a9aece20d838c539d30589c891bca029aac1781f2d7545c7f642a0d098adf9c55c4
|
data/exe/te_reo_maori
CHANGED
@@ -1,25 +1,33 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'irb'
|
5
|
-
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
-
require 'te_reo_maori'
|
7
|
-
|
8
|
-
def putanga
|
9
|
-
exit
|
10
|
-
end
|
11
|
-
|
12
|
-
extend Tau # Make numbers available
|
13
|
-
|
14
|
-
|
15
|
-
puts '
|
16
|
-
puts '
|
17
|
-
puts '
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
puts
|
22
|
-
|
23
|
-
puts 'If you
|
24
|
-
|
25
|
-
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'irb'
|
5
|
+
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
|
6
|
+
require 'te_reo_maori'
|
7
|
+
|
8
|
+
def putanga
|
9
|
+
exit
|
10
|
+
end
|
11
|
+
|
12
|
+
extend Tau # Make numbers available
|
13
|
+
extend WhakamatautauPangarau
|
14
|
+
|
15
|
+
puts 'Nau mai haere mai. Welcome to this application for learning and interacting with Maori.'
|
16
|
+
puts 'Type "putanga" to exit'
|
17
|
+
puts 'Type "pangarau" for maths test'
|
18
|
+
puts 'Try and perform +, -, * (times), / (divide) with Maori'
|
19
|
+
puts 'The numbers are: '
|
20
|
+
Tau.rarangi.each do |tau, whakamaoritanga|
|
21
|
+
puts "#{tau}: #{whakamaoritanga}"
|
22
|
+
end
|
23
|
+
puts 'If you type a number and press you will see Maori equivalent. Numbers > 10 must be wrapped in (). Greatest supported is 999'
|
24
|
+
puts 'Example of bigger numbers. 12: "tekau ma rua". Add 23 + 33: "(rua tekau ma toru) + (toru tekau ma toru)"'
|
25
|
+
puts 'See integer form by calling "tau", e.g., "((rua tekau ma toru) + (toru tekau ma toru)).tau" '
|
26
|
+
puts ''
|
27
|
+
puts 'Try programming with loops with "tena_ano" (to iterate) and "kupu" (speak).
|
28
|
+
E.g.,
|
29
|
+
(tahi..iwa).tena_ano { |tau| kupu tau }
|
30
|
+
%w[Maui Bob Sandy].tena_ano { |ingoa| kupu "Haerae Mai #{ingoa}" }'
|
31
|
+
puts 'If you have any ideas on how this can be improved add issue to https://gitlab.com/samuel-garratt/te_reo_maori/-/issues'
|
32
|
+
|
33
|
+
IRB.start(__FILE__)
|
data/lib/te_reo_maori.rb
CHANGED
@@ -1,9 +1,12 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'te_reo_maori/version'
|
4
|
-
require 'te_reo_maori/tau'
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'te_reo_maori/version'
|
4
|
+
require 'te_reo_maori/tau'
|
5
|
+
require 'te_reo_maori/whakamatautau_pangarau'
|
6
|
+
require_relative 'te_reo_maori/whakahua_rorohiko'
|
7
|
+
|
8
|
+
module TeReoMaori
|
9
|
+
class Error < StandardError; end
|
10
|
+
end
|
11
|
+
|
12
|
+
extend WhakahuaRorohiko
|
data/lib/te_reo_maori/tau.rb
CHANGED
@@ -1,78 +1,83 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'whakahua'
|
4
|
-
|
5
|
-
# Number in Maori
|
6
|
-
module Tau
|
7
|
-
def whakahua(tau)
|
8
|
-
raise "Class '#{tau.class}' not implmemented" unless tau.is_a? Integer
|
9
|
-
|
10
|
-
tau.whakahua
|
11
|
-
end
|
12
|
-
|
13
|
-
# List numbers
|
14
|
-
def self.rarangi
|
15
|
-
{
|
16
|
-
1 => 'tahi', 2 => 'rua', 3 => 'toru', 4 => '
|
17
|
-
8 => '
|
18
|
-
}
|
19
|
-
end
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'whakahua'
|
4
|
+
|
5
|
+
# Number in Maori
|
6
|
+
module Tau
|
7
|
+
def whakahua(tau)
|
8
|
+
raise "Class '#{tau.class}' not implmemented" unless tau.is_a? Integer
|
9
|
+
|
10
|
+
tau.whakahua
|
11
|
+
end
|
12
|
+
|
13
|
+
# List numbers
|
14
|
+
def self.rarangi
|
15
|
+
{
|
16
|
+
1 => 'tahi', 2 => 'rua', 3 => 'toru', 4 => 'whā', 5 => 'rima', 6 => 'ono', 7 => 'whitu',
|
17
|
+
8 => 'waru', 9 => 'iwa', 10 => 'tekau'
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# Handles multiple digits
|
22
|
+
def digit(tau, second_digit)
|
23
|
+
return tau if second_digit.nil?
|
24
|
+
|
25
|
+
((tau - 1) * 10) + second_digit
|
26
|
+
end
|
27
|
+
|
28
|
+
# 1
|
29
|
+
def tahi
|
30
|
+
1
|
31
|
+
end
|
32
|
+
|
33
|
+
# 2
|
34
|
+
def rua(second_digit = nil)
|
35
|
+
digit(2, second_digit)
|
36
|
+
end
|
37
|
+
|
38
|
+
# 3
|
39
|
+
def toru(second_digit = nil)
|
40
|
+
digit(3, second_digit)
|
41
|
+
end
|
42
|
+
|
43
|
+
# 4
|
44
|
+
def wha(second_digit = nil)
|
45
|
+
digit(4, second_digit)
|
46
|
+
end
|
47
|
+
|
48
|
+
alias whā wha
|
49
|
+
|
50
|
+
# 5
|
51
|
+
def rima(second_digit = nil)
|
52
|
+
digit(5, second_digit)
|
53
|
+
end
|
54
|
+
|
55
|
+
# 6
|
56
|
+
def ono(second_digit = nil)
|
57
|
+
digit(6, second_digit)
|
58
|
+
end
|
59
|
+
|
60
|
+
def whitu(second_digit = nil)
|
61
|
+
digit(7, second_digit)
|
62
|
+
end
|
63
|
+
|
64
|
+
def waru(second_digit = nil)
|
65
|
+
digit(8, second_digit)
|
66
|
+
end
|
67
|
+
|
68
|
+
def iwa(second_digit = nil)
|
69
|
+
digit(9, second_digit)
|
70
|
+
end
|
71
|
+
|
72
|
+
# 10. Used to add groups of 10
|
73
|
+
def tekau(extra_digit = nil)
|
74
|
+
extra_digit ? 10 + extra_digit : 10
|
75
|
+
end
|
76
|
+
|
77
|
+
# Add extra digit
|
78
|
+
def ma(extra_digit)
|
79
|
+
extra_digit
|
80
|
+
end
|
81
|
+
|
82
|
+
alias mā ma
|
83
|
+
end
|
data/lib/te_reo_maori/version.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module TeReoMaori
|
4
|
-
VERSION = '0.1.
|
5
|
-
end
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module TeReoMaori
|
4
|
+
VERSION = '0.1.8'
|
5
|
+
end
|
@@ -1,25 +1,51 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
# Extension to Integer for Maori
|
4
|
-
class Integer
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
25
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Extension to Integer for Maori
|
4
|
+
class Integer
|
5
|
+
def inspect
|
6
|
+
whakahua
|
7
|
+
end
|
8
|
+
|
9
|
+
# Numeric form of integer
|
10
|
+
def tau
|
11
|
+
to_s
|
12
|
+
end
|
13
|
+
|
14
|
+
# @param [Integer] upper_part Integer of number of 100s
|
15
|
+
# @param [String] lower_part Already translated part less than 100
|
16
|
+
def add_parts(upper_part, lower_part)
|
17
|
+
if upper_part == 0
|
18
|
+
lower_part
|
19
|
+
elsif upper_part == 1
|
20
|
+
"kotahi rau #{lower_part}"
|
21
|
+
else
|
22
|
+
"#{upper_part.whakahua} rau #{lower_part}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
# Pronounce number
|
27
|
+
def whakahua
|
28
|
+
raise NotImplementedError, "Amount of #{self} implemented yet" if self > 999 || self < 1
|
29
|
+
return 'kotahi rau' if self == 100
|
30
|
+
|
31
|
+
lower_part = self % 100
|
32
|
+
upper_part = self / 100
|
33
|
+
|
34
|
+
last_digit = lower_part % 10
|
35
|
+
last_digit_word = Tau.rarangi[last_digit]
|
36
|
+
|
37
|
+
first_digit = (lower_part / 10)
|
38
|
+
if first_digit.positive?
|
39
|
+
if last_digit.zero?
|
40
|
+
return add_parts(upper_part, 'tekau') if first_digit == 1
|
41
|
+
|
42
|
+
return add_parts upper_part, "#{Tau.rarangi[first_digit]} tekau"
|
43
|
+
end
|
44
|
+
|
45
|
+
return add_parts upper_part, "tekau mā #{last_digit_word}" if first_digit == 1
|
46
|
+
|
47
|
+
return add_parts upper_part, "#{Tau.rarangi[first_digit]} tekau mā #{last_digit_word}"
|
48
|
+
end
|
49
|
+
add_parts upper_part, last_digit_word
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Math test
|
4
|
+
module WhakamatautauPangarau
|
5
|
+
# Mathematics. Start a maths test
|
6
|
+
def pangarau
|
7
|
+
puts 'Nau mai. Please type the answer in Teo Reo Maori (e.g "tahi" for 1) when prompted'
|
8
|
+
tau1 = rand(100).to_i
|
9
|
+
tau2 = rand(100).to_i
|
10
|
+
whakautu_tika = tau1 + tau2
|
11
|
+
puts "#{tau1.inspect} + #{tau2.inspect}?"
|
12
|
+
whakautu = eval(gets).to_i
|
13
|
+
if whakautu == whakautu_tika
|
14
|
+
puts 'Ka pai. Correct!'
|
15
|
+
":)"
|
16
|
+
else
|
17
|
+
puts "Incorrect. You put '#{whakautu.inspect} (#{whakautu})'.
|
18
|
+
Correct answer is '#{whakautu_tika.inspect} (#{whakautu_tika})'"
|
19
|
+
":("
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: te_reo_maori
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Garratt
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tool to aid one to learn Maori and enable one to program in Maori.
|
14
14
|
email:
|
@@ -18,24 +18,13 @@ executables:
|
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
-
- ".gitignore"
|
22
|
-
- ".gitlab-ci.yml"
|
23
|
-
- ".rspec"
|
24
|
-
- CODE_OF_CONDUCT.md
|
25
|
-
- ChangeLog
|
26
|
-
- Dockerfile
|
27
|
-
- Gemfile
|
28
|
-
- LICENSE.txt
|
29
|
-
- README.md
|
30
|
-
- Rakefile
|
31
|
-
- bin/console
|
32
|
-
- bin/setup
|
33
21
|
- exe/te_reo_maori
|
34
22
|
- lib/te_reo_maori.rb
|
35
23
|
- lib/te_reo_maori/tau.rb
|
36
24
|
- lib/te_reo_maori/version.rb
|
37
25
|
- lib/te_reo_maori/whakahua.rb
|
38
|
-
- te_reo_maori.
|
26
|
+
- lib/te_reo_maori/whakahua_rorohiko.rb
|
27
|
+
- lib/te_reo_maori/whakamatautau_pangarau.rb
|
39
28
|
homepage: https://gitlab.com/samuel-garratt/te_reo_maori
|
40
29
|
licenses:
|
41
30
|
- MIT
|
@@ -58,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
47
|
- !ruby/object:Gem::Version
|
59
48
|
version: '0'
|
60
49
|
requirements: []
|
61
|
-
rubygems_version: 3.0.
|
50
|
+
rubygems_version: 3.0.3
|
62
51
|
signing_key:
|
63
52
|
specification_version: 4
|
64
53
|
summary: Tool to aid one to learn Maori and enable one to program in Maori.
|
data/.gitignore
DELETED
data/.gitlab-ci.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
image: ruby:2.6
|
2
|
-
|
3
|
-
test:
|
4
|
-
before_script:
|
5
|
-
- bundle install
|
6
|
-
script:
|
7
|
-
- rake
|
8
|
-
|
9
|
-
include:
|
10
|
-
- template: Code-Quality.gitlab-ci.yml
|
11
|
-
|
12
|
-
docker_build:
|
13
|
-
variables:
|
14
|
-
# Use TLS https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled
|
15
|
-
DOCKER_HOST: tcp://docker:2376
|
16
|
-
DOCKER_TLS_CERTDIR: "/certs"
|
17
|
-
stage: deploy # Part of a later stage
|
18
|
-
services:
|
19
|
-
- docker:19.03.5-dind
|
20
|
-
image: docker:19.03.5
|
21
|
-
script:
|
22
|
-
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
23
|
-
- docker pull --quiet $CI_REGISTRY_IMAGE:latest || true
|
24
|
-
- docker build -t $CI_REGISTRY_IMAGE:latest .
|
25
|
-
- docker push $CI_REGISTRY_IMAGE:latest
|
26
|
-
only:
|
27
|
-
- master
|
28
|
-
needs: ["test"]
|
data/.rspec
DELETED
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,74 +0,0 @@
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
2
|
-
|
3
|
-
## Our Pledge
|
4
|
-
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
-
orientation.
|
11
|
-
|
12
|
-
## Our Standards
|
13
|
-
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
15
|
-
include:
|
16
|
-
|
17
|
-
* Using welcoming and inclusive language
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
19
|
-
* Gracefully accepting constructive criticism
|
20
|
-
* Focusing on what is best for the community
|
21
|
-
* Showing empathy towards other community members
|
22
|
-
|
23
|
-
Examples of unacceptable behavior by participants include:
|
24
|
-
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
-
advances
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
-
* Public or private harassment
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
30
|
-
address, without explicit permission
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
-
professional setting
|
33
|
-
|
34
|
-
## Our Responsibilities
|
35
|
-
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
38
|
-
response to any instances of unacceptable behavior.
|
39
|
-
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
-
threatening, offensive, or harmful.
|
45
|
-
|
46
|
-
## Scope
|
47
|
-
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
-
when an individual is representing the project or its community. Examples of
|
50
|
-
representing a project or community include using an official project e-mail
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
53
|
-
further defined and clarified by project maintainers.
|
54
|
-
|
55
|
-
## Enforcement
|
56
|
-
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
-
reported by contacting the project team at TODO: Write your email address. All
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
63
|
-
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
66
|
-
members of the project's leadership.
|
67
|
-
|
68
|
-
## Attribution
|
69
|
-
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
72
|
-
|
73
|
-
[homepage]: https://contributor-covenant.org
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|
data/ChangeLog
DELETED
data/Dockerfile
DELETED
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2020 TODO: Write your name
|
4
|
-
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
7
|
-
in the Software without restriction, including without limitation the rights
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
10
|
-
furnished to do so, subject to the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
13
|
-
all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
-
THE SOFTWARE.
|
data/README.md
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# TeReoMaori
|
2
|
-
|
3
|
-
Tool to aid one to learn Maori and enable one to program in Maori.
|
4
|
-
|
5
|
-
## Installation
|
6
|
-
|
7
|
-
Execute interactive terminal in docker
|
8
|
-
|
9
|
-
`docker run --rm -it registry.gitlab.com/samuel-garratt/te_reo_maori:latest`
|
10
|
-
|
11
|
-
### As a ruby gem
|
12
|
-
|
13
|
-
Add this line to your application's Gemfile:
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
gem 'te_reo_maori'
|
17
|
-
```
|
18
|
-
|
19
|
-
And then execute:
|
20
|
-
|
21
|
-
$ bundle install
|
22
|
-
|
23
|
-
Or install it yourself as:
|
24
|
-
|
25
|
-
$ gem install te_reo_maori
|
26
|
-
|
27
|
-
## Usage
|
28
|
-
|
29
|
-
Count in maori
|
30
|
-
|
31
|
-
```ruby
|
32
|
-
tahi + rua
|
33
|
-
# Will give a result of 3
|
34
|
-
3.whakahua
|
35
|
-
# Will return 'toru'
|
36
|
-
whakahua(tahi + tahi)
|
37
|
-
# Will return 'rua'
|
38
|
-
```
|
39
|
-
|
40
|
-
Execute in interactive terminal. After installing type `te_reo_maori` on command prompt to open it.
|
41
|
-
|
42
|
-
## Development
|
43
|
-
|
44
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
-
|
46
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
47
|
-
|
48
|
-
## Contributing
|
49
|
-
|
50
|
-
Bug reports and pull requests are welcome on GitLab at https://gitlab.com/samuel-garratt/te_reo_maori. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://gitlab.com/samuel-garratt/te_reo_maori/blob/master/CODE_OF_CONDUCT.md).
|
51
|
-
|
52
|
-
|
53
|
-
## License
|
54
|
-
|
55
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
56
|
-
|
57
|
-
## Code of Conduct
|
58
|
-
|
59
|
-
Everyone interacting in the TeReoMaori project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://gitlab.com/samuel-garratt/te_reo_maori/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'te_reo_maori'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
data/te_reo_maori.gemspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/te_reo_maori/version'
|
4
|
-
|
5
|
-
Gem::Specification.new do |spec|
|
6
|
-
spec.name = 'te_reo_maori'
|
7
|
-
spec.version = TeReoMaori::VERSION
|
8
|
-
spec.authors = ['Samuel Garratt']
|
9
|
-
spec.email = ['samuel.garratt@integrationqa.com']
|
10
|
-
|
11
|
-
spec.summary = 'Tool to aid one to learn Maori and enable one to program in Maori.'
|
12
|
-
spec.description = 'Tool to aid one to learn Maori and enable one to program in Maori.'
|
13
|
-
spec.homepage = 'https://gitlab.com/samuel-garratt/te_reo_maori'
|
14
|
-
spec.license = 'MIT'
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
|
16
|
-
|
17
|
-
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
-
spec.metadata['source_code_uri'] = 'https://gitlab.com/samuel-garratt/te_reo_maori'
|
19
|
-
spec.metadata['changelog_uri'] = 'https://gitlab.com/samuel-garratt/te_reo_maori/ChangeLog'
|
20
|
-
|
21
|
-
# Specify which files should be added to the gem when it is released.
|
22
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
-
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
-
end
|
26
|
-
spec.bindir = 'exe'
|
27
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
-
spec.require_paths = ['lib']
|
29
|
-
end
|