numbers_and_words 0.11.5 → 0.11.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +5 -5
  2. data/README.rdoc +1 -3
  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/pluralization.rb +2 -0
  15. data/lib/numbers_and_words/i18n/plurals/cs.rb +2 -0
  16. data/lib/numbers_and_words/i18n/plurals/fr.rb +2 -0
  17. data/lib/numbers_and_words/i18n/plurals/lt.rb +2 -0
  18. data/lib/numbers_and_words/i18n/plurals/lv.rb +2 -0
  19. data/lib/numbers_and_words/i18n/plurals/plurals.rb +2 -0
  20. data/lib/numbers_and_words/i18n/plurals/ru.rb +2 -0
  21. data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
  22. data/lib/numbers_and_words/strategies.rb +2 -0
  23. data/lib/numbers_and_words/strategies/array_joiner.rb +2 -0
  24. data/lib/numbers_and_words/strategies/array_joiner/languages.rb +2 -0
  25. data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +2 -0
  26. data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +2 -0
  27. data/lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb +2 -0
  28. data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
  29. data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +2 -0
  30. data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +2 -0
  31. data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +2 -0
  32. data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
  33. data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +2 -0
  34. data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
  35. data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
  36. data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +2 -0
  37. data/lib/numbers_and_words/strategies/figures_converter.rb +2 -0
  38. data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +2 -0
  39. data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +2 -0
  40. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs.rb +2 -0
  41. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +2 -0
  42. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +2 -0
  43. data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +3 -0
  44. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +2 -0
  45. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/base.rb +2 -0
  46. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb +2 -0
  47. data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/integral.rb +2 -0
  48. data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
  49. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +2 -0
  50. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +2 -0
  51. data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +2 -0
  52. data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +2 -0
  53. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +2 -0
  54. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +3 -1
  55. data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +2 -0
  56. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +2 -0
  57. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +2 -0
  58. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +2 -0
  59. data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +2 -0
  60. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +2 -0
  61. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +2 -0
  62. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +2 -0
  63. data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +2 -0
  64. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +2 -0
  65. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +2 -0
  66. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +2 -0
  67. data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +2 -0
  68. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
  69. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +2 -0
  70. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +2 -0
  71. data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +2 -0
  72. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
  73. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +2 -0
  74. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +2 -0
  75. data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +2 -0
  76. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +2 -0
  77. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +2 -0
  78. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +2 -0
  79. data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +2 -0
  80. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +2 -0
  81. data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +2 -0
  82. data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +2 -0
  83. data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +2 -0
  84. data/lib/numbers_and_words/strategies/figures_converter/languages/en-GB.rb +2 -0
  85. data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +3 -7
  86. data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +11 -11
  87. data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +2 -0
  88. data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +2 -0
  89. data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +2 -0
  90. data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +2 -0
  91. data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +2 -0
  92. data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +2 -0
  93. data/lib/numbers_and_words/strategies/figures_converter/languages/hy.rb +2 -0
  94. data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -0
  95. data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +2 -0
  96. data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +2 -0
  97. data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +2 -0
  98. data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +3 -3
  99. data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +9 -3
  100. data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +2 -0
  101. data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
  102. data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -0
  103. data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +2 -0
  104. data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
  105. data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +4 -0
  106. data/lib/numbers_and_words/strategies/figures_converter/options.rb +14 -1
  107. data/lib/numbers_and_words/strategies/figures_converter/options/base.rb +5 -0
  108. data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
  109. data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
  110. data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
  111. data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +2 -0
  112. data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +3 -14
  113. data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +3 -15
  114. data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +3 -17
  115. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +2 -0
  116. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union.rb +2 -0
  117. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/ordinal.rb +2 -0
  118. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +2 -0
  119. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen.rb +2 -0
  120. data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero.rb +2 -0
  121. data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +2 -0
  122. data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +2 -0
  123. data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +3 -10
  124. data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +6 -13
  125. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +2 -0
  126. data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +3 -17
  127. data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +2 -0
  128. data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +2 -0
  129. data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +3 -17
  130. data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +3 -17
  131. data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
  132. data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +3 -50
  133. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +2 -0
  134. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +3 -18
  135. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +3 -15
  136. data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +3 -17
  137. data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
  138. data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +3 -17
  139. data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
  140. data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +3 -17
  141. data/lib/numbers_and_words/translations.rb +2 -0
  142. data/lib/numbers_and_words/translations/base.rb +2 -0
  143. data/lib/numbers_and_words/translations/cs.rb +2 -0
  144. data/lib/numbers_and_words/translations/de.rb +2 -0
  145. data/lib/numbers_and_words/translations/en-GB.rb +2 -0
  146. data/lib/numbers_and_words/translations/en.rb +2 -0
  147. data/lib/numbers_and_words/translations/es.rb +10 -5
  148. data/lib/numbers_and_words/translations/et.rb +2 -0
  149. data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +2 -0
  150. data/lib/numbers_and_words/translations/families/base.rb +2 -0
  151. data/lib/numbers_and_words/translations/families/cyrillic.rb +2 -0
  152. data/lib/numbers_and_words/translations/families/latin.rb +2 -0
  153. data/lib/numbers_and_words/translations/fr.rb +9 -7
  154. data/lib/numbers_and_words/translations/hu.rb +2 -0
  155. data/lib/numbers_and_words/translations/hy.rb +2 -0
  156. data/lib/numbers_and_words/translations/it.rb +2 -0
  157. data/lib/numbers_and_words/translations/ka.rb +3 -1
  158. data/lib/numbers_and_words/translations/lt.rb +2 -0
  159. data/lib/numbers_and_words/translations/lv.rb +2 -0
  160. data/lib/numbers_and_words/translations/nl.rb +3 -0
  161. data/lib/numbers_and_words/translations/pt-BR.rb +9 -2
  162. data/lib/numbers_and_words/translations/pt.rb +3 -0
  163. data/lib/numbers_and_words/translations/ru.rb +2 -0
  164. data/lib/numbers_and_words/translations/se.rb +2 -0
  165. data/lib/numbers_and_words/translations/tr.rb +2 -0
  166. data/lib/numbers_and_words/translations/ua.rb +2 -0
  167. data/lib/numbers_and_words/translations/vi.rb +5 -2
  168. data/lib/numbers_and_words/version.rb +3 -1
  169. data/lib/numbers_and_words/wrappers.rb +2 -0
  170. data/lib/numbers_and_words/wrappers/float.rb +3 -1
  171. data/lib/numbers_and_words/wrappers/integer.rb +2 -0
  172. metadata +7 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c601603640f2fd42a075ea704686dd34fedcaac6
4
- data.tar.gz: 8f39dec70454ee3ee56416a686d5465b91191631
2
+ SHA256:
3
+ metadata.gz: 9948dcaf97539c2dfe2e51fbdd0438ad52628160feabfad193e83f9e34ccc777
4
+ data.tar.gz: 5949653822dc333caaae102a9a416a2fbbbe570a3a8ae198c5ef690e669b488a
5
5
  SHA512:
6
- metadata.gz: f3674f9549f9eabbe6611df88d22bebc05ef47506d627c6305fdfac36d79fd63b17fc8df711b61db6091a17a14d07fc48f2f80423fe59668ea2738beff8eb26a
7
- data.tar.gz: 8b09e7b44a277d9213d0d9edc408b750e7a5e904e8cc9f779808862f8fb08b075d29b2e7127e18921e8c6be042bf19f7bc69c9b30b5367ac414d33dd8f80983f
6
+ metadata.gz: dd3a796b8e851fb295a45d88ee4d2d9316153560b20306c075e3c2df265033d06d787cffb666770b8a3e3ca4634338e0fbbec9d49ca95c50af4d231cfe46a9b5
7
+ data.tar.gz: 0f589eddd20bcbf1f5294a481d5ad5f8ec642356f36591019526a9e57352a60a7305ad08f7d2af1b48cc872cdd96c9fd02c90c067678a76a3e5ae3c0943943d4
@@ -1,7 +1,6 @@
1
1
  == numbers_and_words
2
2
 
3
3
  {<img src="https://badge.fury.io/rb/numbers_and_words.svg?branch=master" alt="Gem Version" />}[http://badge.fury.io/rb/numbers_and_words]
4
- {<img src="https://gemnasium.com/kslazarev/numbers_and_words.svg?branch=master" alt="Dependency Status" />}[https://gemnasium.com/kslazarev/numbers_and_words]
5
4
  {<img src="https://codeclimate.com/github/kslazarev/numbers_and_words.svg?branch=master" />}[https://codeclimate.com/github/kslazarev/numbers_and_words]
6
5
  {<img src="https://secure.travis-ci.org/kslazarev/numbers_and_words.svg?branch=master" />}[http://travis-ci.org/kslazarev/numbers_and_words]
7
6
  {<img src="https://coveralls.io/repos/kslazarev/numbers_and_words/badge.svg?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/kslazarev/numbers_and_words]
@@ -326,8 +325,7 @@ Converte números em letras utilizando a biblioteca I18n.
326
325
 
327
326
  == Requirements / Требования / Configuration Requise
328
327
 
329
- * 1.9.3 <= Ruby (compatible with/совместимость с/compatible avec Ruby 1.9, JRuby and/и/et Rubinius);
330
- * 1.8.7 <= Ruby <= 1.9.2 (-v 0.9.0)
328
+ * 2.3 <= Ruby (compatible with/совместимость с/compatible avec Ruby 2.3 and/и/et JRuby);
331
329
  * 0.5.0 <= I18n (earlier versions not tested/ранние версии не тестировались/versions précédentes non testées);
332
330
 
333
331
  == Installation / Установка / Installation
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'rubygems'
2
4
  require 'i18n'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/core_ext/integer'
2
4
  require 'numbers_and_words/core_ext/float'
3
5
  require 'numbers_and_words/core_ext/array'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Array
2
4
  def to_words(options = {})
3
5
  map { |element| element.to_words options }
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Float
2
4
  def to_words(options = {})
3
5
  NumbersAndWords::Wrappers::Float.new(self).to_words options
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Integer
2
4
  def to_words(options = {})
3
5
  NumbersAndWords::Wrappers::Integer.new(self).to_words options
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/figures_array'
2
4
  require 'numbers_and_words/helper_classes/words_array'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module ArrayExtensions
3
5
  module Helpers
@@ -37,7 +39,7 @@ module NumbersAndWords
37
39
  end
38
40
 
39
41
  def ones
40
- self[0].to_i if self[0].to_i > 0
42
+ self[0].to_i if self[0].to_i.positive?
41
43
  end
42
44
 
43
45
  def teens
@@ -45,7 +47,7 @@ module NumbersAndWords
45
47
  end
46
48
 
47
49
  def tens
48
- self[1].to_i if self[1] && self[1].to_i > 0
50
+ self[1].to_i if self[1].to_i.positive?
49
51
  end
50
52
 
51
53
  def tens_with_ones
@@ -53,7 +55,7 @@ module NumbersAndWords
53
55
  end
54
56
 
55
57
  def hundreds
56
- self[2].to_i if self[2].to_i > 0
58
+ self[2].to_i if self[2].to_i.positive?
57
59
  end
58
60
 
59
61
  def round_hundred?
@@ -77,7 +79,7 @@ module NumbersAndWords
77
79
  end
78
80
 
79
81
  def ordinal_index
80
- index { |figure| figure != 0 }
82
+ index(&:positive?)
81
83
  end
82
84
 
83
85
  def ordinal_capacity
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/array_extensions/helpers'
2
4
 
3
5
  module NumbersAndWords
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/helper_classes/array_extensions/helpers'
2
4
 
3
5
  module NumbersAndWords
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/i18n/pluralization'
2
4
  require 'numbers_and_words/i18n/initialization'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Initialization
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/i18n/plurals/cs'
2
4
  require 'numbers_and_words/i18n/plurals/ru'
3
5
  require 'numbers_and_words/i18n/plurals/ua'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Hash[
2
4
  NumbersAndWords::I18n::Pluralization.languages.map do |language|
3
5
  [language.to_sym, {
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module I18n
3
5
  module Plurals
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter'
2
4
  require 'numbers_and_words/strategies/array_joiner'
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/array_joiner/languages'
2
4
 
3
5
  module NumbersAndWords
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/array_joiner/languages/families/base'
2
4
 
3
5
  require 'numbers_and_words/strategies/array_joiner/languages/base'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module ArrayJoiner
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/languages'
2
4
  require 'numbers_and_words/strategies/figures_converter/options'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/decorators/base'
2
4
  require 'numbers_and_words/strategies/figures_converter/decorators/en'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators/en-GB'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/decorators/cs/base'
2
4
  require 'numbers_and_words/strategies/figures_converter/decorators/cs/fractional'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators/cs/integral'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -14,6 +16,7 @@ module NumbersAndWords
14
16
  def integral_significance
15
17
  figs = figures.reverse.join.to_i
16
18
  return nil if @options[:remove_zero] && figs.zero?
19
+
17
20
  @strategy.translations.integral figs
18
21
  end
19
22
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/base'
2
4
  require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/integral'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/decorators/en/base'
2
4
  require 'numbers_and_words/strategies/figures_converter/decorators/en/fractional'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators/en/integral'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'numbers_and_words/strategies/figures_converter/decorators/es/base'
2
4
  require 'numbers_and_words/strategies/figures_converter/decorators/es/fractional'
3
5
  require 'numbers_and_words/strategies/figures_converter/decorators/es/integral'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter
@@ -20,7 +22,7 @@ module NumbersAndWords
20
22
  end
21
23
 
22
24
  def figures
23
- @strategy.figures
25
+ @strategy.figures.reverse
24
26
  end
25
27
 
26
28
  def zero_length
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module NumbersAndWords
2
4
  module Strategies
3
5
  module FiguresConverter