numbers_and_words 0.11.2 → 0.11.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +5 -5
  2. data/README.rdoc +23 -5
  3. data/lib/numbers_and_words.rb +2 -0
  4. data/lib/numbers_and_words/core_ext.rb +2 -0
  5. data/lib/numbers_and_words/core_ext/array.rb +2 -0
  6. data/lib/numbers_and_words/core_ext/float.rb +2 -0
  7. data/lib/numbers_and_words/core_ext/integer.rb +2 -0
  8. data/lib/numbers_and_words/helper_classes.rb +2 -0
  9. data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +6 -4
  10. data/lib/numbers_and_words/helper_classes/figures_array.rb +2 -0
  11. data/lib/numbers_and_words/helper_classes/words_array.rb +2 -0
  12. data/lib/numbers_and_words/i18n.rb +2 -0
  13. data/lib/numbers_and_words/i18n/initialization.rb +2 -0
  14. data/lib/numbers_and_words/i18n/locales/numbers.cs.yml +37 -26
  15. data/lib/numbers_and_words/i18n/locales/numbers.de.yml +5 -4
  16. data/lib/numbers_and_words/i18n/locales/numbers.en-GB.yml +24 -8
  17. data/lib/numbers_and_words/i18n/locales/numbers.en.yml +10 -6
  18. data/lib/numbers_and_words/i18n/locales/numbers.es.yml +6 -5
  19. data/lib/numbers_and_words/i18n/locales/numbers.et.yml +4 -4
  20. data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +45 -41
  21. data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +11 -7
  22. data/lib/numbers_and_words/i18n/locales/numbers.hy.yml +7 -0
  23. data/lib/numbers_and_words/i18n/locales/numbers.it.yml +3 -3
  24. data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +6 -14
  25. data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +4 -5
  26. data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +4 -5
  27. data/lib/numbers_and_words/i18n/locales/numbers.nl.yml +4 -3
  28. data/lib/numbers_and_words/i18n/locales/numbers.pt-BR.yml +51 -22
  29. data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +21 -8
  30. data/lib/numbers_and_words/i18n/locales/numbers.ru.yml +39 -27
  31. data/lib/numbers_and_words/i18n/locales/numbers.se.yml +3 -3
  32. data/lib/numbers_and_words/i18n/locales/numbers.tr.yml +3 -3
  33. data/lib/numbers_and_words/i18n/locales/numbers.ua.yml +39 -15
  34. data/lib/numbers_and_words/i18n/locales/numbers.vi.yml +13 -0
  35. data/lib/numbers_and_words/i18n/pluralization.rb +3 -1
  36. data/lib/numbers_and_words/i18n/plurals/cs.rb +15 -10
  37. data/lib/numbers_and_words/i18n/plurals/fr.rb +5 -3
  38. data/lib/numbers_and_words/i18n/plurals/lt.rb +10 -7
  39. data/lib/numbers_and_words/i18n/plurals/lv.rb +5 -3
  40. data/lib/numbers_and_words/i18n/plurals/plurals.rb +2 -0
  41. data/lib/numbers_and_words/i18n/plurals/ru.rb +15 -10
  42. data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
  43. data/lib/numbers_and_words/strategies.rb +2 -0
  44. data/lib/numbers_and_words/strategies/array_joiner.rb +2 -0
  45. data/lib/numbers_and_words/strategies/array_joiner/languages.rb +3 -0
  46. data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +2 -0
  47. data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +2 -0
  48. data/lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb +3 -1
  49. data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
  50. data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +2 -0
  51. data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +5 -3
  52. data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +2 -0
  53. data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
  54. data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +2 -0
  55. data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
  56. data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
  57. data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +12 -0
  58. data/lib/numbers_and_words/strategies/figures_converter.rb +2 -0
  59. data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +3 -0
  60. data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +2 -0
  61. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs.rb +2 -0
  62. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +2 -0
  63. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +2 -0
  64. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +3 -0
  65. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +2 -0
  66. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/base.rb +2 -0
  67. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb +2 -0
  68. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/integral.rb +2 -0
  69. data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
  70. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +2 -0
  71. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +2 -0
  72. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +2 -0
  73. data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +2 -0
  74. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +2 -0
  75. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +3 -1
  76. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +2 -0
  77. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +2 -0
  78. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +2 -0
  79. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +2 -0
  80. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +2 -0
  81. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +2 -0
  82. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +2 -0
  83. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +3 -1
  84. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +2 -0
  85. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +2 -0
  86. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +2 -0
  87. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +2 -0
  88. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +2 -0
  89. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
  90. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +2 -0
  91. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +2 -0
  92. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +2 -0
  93. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
  94. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +2 -0
  95. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +2 -0
  96. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +2 -0
  97. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +5 -0
  98. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +14 -0
  99. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +14 -0
  100. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +14 -0
  101. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +14 -15
  102. data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +4 -2
  103. data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +4 -4
  104. data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +7 -7
  105. data/lib/numbers_and_words/strategies/figures_converter/languages/en-GB.rb +2 -0
  106. data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +3 -9
  107. data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +11 -13
  108. data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +2 -2
  109. data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +2 -0
  110. data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +2 -0
  111. data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +2 -0
  112. data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +12 -12
  113. data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +2 -2
  114. data/lib/numbers_and_words/strategies/figures_converter/languages/{families/latin.rb → hy.rb} +3 -4
  115. data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -1
  116. data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +13 -15
  117. data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +8 -12
  118. data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +4 -14
  119. data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +3 -5
  120. data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +14 -12
  121. data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +3 -3
  122. data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
  123. data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -1
  124. data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +4 -4
  125. data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
  126. data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +100 -0
  127. data/lib/numbers_and_words/strategies/figures_converter/options.rb +15 -2
  128. data/lib/numbers_and_words/strategies/figures_converter/options/base.rb +5 -0
  129. data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
  130. data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
  131. data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
  132. data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +2 -0
  133. data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +3 -14
  134. data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +3 -15
  135. data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +3 -17
  136. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +2 -0
  137. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union.rb +2 -0
  138. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/ordinal.rb +2 -0
  139. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +2 -0
  140. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen.rb +2 -0
  141. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero.rb +2 -0
  142. data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +2 -0
  143. data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +2 -0
  144. data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +3 -10
  145. data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +6 -13
  146. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +2 -0
  147. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +3 -17
  148. data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +2 -0
  149. data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +2 -0
  150. data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +3 -17
  151. data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +3 -17
  152. data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
  153. data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +3 -50
  154. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +2 -0
  155. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +3 -18
  156. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +3 -15
  157. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +3 -17
  158. data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
  159. data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +3 -17
  160. data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
  161. data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +3 -17
  162. data/lib/numbers_and_words/translations.rb +4 -0
  163. data/lib/numbers_and_words/translations/base.rb +3 -1
  164. data/lib/numbers_and_words/translations/cs.rb +6 -31
  165. data/lib/numbers_and_words/translations/de.rb +5 -3
  166. data/lib/numbers_and_words/translations/en-GB.rb +5 -1
  167. data/lib/numbers_and_words/translations/en.rb +2 -0
  168. data/lib/numbers_and_words/translations/es.rb +15 -25
  169. data/lib/numbers_and_words/translations/et.rb +4 -7
  170. data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +6 -4
  171. data/lib/numbers_and_words/translations/families/base.rb +5 -3
  172. data/lib/numbers_and_words/translations/families/cyrillic.rb +6 -8
  173. data/lib/numbers_and_words/translations/families/latin.rb +2 -0
  174. data/lib/numbers_and_words/translations/fr.rb +15 -18
  175. data/lib/numbers_and_words/translations/hu.rb +4 -7
  176. data/lib/numbers_and_words/translations/hy.rb +21 -0
  177. data/lib/numbers_and_words/translations/it.rb +2 -0
  178. data/lib/numbers_and_words/translations/ka.rb +6 -14
  179. data/lib/numbers_and_words/translations/lt.rb +4 -11
  180. data/lib/numbers_and_words/translations/lv.rb +4 -11
  181. data/lib/numbers_and_words/translations/nl.rb +6 -2
  182. data/lib/numbers_and_words/translations/pt-BR.rb +23 -23
  183. data/lib/numbers_and_words/translations/pt.rb +5 -11
  184. data/lib/numbers_and_words/translations/ru.rb +2 -17
  185. data/lib/numbers_and_words/translations/se.rb +2 -0
  186. data/lib/numbers_and_words/translations/tr.rb +2 -4
  187. data/lib/numbers_and_words/translations/ua.rb +2 -13
  188. data/lib/numbers_and_words/translations/vi.rb +24 -0
  189. data/lib/numbers_and_words/version.rb +3 -1
  190. data/lib/numbers_and_words/wrappers.rb +2 -0
  191. data/lib/numbers_and_words/wrappers/float.rb +3 -1
  192. data/lib/numbers_and_words/wrappers/integer.rb +2 -0
  193. metadata +33 -20
