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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d7e033dd690ec5a8b082f109638dedcfca0ecd77ec637426486f283b905d229
4
- data.tar.gz: 733fba9ba22ac5574c552fd9854c961737175e255fce0485ee5031d3958afb91
3
+ metadata.gz: 33fd56f0fbea59f62ed3418fbd08300062f79157c5420213908d57b0f4b10c5b
4
+ data.tar.gz: 61891b379f7de2fc0b89c4c9a45b405053e2f859ee77e7a5afd49d1c1ed3a6f4
5
5
  SHA512:
6
- metadata.gz: b0f769a32c1154f0a7914b9f4929358223dfea55685ae46b18e2a5f3b89403135e5027c465977c3361eed96c47fe046df18a36a6ff99019d41189a80761c29c1
7
- data.tar.gz: 5c84a699c686ec242211b051eb682b7abfc0633d6082fb355cac2cc511380c9e073f71bedee4eda849869ba5c909b300ddfcca5bbc31b28e6554cadaac152ae8
6
+ metadata.gz: 462f7843737bdd38df06ea4d46355d41bc3688f85d8d016aac68e5dc722c1055711f5ca8c028ea6bc24b2a27baf4e6688a3cba4f3c3737a6605b60af5a48b0f9
7
+ data.tar.gz: fab3e451336138f49b03697f412d3fdb61b62687d7765f6a510aa7efdaf4564fd31791167b3ff5ba8e5a0f0ea466bdb3050e7605f072a609f11b1f541c7166ed
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ * 0.1.6 - Allow input of macrons
2
+ - Fixed math test
3
+ - Use Ruby 2.7 in docker
1
4
  * 0.1.5 - Added simple addition math test
2
5
  * 0.1.4 - Pronounce integers on inspection for better terminal experience
3
6
  - Handle up to 999 and accent marks
data/Dockerfile CHANGED
@@ -1,10 +1,10 @@
1
- FROM ruby:2.6
1
+ FROM ruby:2.7
2
2
  MAINTAINER Samuel Garratt
3
3
 
4
4
  RUN mkdir /app
5
5
  WORKDIR /app
6
6
  COPY . /app
7
7
  RUN gem install bundler
8
- RUN bundle install
8
+ RUN bundle install --without development
9
9
 
10
10
  ENTRYPOINT ["ruby", "exe/te_reo_maori"]
data/Gemfile CHANGED
@@ -5,5 +5,7 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in te_reo_maori.gemspec
6
6
  gemspec
7
7
 
8
- gem 'rake', '~> 12.0'
9
- gem 'rspec', '~> 3.0'
8
+ group :development do
9
+ gem 'rake', '~> 12.0'
10
+ gem 'rspec', '~> 3.0'
11
+ end
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:latest`
9
+ `docker run --rm -it registry.gitlab.com/samuel-garratt/te_reo_maori`
10
10
 
11
11
  ### As a ruby gem
12
12
 
@@ -44,6 +44,8 @@ module Tau
44
44
  digit(4, second_digit)
45
45
  end
46
46
 
47
+ alias whā wha
48
+
47
49
  # 5
48
50
  def rima(second_digit = nil)
49
51
  digit(5, second_digit)
@@ -75,4 +77,6 @@ module Tau
75
77
  def ma(extra_digit)
76
78
  extra_digit
77
79
  end
80
+
81
+ alias mā ma
78
82
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeReoMaori
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
5
5
  end
@@ -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 + 1
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: te_reo_maori
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt