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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cea1d05343bd752d42bd5a3bbc0fcf4bfd5da4f3155a823141f87168cf30ef91
4
- data.tar.gz: 78bdb847c7172cf11d63998c6155610894e965ebb66367ac1d7ac1dd7204bc93
3
+ metadata.gz: 888493dde3753dab96b6a52cf6e923c3809fbf933cbc2660e1336573f7e3680f
4
+ data.tar.gz: 89b86a9e0fefeede4cd44c5be9d13cc5347b37ff658708a86939cd1ebbd53b22
5
5
  SHA512:
6
- metadata.gz: 97b24cc3ab1e0620e83e35ce9edbffbf3d86247c8be309799b4577e1a82ecb4f1f9f440536652421eaad71c501223eef05f0657e399036e0161a3545cf5eb57e
7
- data.tar.gz: c441af3e82c6b222f2577df0506b211c5276a392564688b1bb0c090fde62d751dbe3c48b25bcd702a0f660a82b3aeeabe614fdc92881061e36792fc2d771f1f4
6
+ metadata.gz: 3dedcefdb704f6c04d4782eb18b6455197dff7137c41a4ff5b23bc6dc52ce9d73fc28c56583b9cb0719a5f48d5839d89421ce9ea8691d66707950221c95bf58a
7
+ data.tar.gz: 0214c81325760c026b87dd6af7f99f4f38c5207972ff059a023829b288fe8788ad43db076f2e3e41f639793282e97c38284c7b1d1432e4cc92e2e1d7f7d083aa
data/ChangeLog CHANGED
@@ -1,3 +1,4 @@
1
- * v 0.1.2 whakahua method to pronounce numbers
2
- * v 0.1.1 Has docker image. Handle up to 99
3
- * v 0.1.0 Handles numbers 1-19
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
@@ -14,7 +14,7 @@ module Tau
14
14
  def self.rarangi
15
15
  {
16
16
  1 => 'tahi', 2 => 'rua', 3 => 'toru', 4 => 'wha', 5 => 'rima', 6 => 'ono', 7 => 'waru',
17
- 8 => 'iwa', 10 => 'tekau'
17
+ 8 => 'iwa', 9 => 'iwa', 10 => 'tekau'
18
18
  }
19
19
  end
20
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeReoMaori
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
@@ -11,7 +11,10 @@ class Integer
11
11
 
12
12
  first_digit = (self / 10)
13
13
  if first_digit.positive?
14
- return 'tekau' if last_digit.zero?
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
 
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt