numbers_and_words 0.11.5 → 0.11.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +49 -9
- data/lib/numbers_and_words.rb +2 -0
- data/lib/numbers_and_words/core_ext.rb +2 -0
- data/lib/numbers_and_words/core_ext/array.rb +2 -0
- data/lib/numbers_and_words/core_ext/float.rb +2 -0
- data/lib/numbers_and_words/core_ext/integer.rb +2 -0
- data/lib/numbers_and_words/helper_classes.rb +2 -0
- data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +6 -4
- data/lib/numbers_and_words/helper_classes/figures_array.rb +8 -2
- data/lib/numbers_and_words/helper_classes/words_array.rb +4 -2
- data/lib/numbers_and_words/i18n.rb +2 -0
- data/lib/numbers_and_words/i18n/initialization.rb +2 -0
- data/lib/numbers_and_words/i18n/locales/numbers.kz.yml +7 -0
- data/lib/numbers_and_words/i18n/pluralization.rb +3 -1
- data/lib/numbers_and_words/i18n/plurals/cs.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/fr.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/lt.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/lv.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/plurals.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/ru.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
- data/lib/numbers_and_words/strategies.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter.rb +4 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +3 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages.rb +3 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +3 -7
- data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +11 -11
- data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/hy.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/kz.rb +12 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +9 -3
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +4 -0
- data/lib/numbers_and_words/strategies/figures_converter/options.rb +14 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/base.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +3 -14
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +3 -15
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/ordinal.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +4 -11
- data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +6 -13
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +3 -50
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +3 -18
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +3 -15
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +3 -17
- data/lib/numbers_and_words/translations.rb +3 -0
- data/lib/numbers_and_words/translations/base.rb +3 -1
- data/lib/numbers_and_words/translations/cs.rb +2 -0
- data/lib/numbers_and_words/translations/de.rb +2 -0
- data/lib/numbers_and_words/translations/en-GB.rb +2 -0
- data/lib/numbers_and_words/translations/en.rb +2 -0
- data/lib/numbers_and_words/translations/es.rb +10 -5
- data/lib/numbers_and_words/translations/et.rb +2 -0
- data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +2 -0
- data/lib/numbers_and_words/translations/families/base.rb +2 -0
- data/lib/numbers_and_words/translations/families/cyrillic.rb +2 -0
- data/lib/numbers_and_words/translations/families/latin.rb +2 -0
- data/lib/numbers_and_words/translations/fr.rb +9 -7
- data/lib/numbers_and_words/translations/hu.rb +2 -0
- data/lib/numbers_and_words/translations/hy.rb +2 -0
- data/lib/numbers_and_words/translations/it.rb +2 -0
- data/lib/numbers_and_words/translations/ka.rb +3 -1
- data/lib/numbers_and_words/translations/kz.rb +9 -0
- data/lib/numbers_and_words/translations/lt.rb +2 -0
- data/lib/numbers_and_words/translations/lv.rb +2 -0
- data/lib/numbers_and_words/translations/nl.rb +3 -0
- data/lib/numbers_and_words/translations/pt-BR.rb +9 -2
- data/lib/numbers_and_words/translations/pt.rb +3 -0
- data/lib/numbers_and_words/translations/ru.rb +2 -0
- data/lib/numbers_and_words/translations/se.rb +2 -0
- data/lib/numbers_and_words/translations/tr.rb +2 -0
- data/lib/numbers_and_words/translations/ua.rb +2 -0
- data/lib/numbers_and_words/translations/vi.rb +5 -2
- data/lib/numbers_and_words/version.rb +3 -1
- data/lib/numbers_and_words/wrappers.rb +2 -0
- data/lib/numbers_and_words/wrappers/float.rb +3 -1
- data/lib/numbers_and_words/wrappers/integer.rb +2 -0
- metadata +28 -22
@@ -1,10 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Base
|
4
6
|
I18N_NAMESPACE = :numbers
|
5
7
|
|
6
8
|
def t(attribute, options = {})
|
7
|
-
::I18n.t attribute, options.merge(scope: I18N_NAMESPACE)
|
9
|
+
::I18n.t attribute, **options.merge(scope: I18N_NAMESPACE)
|
8
10
|
end
|
9
11
|
end
|
10
12
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Es < Base
|
@@ -5,13 +7,14 @@ module NumbersAndWords
|
|
5
7
|
include NumbersAndWords::Translations::Extensions::FractionSignificance
|
6
8
|
|
7
9
|
def zero(_options = {})
|
8
|
-
t(
|
10
|
+
t('ones.male')[0]
|
9
11
|
end
|
10
12
|
|
11
13
|
def ones(number, options = {})
|
12
14
|
return if options[:is_one_thousand]
|
13
|
-
return t(
|
14
|
-
|
15
|
+
return t('ones.apocopated') if number == 1 &&
|
16
|
+
options[:is_apocopated]
|
17
|
+
|
15
18
|
t([:ones, options[:gender]].join('.'))[number]
|
16
19
|
end
|
17
20
|
|
@@ -20,12 +23,14 @@ module NumbersAndWords
|
|
20
23
|
end
|
21
24
|
|
22
25
|
def twenties_with_ones(numbers, options = {})
|
23
|
-
return t(
|
26
|
+
return t('twenties.apocopated') if options[:is_apocopated]
|
27
|
+
|
24
28
|
t([:twenties, options[:gender]].join('.'))[numbers[0]]
|
25
29
|
end
|
26
30
|
|
27
31
|
def hundreds(number, options = {})
|
28
|
-
return t(
|
32
|
+
return t('hundreds.apocopated') if options[:is_apocopated]
|
33
|
+
|
29
34
|
t([:hundreds, options[:gender]].join('.'))[number]
|
30
35
|
end
|
31
36
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Fr < Base
|
@@ -8,16 +10,15 @@ module NumbersAndWords
|
|
8
10
|
|
9
11
|
def tens(number, options = {})
|
10
12
|
return t(:eighty) if number == SPECIAL_TENS_CASE && options[:alone].nil?
|
13
|
+
|
11
14
|
super number, options
|
12
15
|
end
|
13
16
|
|
14
|
-
def tens_with_ones(numbers,
|
15
|
-
if [7, 9].include? numbers[1]
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
[tens(numbers[1], alone: false), ones(numbers[0])].join(separator)
|
20
|
-
end
|
17
|
+
def tens_with_ones(numbers, options = {})
|
18
|
+
return [tens(numbers[1] - 1, alone: false), teens(numbers)].join('-') if [7, 9].include? numbers[1]
|
19
|
+
|
20
|
+
separator = numbers[0] == 1 ? " #{union} " : '-'
|
21
|
+
super numbers, options.merge(separator: separator)
|
21
22
|
end
|
22
23
|
|
23
24
|
def hundreds(number, options = {})
|
@@ -25,6 +26,7 @@ module NumbersAndWords
|
|
25
26
|
hundreds = t(:hundreds, count: count)
|
26
27
|
|
27
28
|
return hundreds if number == 1
|
29
|
+
|
28
30
|
[t(:ones)[number], hundreds].join(' ')
|
29
31
|
end
|
30
32
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Ka < Base
|
@@ -40,7 +42,7 @@ module NumbersAndWords
|
|
40
42
|
def tens_with_ones(numbers, _options = {})
|
41
43
|
range = vigesimal_range(numbers[1])
|
42
44
|
|
43
|
-
minor = if numbers[1] - range[:multiplicative]
|
45
|
+
minor = if (numbers[1] - range[:multiplicative]).positive?
|
44
46
|
teens(numbers)
|
45
47
|
else
|
46
48
|
ones(numbers[0])
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Nl < Base
|
@@ -9,6 +11,7 @@ module NumbersAndWords
|
|
9
11
|
|
10
12
|
def hundreds(number, _options = {})
|
11
13
|
return t(:hundreds) if number == 1
|
14
|
+
|
12
15
|
super number, separator: ''
|
13
16
|
end
|
14
17
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class PtBr < Base
|
@@ -14,6 +16,7 @@ module NumbersAndWords
|
|
14
16
|
|
15
17
|
def ones(number, options = {})
|
16
18
|
return if options[:is_one_thousand]
|
19
|
+
|
17
20
|
t([options[:prefix], :ones, options[:gender]].join('.'))[number]
|
18
21
|
end
|
19
22
|
|
@@ -24,25 +27,29 @@ module NumbersAndWords
|
|
24
27
|
end
|
25
28
|
|
26
29
|
def teens(number, options = {})
|
27
|
-
return [tens(1, options),
|
30
|
+
return [tens(1, options), ones(number[0], options)].join(' ') if ordinal? options
|
31
|
+
|
28
32
|
super(number, options)
|
29
33
|
end
|
30
34
|
|
31
35
|
def tens_with_ones(numbers, options = {})
|
32
36
|
connector = ordinal?(options) ? ' ' : " #{union} "
|
33
|
-
[tens(numbers[1], options),
|
37
|
+
[tens(numbers[1], options), ones(numbers[0], options)].join(connector)
|
34
38
|
end
|
35
39
|
|
36
40
|
def hundreds(number, options = {})
|
37
41
|
return t(:one_hundred) if options[:is_one_hundred] && !ordinal?(options)
|
42
|
+
|
38
43
|
hundreds = t([options[:prefix], :hundreds, options[:gender]].join('.'))[number]
|
39
44
|
return hundreds if ordinal?(options) || options[:is_hundred]
|
45
|
+
|
40
46
|
[hundreds, union].join(' ')
|
41
47
|
end
|
42
48
|
|
43
49
|
def megs(capacity, options = {})
|
44
50
|
return t([options[:prefix], :mega, options[:gender]].join('.'))[capacity] if ordinal?(options)
|
45
51
|
return super(capacity, options) if options[:is_opaque] || options[:is_without_connector]
|
52
|
+
|
46
53
|
suffix = options[:is_with_comma] ? ',' : " #{union}"
|
47
54
|
super(capacity, options) + suffix
|
48
55
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Pt < Base
|
@@ -10,6 +12,7 @@ module NumbersAndWords
|
|
10
12
|
def hundreds(number, options = {})
|
11
13
|
return t(:one_hundred) if options[:is_one_hundred]
|
12
14
|
return t(:hundreds)[number] if options[:is_hundred]
|
15
|
+
|
13
16
|
[t(:hundreds)[number], union].join(' ')
|
14
17
|
end
|
15
18
|
end
|
@@ -1,11 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Translations
|
3
5
|
class Vi < Base
|
4
6
|
include NumbersAndWords::Translations::Families::Latin
|
5
7
|
include NumbersAndWords::Translations::Extensions::FractionSignificance
|
6
8
|
def ones_of_tens(number, options = {})
|
7
|
-
return t(
|
8
|
-
return t(
|
9
|
+
return t('units.tens.one') if number == 1
|
10
|
+
return t('units.tens.five') if number == 5
|
11
|
+
|
9
12
|
ones(number, options)
|
10
13
|
end
|
11
14
|
|
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.
|
4
|
+
version: 0.11.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Lazarev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-05 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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
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: '
|
55
|
-
description:
|
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: []
|
@@ -84,6 +84,7 @@ files:
|
|
84
84
|
- lib/numbers_and_words/i18n/locales/numbers.hy.yml
|
85
85
|
- lib/numbers_and_words/i18n/locales/numbers.it.yml
|
86
86
|
- lib/numbers_and_words/i18n/locales/numbers.ka.yml
|
87
|
+
- lib/numbers_and_words/i18n/locales/numbers.kz.yml
|
87
88
|
- lib/numbers_and_words/i18n/locales/numbers.lt.yml
|
88
89
|
- lib/numbers_and_words/i18n/locales/numbers.lv.yml
|
89
90
|
- lib/numbers_and_words/i18n/locales/numbers.nl.yml
|
@@ -176,6 +177,7 @@ files:
|
|
176
177
|
- lib/numbers_and_words/strategies/figures_converter/languages/hy.rb
|
177
178
|
- lib/numbers_and_words/strategies/figures_converter/languages/it.rb
|
178
179
|
- lib/numbers_and_words/strategies/figures_converter/languages/ka.rb
|
180
|
+
- lib/numbers_and_words/strategies/figures_converter/languages/kz.rb
|
179
181
|
- lib/numbers_and_words/strategies/figures_converter/languages/lt.rb
|
180
182
|
- lib/numbers_and_words/strategies/figures_converter/languages/lv.rb
|
181
183
|
- lib/numbers_and_words/strategies/figures_converter/languages/nl.rb
|
@@ -187,6 +189,10 @@ files:
|
|
187
189
|
- lib/numbers_and_words/strategies/figures_converter/languages/ua.rb
|
188
190
|
- lib/numbers_and_words/strategies/figures_converter/languages/vi.rb
|
189
191
|
- lib/numbers_and_words/strategies/figures_converter/options.rb
|
192
|
+
- lib/numbers_and_words/strategies/figures_converter/options/base.rb
|
193
|
+
- lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb
|
194
|
+
- lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb
|
195
|
+
- lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb
|
190
196
|
- lib/numbers_and_words/strategies/figures_converter/options/cs.rb
|
191
197
|
- lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb
|
192
198
|
- lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb
|
@@ -234,6 +240,7 @@ files:
|
|
234
240
|
- lib/numbers_and_words/translations/hy.rb
|
235
241
|
- lib/numbers_and_words/translations/it.rb
|
236
242
|
- lib/numbers_and_words/translations/ka.rb
|
243
|
+
- lib/numbers_and_words/translations/kz.rb
|
237
244
|
- lib/numbers_and_words/translations/lt.rb
|
238
245
|
- lib/numbers_and_words/translations/lv.rb
|
239
246
|
- lib/numbers_and_words/translations/nl.rb
|
@@ -252,7 +259,7 @@ homepage: http://github.com/kslazarev/numbers_and_words
|
|
252
259
|
licenses:
|
253
260
|
- MIT
|
254
261
|
metadata: {}
|
255
|
-
post_install_message:
|
262
|
+
post_install_message:
|
256
263
|
rdoc_options: []
|
257
264
|
require_paths:
|
258
265
|
- lib
|
@@ -260,16 +267,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
260
267
|
requirements:
|
261
268
|
- - ">="
|
262
269
|
- !ruby/object:Gem::Version
|
263
|
-
version:
|
270
|
+
version: 2.5.0
|
264
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
272
|
requirements:
|
266
273
|
- - ">="
|
267
274
|
- !ruby/object:Gem::Version
|
268
275
|
version: '0'
|
269
276
|
requirements: []
|
270
|
-
|
271
|
-
|
272
|
-
signing_key:
|
277
|
+
rubygems_version: 3.2.4
|
278
|
+
signing_key:
|
273
279
|
specification_version: 4
|
274
|
-
summary:
|
280
|
+
summary: Spell out numbers in several languages
|
275
281
|
test_files: []
|