te_reo_maori 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -3
- data/lib/te_reo_maori/tau.rb +1 -1
- data/lib/te_reo_maori/version.rb +1 -1
- data/lib/te_reo_maori/whakahua.rb +4 -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: 888493dde3753dab96b6a52cf6e923c3809fbf933cbc2660e1336573f7e3680f
|
4
|
+
data.tar.gz: 89b86a9e0fefeede4cd44c5be9d13cc5347b37ff658708a86939cd1ebbd53b22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dedcefdb704f6c04d4782eb18b6455197dff7137c41a4ff5b23bc6dc52ce9d73fc28c56583b9cb0719a5f48d5839d89421ce9ea8691d66707950221c95bf58a
|
7
|
+
data.tar.gz: 0214c81325760c026b87dd6af7f99f4f38c5207972ff059a023829b288fe8788ad43db076f2e3e41f639793282e97c38284c7b1d1432e4cc92e2e1d7f7d083aa
|
data/ChangeLog
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
*
|
2
|
-
*
|
3
|
-
*
|
1
|
+
* 0.1.3 Bug fix. 'Whakahua' did not handle 'iwa' and numbers like toru tekau
|
2
|
+
* 0.1.2 whakahua method to pronounce numbers
|
3
|
+
* 0.1.1 Has docker image. Handle up to 99
|
4
|
+
* 0.1.0 Handles numbers 1-19
|
data/lib/te_reo_maori/tau.rb
CHANGED
data/lib/te_reo_maori/version.rb
CHANGED
@@ -11,7 +11,10 @@ class Integer
|
|
11
11
|
|
12
12
|
first_digit = (self / 10)
|
13
13
|
if first_digit.positive?
|
14
|
-
|
14
|
+
if last_digit.zero?
|
15
|
+
return 'tekau' if first_digit == 1
|
16
|
+
return "#{Tau.rarangi[first_digit]} tekau"
|
17
|
+
end
|
15
18
|
|
16
19
|
return "tekau ma #{last_digit_word}" if first_digit == 1
|
17
20
|
|