@@ -1,25 +1,19 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Translations
3
5
  class Pt < Base
4
6
  include NumbersAndWords::Translations::Families::Latin
5
7
 
6
- def tens(numbers, options = {})
7
- options[:alone] = true if options[:alone].nil?
8
- options[:alone] ? super(numbers) : "#{t(:union)} " + super(numbers)
9
- end
10
-
11
8
  def tens_with_ones(numbers, _options = {})
12
- [tens(numbers[1]), " #{t(:union)} ", ones(numbers[0])].join
9
+ super numbers, separator: " #{union} "
13
10
  end
14
11
 
15
12
  def hundreds(number, options = {})
16
13
  return t(:one_hundred) if options[:is_one_hundred]
17
- options[:is_hundred] ? t(:hundreds)[number - 1] : t(:hundreds)[number - 1] + ' e'
18
- end
14
+ return t(:hundreds)[number] if options[:is_hundred]
19
15
 
20
- def megs(capacity, options = {})
21
- options[:is_one] = false if options[:is_one].nil?
22
- options[:is_one] ? t(:mega)[capacity] : t(:megas)[capacity]
16
+ [t(:hundreds)[number], union].join(' ')
23
17
  end
24
18
  end
25
19
  end
@@ -1,25 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Translations
3
5
  class Ru < Base
