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.
- checksums.yaml +5 -5
- data/README.rdoc +23 -5
- 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 +2 -0
- data/lib/numbers_and_words/helper_classes/words_array.rb +2 -0
- 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.cs.yml +37 -26
- data/lib/numbers_and_words/i18n/locales/numbers.de.yml +5 -4
- data/lib/numbers_and_words/i18n/locales/numbers.en-GB.yml +24 -8
- data/lib/numbers_and_words/i18n/locales/numbers.en.yml +10 -6
- data/lib/numbers_and_words/i18n/locales/numbers.es.yml +6 -5
- data/lib/numbers_and_words/i18n/locales/numbers.et.yml +4 -4
- data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +45 -41
- data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +11 -7
- data/lib/numbers_and_words/i18n/locales/numbers.hy.yml +7 -0
- data/lib/numbers_and_words/i18n/locales/numbers.it.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +6 -14
- data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +4 -5
- data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +4 -5
- data/lib/numbers_and_words/i18n/locales/numbers.nl.yml +4 -3
- data/lib/numbers_and_words/i18n/locales/numbers.pt-BR.yml +51 -22
- data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +21 -8
- data/lib/numbers_and_words/i18n/locales/numbers.ru.yml +39 -27
- data/lib/numbers_and_words/i18n/locales/numbers.se.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.tr.yml +3 -3
- data/lib/numbers_and_words/i18n/locales/numbers.ua.yml +39 -15
- data/lib/numbers_and_words/i18n/locales/numbers.vi.yml +13 -0
- data/lib/numbers_and_words/i18n/pluralization.rb +3 -1
- data/lib/numbers_and_words/i18n/plurals/cs.rb +15 -10
- data/lib/numbers_and_words/i18n/plurals/fr.rb +5 -3
- data/lib/numbers_and_words/i18n/plurals/lt.rb +10 -7
- data/lib/numbers_and_words/i18n/plurals/lv.rb +5 -3
- data/lib/numbers_and_words/i18n/plurals/plurals.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/ru.rb +15 -10
- 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 +3 -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 +3 -1
- 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 +5 -3
- 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 +12 -0
- data/lib/numbers_and_words/strategies/figures_converter.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +3 -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 +3 -1
- 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 +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +14 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages.rb +14 -15
- data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +4 -2
- data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +4 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +7 -7
- 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 -9
- data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +11 -13
- data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +2 -2
- 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 +12 -12
- data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +2 -2
- data/lib/numbers_and_words/strategies/figures_converter/languages/{families/latin.rb → hy.rb} +3 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +13 -15
- data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +8 -12
- data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +4 -14
- data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +3 -5
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +14 -12
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +3 -3
- 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 -1
- data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +4 -4
- data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +100 -0
- data/lib/numbers_and_words/strategies/figures_converter/options.rb +15 -2
- 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 +3 -10
- 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 +4 -0
- data/lib/numbers_and_words/translations/base.rb +3 -1
- data/lib/numbers_and_words/translations/cs.rb +6 -31
- data/lib/numbers_and_words/translations/de.rb +5 -3
- data/lib/numbers_and_words/translations/en-GB.rb +5 -1
- data/lib/numbers_and_words/translations/en.rb +2 -0
- data/lib/numbers_and_words/translations/es.rb +15 -25
- data/lib/numbers_and_words/translations/et.rb +4 -7
- data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +6 -4
- data/lib/numbers_and_words/translations/families/base.rb +5 -3
- data/lib/numbers_and_words/translations/families/cyrillic.rb +6 -8
- data/lib/numbers_and_words/translations/families/latin.rb +2 -0
- data/lib/numbers_and_words/translations/fr.rb +15 -18
- data/lib/numbers_and_words/translations/hu.rb +4 -7
- data/lib/numbers_and_words/translations/hy.rb +21 -0
- data/lib/numbers_and_words/translations/it.rb +2 -0
- data/lib/numbers_and_words/translations/ka.rb +6 -14
- data/lib/numbers_and_words/translations/lt.rb +4 -11
- data/lib/numbers_and_words/translations/lv.rb +4 -11
- data/lib/numbers_and_words/translations/nl.rb +6 -2
- data/lib/numbers_and_words/translations/pt-BR.rb +23 -23
- data/lib/numbers_and_words/translations/pt.rb +5 -11
- data/lib/numbers_and_words/translations/ru.rb +2 -17
- data/lib/numbers_and_words/translations/se.rb +2 -0
- data/lib/numbers_and_words/translations/tr.rb +2 -4
- data/lib/numbers_and_words/translations/ua.rb +2 -13
- data/lib/numbers_and_words/translations/vi.rb +24 -0
- 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 +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
|
-
|
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
|
-
|
18
|
-
end
|
14
|
+
return t(:hundreds)[number] if options[:is_hundred]
|
19
15
|
|
20
|
-
|
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,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
|
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.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:
|
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: '
|
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: []
|
@@ -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:
|
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
|
-
|
261
|
-
rubygems_version: 2.6.12
|
274
|
+
rubygems_version: 3.1.2
|
262
275
|
signing_key:
|
263
276
|
specification_version: 4
|
264
|
-
summary:
|
277
|
+
summary: Spell out numbers in several languages
|
265
278
|
test_files: []
|