4
6
  include NumbersAndWords::Translations::Families::Cyrillic
5
7
  include NumbersAndWords::Translations::Extensions::FractionSignificance
6
-
7
- def micros(capacity, number = nil, separator = ' ')
8
- micro, prefix = capacity
9
- micros = t(:micro, count: number)[micro]
10
- [micro_prefix(prefix), micros].compact.join separator
11
- end
12
-
13
- def micro_prefix(capacity)
14
- case capacity
15
- when 2 then t(:sub_micro)[2]
16
- when 1 then t(:sub_micro)[1]
17
- end
18
- end
19
-
20
- # def fraction_separator options = {}
21
- # super if options[:with_fractional_separator]
22
- # end
23
8
  end
24
9
  end
25
10
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Translations
3
5
  class Se < Base
@@ -1,12 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Translations
3
5
  class Tr < Base
4
6
  include NumbersAndWords::Translations::Families::Latin
5
7
 
6
- def tens_with_ones(numbers, _options = {})
7
- super numbers, separator: ' '
8
- end
9
-
10
8
  def hundreds(number, options = {})
11
9
  if number == 1
12
10
  [t([options[:prefix], :hundreds].join('.'))].join options[:separator] || ' '
@@ -1,21 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Translations
3
5
  class Ua < Base
4
6
  include NumbersAndWords::Translations::Families::Cyrillic
5
7
  include NumbersAndWords::Translations::Extensions::FractionSignificance
6
-
7
- def micros(capacity, number = nil, separator = ' ')
8
- micro, prefix = capacity
9
- micros = t(:micro, count: number)[micro]
10
- [micro_prefix(prefix), micros].compact.join separator
11
- end
12
-
13
- def micro_prefix(capacity)
14
- case capacity
15
- when 2 then t(:sub_micro)[2]
16
- when 1 then t(:sub_micro)[1]
17
- end
18
- end
19
8
  end
20
9
  end
21
10
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module NumbersAndWords
4
+ module Translations
5
+ class Vi < Base
6
+ include NumbersAndWords::Translations::Families::Latin
7
+ include NumbersAndWords::Translations::Extensions::FractionSignificance
8
+ def ones_of_tens(number, options = {})
9
+ return t('units.tens.one') if number == 1
10
+ return t('units.tens.five') if number == 5
11
+
12
+ ones(number, options)
13
+ end
14
+
15
+ def tens_with_ones(numbers, options = {})
16
+ [tens(numbers[1]), ones_of_tens(numbers[0], options)].join options[:separator] || ' '
17
+ end
18
+
19
+ def ones_union(number, options = {})
20
+ [t(:ones_union), ones(number, options)].join options[:separator] || ' '
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
- VERSION = '0.11.2'.freeze
4
+ VERSION = '0.11.7'
3
5
  end
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/wrappers/integer'
2
4
  require 'numbers_and_words/wrappers/float'
@@ -1,7 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Wrappers
3
5
  class Float
4
- ZERO_SYMBOL = '0'.freeze
6
+ ZERO_SYMBOL = '0'
5
7
 
6
8
  attr_accessor :number
7
9
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Wrappers
3
5
  class Integer
metadata CHANGED
@@ -1,58 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numbers_and_words
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Lazarev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-14 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "<="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jeweler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '12'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
55
- description: Convert numbers to words using I18N.
54
+ version: '12'
55
+ description: This gem spells out numbers in several languages using the I18n gem.
56
56
  email: k.s.lazarev@gmail.com
57
57
  executables: []
58
58
  extensions: []
@@ -81,6 +81,7 @@ files:
81
81
  - lib/numbers_and_words/i18n/locales/numbers.et.yml
82
82
  - lib/numbers_and_words/i18n/locales/numbers.fr.yml
83
83
  - lib/numbers_and_words/i18n/locales/numbers.hu.yml
84
+ - lib/numbers_and_words/i18n/locales/numbers.hy.yml
84
85
  - lib/numbers_and_words/i18n/locales/numbers.it.yml
85
86
  - lib/numbers_and_words/i18n/locales/numbers.ka.yml
86
87
  - lib/numbers_and_words/i18n/locales/numbers.lt.yml
@@ -92,6 +93,7 @@ files:
92
93
  - lib/numbers_and_words/i18n/locales/numbers.se.yml
93
94
  - lib/numbers_and_words/i18n/locales/numbers.tr.yml
94
95
  - lib/numbers_and_words/i18n/locales/numbers.ua.yml
96
+ - lib/numbers_and_words/i18n/locales/numbers.vi.yml
95
97
  - lib/numbers_and_words/i18n/pluralization.rb
96
98
  - lib/numbers_and_words/i18n/plurals/cs.rb
97
99
  - lib/numbers_and_words/i18n/plurals/fr.rb
@@ -114,6 +116,7 @@ files:
114
116
  - lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb
115
117
  - lib/numbers_and_words/strategies/array_joiner/languages/ru.rb
116
118
  - lib/numbers_and_words/strategies/array_joiner/languages/ua.rb
119
+ - lib/numbers_and_words/strategies/array_joiner/languages/vi.rb
117
120
  - lib/numbers_and_words/strategies/figures_converter.rb
118
121
  - lib/numbers_and_words/strategies/figures_converter/decorators.rb
119
122
  - lib/numbers_and_words/strategies/figures_converter/decorators/base.rb
@@ -153,6 +156,10 @@ files:
153
156
  - lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb
154
157
  - lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb
155
158
  - lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb
159
+ - lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb
160
+ - lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb
161
+ - lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb
162
+ - lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb
156
163
  - lib/numbers_and_words/strategies/figures_converter/languages.rb
157
164
  - lib/numbers_and_words/strategies/figures_converter/languages/base.rb
158
165
  - lib/numbers_and_words/strategies/figures_converter/languages/cs.rb
@@ -164,9 +171,9 @@ files:
164
171
  - lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb
165
172
  - lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb
166
173
  - lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb
167
- - lib/numbers_and_words/strategies/figures_converter/languages/families/latin.rb
168
174
  - lib/numbers_and_words/strategies/figures_converter/languages/fr.rb
169
175
  - lib/numbers_and_words/strategies/figures_converter/languages/hu.rb
176
+ - lib/numbers_and_words/strategies/figures_converter/languages/hy.rb
170
177
  - lib/numbers_and_words/strategies/figures_converter/languages/it.rb
171
178
  - lib/numbers_and_words/strategies/figures_converter/languages/ka.rb
172
179
  - lib/numbers_and_words/strategies/figures_converter/languages/lt.rb
@@ -178,7 +185,12 @@ files:
178
185
  - lib/numbers_and_words/strategies/figures_converter/languages/se.rb
179
186
  - lib/numbers_and_words/strategies/figures_converter/languages/tr.rb
180
187
  - lib/numbers_and_words/strategies/figures_converter/languages/ua.rb
188
+ - lib/numbers_and_words/strategies/figures_converter/languages/vi.rb
181
189
  - lib/numbers_and_words/strategies/figures_converter/options.rb
190
+ - lib/numbers_and_words/strategies/figures_converter/options/base.rb
191
+ - lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb
192
+ - lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb
193
+ - lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb
182
194
  - lib/numbers_and_words/strategies/figures_converter/options/cs.rb
183
195
  - lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb
184
196
  - lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb
@@ -223,6 +235,7 @@ files:
223
235
  - lib/numbers_and_words/translations/families/latin.rb
224
236
  - lib/numbers_and_words/translations/fr.rb
225
237
  - lib/numbers_and_words/translations/hu.rb
238
+ - lib/numbers_and_words/translations/hy.rb
226
239
  - lib/numbers_and_words/translations/it.rb
227
240
  - lib/numbers_and_words/translations/ka.rb
228
241
  - lib/numbers_and_words/translations/lt.rb
@@ -234,6 +247,7 @@ files:
234
247
  - lib/numbers_and_words/translations/se.rb
235
248
  - lib/numbers_and_words/translations/tr.rb
236
249
  - lib/numbers_and_words/translations/ua.rb
250
+ - lib/numbers_and_words/translations/vi.rb
237
251
  - lib/numbers_and_words/version.rb
238
252
  - lib/numbers_and_words/wrappers.rb
239
253
  - lib/numbers_and_words/wrappers/float.rb
@@ -250,16 +264,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
264
  requirements:
251
265
  - - ">="
252
266
  - !ruby/object:Gem::Version
253
- version: '0'
267
+ version: 2.5.0
254
268
  required_rubygems_version: !ruby/object:Gem::Requirement
255
269
  requirements:
256
270
  - - ">="
257
271
  - !ruby/object:Gem::Version
258
272
  version: '0'
259
273
  requirements: []
260
- rubyforge_project:
261
- rubygems_version: 2.6.12
274
+ rubygems_version: 3.1.2
262
275
  signing_key:
263
276
  specification_version: 4
264
- summary: Convert numbers to words using I18N.
277
+ summary: Spell out numbers in several languages
265
278
  test_files: []