numbers_and_words 0.10.6 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/numbers_and_words.rb +0 -3
- data/lib/numbers_and_words/i18n.rb +1 -1
- data/lib/numbers_and_words/i18n/pluralization.rb +1 -1
- data/lib/numbers_and_words/i18n/plurals/plurals.rb +9 -5
- data/lib/numbers_and_words/i18n/plurals/{pt_br.rb → pt-BR.rb} +0 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages.rb +3 -3
- data/lib/numbers_and_words/strategies/array_joiner/languages/{en_gb.rb → en-GB.rb} +1 -1
- data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +3 -3
- data/lib/numbers_and_words/strategies/array_joiner/languages/{pt_br.rb → pt-BR.rb} +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +4 -4
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br.rb → en-GB.rb} +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/base.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/fractional.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/integral.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb.rb → pt-BR.rb} +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/base.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/fractional.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/integral.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages.rb +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +2 -2
- data/lib/numbers_and_words/strategies/figures_converter/languages/{en_gb.rb → en-GB.rb} +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/{pt_br.rb → pt-BR.rb} +1 -1
- data/lib/numbers_and_words/strategies/figures_converter/options.rb +4 -4
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb.rb → en-GB.rb} +5 -5
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/hundreds_with_union.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/ordinal.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/pronounced.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_hyphen.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_zero.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +2 -2
- data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br.rb → pt-BR.rb} +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/gender.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/ordinal.rb +0 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/remove_zero.rb +0 -0
- data/lib/numbers_and_words/translations.rb +3 -3
- data/lib/numbers_and_words/translations/{en_gb.rb → en-GB.rb} +0 -0
- data/lib/numbers_and_words/translations/{pt_br.rb → pt-BR.rb} +0 -0
- data/lib/numbers_and_words/version.rb +1 -1
- metadata +29 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24a1ed3859badac70258bc6dc9e7022514766a51
|
4
|
+
data.tar.gz: 9a9ac6192b4b521abbffab58a6a391deee38673d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bc908a953dad008f8755560f167ea8b5a10af08e6b9de6c4702267f9c170be4e6f07542ded27744779ccfac223801454d47e1a622f23443ef6c44ef0eefcbab
|
7
|
+
data.tar.gz: cf962a846fbc4a7a7f65464a810ebb9aaa1279c585622da2d0f89035c3441b1dd0637d10bc999027717a1030264d43154bf311b3be165d3c2ca1d09c24e0f0f0
|
data/lib/numbers_and_words.rb
CHANGED
@@ -3,7 +3,7 @@ require 'numbers_and_words/i18n/plurals/ua'
|
|
3
3
|
require 'numbers_and_words/i18n/plurals/fr'
|
4
4
|
require 'numbers_and_words/i18n/plurals/lv'
|
5
5
|
require 'numbers_and_words/i18n/plurals/lt'
|
6
|
-
require 'numbers_and_words/i18n/plurals/
|
6
|
+
require 'numbers_and_words/i18n/plurals/pt-BR'
|
7
7
|
|
8
8
|
module NumbersAndWords
|
9
9
|
module I18n
|
@@ -1,7 +1,11 @@
|
|
1
1
|
Hash[
|
2
|
-
NumbersAndWords::I18n::Pluralization.languages.map
|
3
|
-
[language.to_sym, {
|
4
|
-
:
|
5
|
-
|
6
|
-
|
2
|
+
NumbersAndWords::I18n::Pluralization.languages.map do |language|
|
3
|
+
[language.to_sym, {
|
4
|
+
i18n: {
|
5
|
+
plural: {
|
6
|
+
rule: Object.const_get("NumbersAndWords::I18n::Plurals::#{language.split('-').collect(&:capitalize).join}::RULE")
|
7
|
+
}
|
8
|
+
}
|
9
|
+
}]
|
10
|
+
end
|
7
11
|
]
|
File without changes
|
@@ -3,11 +3,11 @@ require 'numbers_and_words/strategies/array_joiner/languages/families/base'
|
|
3
3
|
require 'numbers_and_words/strategies/array_joiner/languages/base'
|
4
4
|
|
5
5
|
require 'numbers_and_words/strategies/array_joiner/languages/en'
|
6
|
-
require 'numbers_and_words/strategies/array_joiner/languages/
|
6
|
+
require 'numbers_and_words/strategies/array_joiner/languages/en-GB'
|
7
7
|
require 'numbers_and_words/strategies/array_joiner/languages/hu'
|
8
8
|
require 'numbers_and_words/strategies/array_joiner/languages/ru'
|
9
9
|
require 'numbers_and_words/strategies/array_joiner/languages/ua'
|
10
|
-
require 'numbers_and_words/strategies/array_joiner/languages/
|
10
|
+
require 'numbers_and_words/strategies/array_joiner/languages/pt-BR'
|
11
11
|
|
12
12
|
module NumbersAndWords
|
13
13
|
module Strategies
|
@@ -15,7 +15,7 @@ module NumbersAndWords
|
|
15
15
|
module Languages
|
16
16
|
class << self
|
17
17
|
def factory strategy
|
18
|
-
"#{name}::#{I18n.language_class_name}".
|
18
|
+
Object.const_get("#{name}::#{I18n.language_class_name}").new strategy
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -6,11 +6,11 @@ module NumbersAndWords
|
|
6
6
|
module Base
|
7
7
|
|
8
8
|
def elements_logic
|
9
|
-
@elements.first.
|
9
|
+
@elements.first.empty? ? @elements.last : @elements.join(union_element)
|
10
10
|
end
|
11
11
|
|
12
12
|
def union_element
|
13
|
-
union_separator.
|
13
|
+
union_separator.empty? ? ' ' : " #{union_separator} "
|
14
14
|
end
|
15
15
|
|
16
16
|
def union_separator
|
@@ -21,4 +21,4 @@ module NumbersAndWords
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
24
|
-
end
|
24
|
+
end
|
File without changes
|
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'numbers_and_words/strategies/figures_converter/decorators/base'
|
2
2
|
require 'numbers_and_words/strategies/figures_converter/decorators/en'
|
3
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
3
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB'
|
4
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/ru'
|
5
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
5
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR'
|
6
6
|
require 'numbers_and_words/strategies/figures_converter/decorators/hu'
|
7
7
|
require 'numbers_and_words/strategies/figures_converter/decorators/ua'
|
8
8
|
|
@@ -24,11 +24,11 @@ module NumbersAndWords
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def decorator_class method_name
|
27
|
-
method_name ? decorator_class_name(method_name)
|
27
|
+
method_name ? Object.const_get(decorator_class_name(method_name)) : Decorators::Base
|
28
28
|
end
|
29
29
|
|
30
30
|
def decorator_class_name method_name
|
31
|
-
"#{name}::#{I18n.language_class_name}::#{method_name.to_s.
|
31
|
+
"#{name}::#{I18n.language_class_name}::#{method_name.to_s.split('_').collect(&:capitalize).join}"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
2
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
3
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
1
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/base'
|
2
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional'
|
3
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/integral'
|
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/fractional.rb
RENAMED
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/integral.rb
RENAMED
File without changes
|
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
2
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
3
|
-
require 'numbers_and_words/strategies/figures_converter/decorators/
|
1
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/base'
|
2
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional'
|
3
|
+
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral'
|
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/fractional.rb
RENAMED
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/integral.rb
RENAMED
File without changes
|
@@ -6,7 +6,7 @@ require 'numbers_and_words/strategies/figures_converter/languages/base'
|
|
6
6
|
require 'numbers_and_words/strategies/figures_converter/languages/families/latin'
|
7
7
|
|
8
8
|
require 'numbers_and_words/strategies/figures_converter/languages/en'
|
9
|
-
require 'numbers_and_words/strategies/figures_converter/languages/
|
9
|
+
require 'numbers_and_words/strategies/figures_converter/languages/en-GB'
|
10
10
|
require 'numbers_and_words/strategies/figures_converter/languages/fr'
|
11
11
|
require 'numbers_and_words/strategies/figures_converter/languages/hu'
|
12
12
|
require 'numbers_and_words/strategies/figures_converter/languages/et'
|
@@ -24,7 +24,7 @@ require 'numbers_and_words/strategies/figures_converter/languages/families/cyril
|
|
24
24
|
require 'numbers_and_words/strategies/figures_converter/languages/ru'
|
25
25
|
require 'numbers_and_words/strategies/figures_converter/languages/ua'
|
26
26
|
require 'numbers_and_words/strategies/figures_converter/languages/pt'
|
27
|
-
require 'numbers_and_words/strategies/figures_converter/languages/
|
27
|
+
require 'numbers_and_words/strategies/figures_converter/languages/pt-BR'
|
28
28
|
|
29
29
|
require 'numbers_and_words/strategies/figures_converter/languages/ka'
|
30
30
|
|
@@ -34,7 +34,7 @@ module NumbersAndWords
|
|
34
34
|
module Languages
|
35
35
|
class << self
|
36
36
|
def factory strategy
|
37
|
-
"#{name}::#{I18n.language_class_name}".
|
37
|
+
Object.const_get("#{name}::#{I18n.language_class_name}").new strategy
|
38
38
|
end
|
39
39
|
end
|
40
40
|
end
|
@@ -10,7 +10,7 @@ module NumbersAndWords
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def print_megs_words
|
13
|
-
[print_megs, print_other].
|
13
|
+
[print_megs, print_other].reject(&:empty?).join ' '
|
14
14
|
end
|
15
15
|
|
16
16
|
def complex_number_to_words
|
@@ -41,7 +41,7 @@ module NumbersAndWords
|
|
41
41
|
def print_megs
|
42
42
|
complex_part[1..-1].map { |el|
|
43
43
|
[el[1..-1].to_a.reverse.join(''), el.first].join(' ')
|
44
|
-
}.
|
44
|
+
}.reject(&:empty?).reverse.join(' ')
|
45
45
|
end
|
46
46
|
|
47
47
|
def print_other
|
File without changes
|
@@ -81,7 +81,7 @@ module NumbersAndWords
|
|
81
81
|
end
|
82
82
|
|
83
83
|
def is_one_thousand?
|
84
|
-
|
84
|
+
current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil?
|
85
85
|
end
|
86
86
|
|
87
87
|
def is_without_connector?
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'numbers_and_words/strategies/figures_converter/options/en'
|
2
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
2
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB'
|
3
3
|
require 'numbers_and_words/strategies/figures_converter/options/ru'
|
4
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
4
|
+
require 'numbers_and_words/strategies/figures_converter/options/pt-BR'
|
5
5
|
require 'numbers_and_words/strategies/figures_converter/options/ua'
|
6
6
|
require 'numbers_and_words/strategies/figures_converter/options/hu'
|
7
7
|
|
@@ -18,7 +18,7 @@ module NumbersAndWords
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def method_missing method_name, *args, &block
|
21
|
-
proxy_class_name(method_name).
|
21
|
+
Object.const_get(proxy_class_name(method_name)).new self, args, block
|
22
22
|
rescue NameError
|
23
23
|
return nil
|
24
24
|
end
|
@@ -26,7 +26,7 @@ module NumbersAndWords
|
|
26
26
|
private
|
27
27
|
|
28
28
|
def proxy_class_name method_name
|
29
|
-
"#{module_name}::#{I18n.language_class_name}::#{method_name.to_s.
|
29
|
+
"#{module_name}::#{I18n.language_class_name}::#{method_name.to_s.split('_').collect(&:capitalize).join}"
|
30
30
|
end
|
31
31
|
|
32
32
|
def module_name
|
@@ -1,5 +1,5 @@
|
|
1
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
2
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
3
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
4
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
5
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
1
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union'
|
2
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen'
|
3
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB/ordinal'
|
4
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB/pronounced'
|
5
|
+
require 'numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero'
|
File without changes
|
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/pronounced.rb
RENAMED
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_hyphen.rb
RENAMED
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_zero.rb
RENAMED
File without changes
|
@@ -35,7 +35,7 @@ module NumbersAndWords
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def handle_thousands language, figures
|
38
|
-
|
38
|
+
_units, _tens, hundreds, thousands = *figures.to_a.dup
|
39
39
|
if hundreds == 0
|
40
40
|
language.number_without_capacity_to_words + language.complex_number_to_words
|
41
41
|
else
|
@@ -45,7 +45,7 @@ module NumbersAndWords
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def handle_hundreds language, figures
|
48
|
-
|
48
|
+
_units, _tens, hundreds = *figures.to_a.dup
|
49
49
|
result = tens_with_oh language, figures
|
50
50
|
result.push hundreds.to_words
|
51
51
|
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
2
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
3
|
-
require 'numbers_and_words/strategies/figures_converter/options/
|
1
|
+
require 'numbers_and_words/strategies/figures_converter/options/pt-BR/gender'
|
2
|
+
require 'numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal'
|
3
|
+
require 'numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero'
|
File without changes
|
File without changes
|
data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/remove_zero.rb
RENAMED
File without changes
|
@@ -5,7 +5,7 @@ require 'numbers_and_words/translations/families/latin'
|
|
5
5
|
require 'numbers_and_words/translations/extensions/fraction_significance'
|
6
6
|
require 'numbers_and_words/translations/ru'
|
7
7
|
require 'numbers_and_words/translations/en'
|
8
|
-
require 'numbers_and_words/translations/
|
8
|
+
require 'numbers_and_words/translations/en-GB'
|
9
9
|
require 'numbers_and_words/translations/ua'
|
10
10
|
require 'numbers_and_words/translations/tr'
|
11
11
|
require 'numbers_and_words/translations/fr'
|
@@ -19,14 +19,14 @@ require 'numbers_and_words/translations/lv'
|
|
19
19
|
require 'numbers_and_words/translations/lt'
|
20
20
|
require 'numbers_and_words/translations/de'
|
21
21
|
require 'numbers_and_words/translations/pt'
|
22
|
-
require 'numbers_and_words/translations/
|
22
|
+
require 'numbers_and_words/translations/pt-BR'
|
23
23
|
require 'numbers_and_words/translations/ka'
|
24
24
|
|
25
25
|
module NumbersAndWords
|
26
26
|
module Translations
|
27
27
|
class << self
|
28
28
|
def factory
|
29
|
-
"#{name}::#{I18n.language_class_name}".
|
29
|
+
Object.const_get("#{name}::#{I18n.language_class_name}").new
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: numbers_and_words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
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-06-
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -25,21 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
28
|
+
name: jeweler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - ">="
|
@@ -53,7 +39,7 @@ dependencies:
|
|
53
39
|
- !ruby/object:Gem::Version
|
54
40
|
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
42
|
+
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - ">="
|
@@ -111,39 +97,39 @@ files:
|
|
111
97
|
- lib/numbers_and_words/i18n/plurals/lt.rb
|
112
98
|
- lib/numbers_and_words/i18n/plurals/lv.rb
|
113
99
|
- lib/numbers_and_words/i18n/plurals/plurals.rb
|
114
|
-
- lib/numbers_and_words/i18n/plurals/
|
100
|
+
- lib/numbers_and_words/i18n/plurals/pt-BR.rb
|
115
101
|
- lib/numbers_and_words/i18n/plurals/ru.rb
|
116
102
|
- lib/numbers_and_words/i18n/plurals/ua.rb
|
117
103
|
- lib/numbers_and_words/strategies.rb
|
118
104
|
- lib/numbers_and_words/strategies/array_joiner.rb
|
119
105
|
- lib/numbers_and_words/strategies/array_joiner/languages.rb
|
120
106
|
- lib/numbers_and_words/strategies/array_joiner/languages/base.rb
|
107
|
+
- lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb
|
121
108
|
- lib/numbers_and_words/strategies/array_joiner/languages/en.rb
|
122
|
-
- lib/numbers_and_words/strategies/array_joiner/languages/en_gb.rb
|
123
109
|
- lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb
|
124
110
|
- lib/numbers_and_words/strategies/array_joiner/languages/hu.rb
|
125
|
-
- lib/numbers_and_words/strategies/array_joiner/languages/
|
111
|
+
- lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb
|
126
112
|
- lib/numbers_and_words/strategies/array_joiner/languages/ru.rb
|
127
113
|
- lib/numbers_and_words/strategies/array_joiner/languages/ua.rb
|
128
114
|
- lib/numbers_and_words/strategies/figures_converter.rb
|
129
115
|
- lib/numbers_and_words/strategies/figures_converter/decorators.rb
|
130
116
|
- lib/numbers_and_words/strategies/figures_converter/decorators/base.rb
|
117
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb
|
118
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/base.rb
|
119
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb
|
120
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/integral.rb
|
131
121
|
- lib/numbers_and_words/strategies/figures_converter/decorators/en.rb
|
132
122
|
- lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb
|
133
123
|
- lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb
|
134
124
|
- lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb
|
135
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/en_gb.rb
|
136
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/en_gb/base.rb
|
137
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/en_gb/fractional.rb
|
138
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/en_gb/integral.rb
|
139
125
|
- lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb
|
140
126
|
- lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb
|
141
127
|
- lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb
|
142
128
|
- lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb
|
143
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/
|
144
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/
|
145
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/
|
146
|
-
- lib/numbers_and_words/strategies/figures_converter/decorators/
|
129
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb
|
130
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb
|
131
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb
|
132
|
+
- lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb
|
147
133
|
- lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb
|
148
134
|
- lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb
|
149
135
|
- lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb
|
@@ -155,8 +141,8 @@ files:
|
|
155
141
|
- lib/numbers_and_words/strategies/figures_converter/languages.rb
|
156
142
|
- lib/numbers_and_words/strategies/figures_converter/languages/base.rb
|
157
143
|
- lib/numbers_and_words/strategies/figures_converter/languages/de.rb
|
144
|
+
- lib/numbers_and_words/strategies/figures_converter/languages/en-GB.rb
|
158
145
|
- lib/numbers_and_words/strategies/figures_converter/languages/en.rb
|
159
|
-
- lib/numbers_and_words/strategies/figures_converter/languages/en_gb.rb
|
160
146
|
- lib/numbers_and_words/strategies/figures_converter/languages/es.rb
|
161
147
|
- lib/numbers_and_words/strategies/figures_converter/languages/et.rb
|
162
148
|
- lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb
|
@@ -170,31 +156,31 @@ files:
|
|
170
156
|
- lib/numbers_and_words/strategies/figures_converter/languages/lt.rb
|
171
157
|
- lib/numbers_and_words/strategies/figures_converter/languages/lv.rb
|
172
158
|
- lib/numbers_and_words/strategies/figures_converter/languages/nl.rb
|
159
|
+
- lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb
|
173
160
|
- lib/numbers_and_words/strategies/figures_converter/languages/pt.rb
|
174
|
-
- lib/numbers_and_words/strategies/figures_converter/languages/pt_br.rb
|
175
161
|
- lib/numbers_and_words/strategies/figures_converter/languages/ru.rb
|
176
162
|
- lib/numbers_and_words/strategies/figures_converter/languages/se.rb
|
177
163
|
- lib/numbers_and_words/strategies/figures_converter/languages/tr.rb
|
178
164
|
- lib/numbers_and_words/strategies/figures_converter/languages/ua.rb
|
179
165
|
- lib/numbers_and_words/strategies/figures_converter/options.rb
|
166
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb
|
167
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union.rb
|
168
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB/ordinal.rb
|
169
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb
|
170
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen.rb
|
171
|
+
- lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero.rb
|
180
172
|
- lib/numbers_and_words/strategies/figures_converter/options/en.rb
|
181
173
|
- lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb
|
182
174
|
- lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb
|
183
175
|
- lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb
|
184
176
|
- lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb
|
185
177
|
- lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb
|
186
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb.rb
|
187
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb/hundreds_with_union.rb
|
188
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb/ordinal.rb
|
189
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb/pronounced.rb
|
190
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb/remove_hyphen.rb
|
191
|
-
- lib/numbers_and_words/strategies/figures_converter/options/en_gb/remove_zero.rb
|
192
178
|
- lib/numbers_and_words/strategies/figures_converter/options/hu.rb
|
193
179
|
- lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb
|
194
|
-
- lib/numbers_and_words/strategies/figures_converter/options/
|
195
|
-
- lib/numbers_and_words/strategies/figures_converter/options/
|
196
|
-
- lib/numbers_and_words/strategies/figures_converter/options/
|
197
|
-
- lib/numbers_and_words/strategies/figures_converter/options/
|
180
|
+
- lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb
|
181
|
+
- lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb
|
182
|
+
- lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb
|
183
|
+
- lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb
|
198
184
|
- lib/numbers_and_words/strategies/figures_converter/options/ru.rb
|
199
185
|
- lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb
|
200
186
|
- lib/numbers_and_words/strategies/figures_converter/options/ua.rb
|
@@ -202,8 +188,8 @@ files:
|
|
202
188
|
- lib/numbers_and_words/translations.rb
|
203
189
|
- lib/numbers_and_words/translations/base.rb
|
204
190
|
- lib/numbers_and_words/translations/de.rb
|
191
|
+
- lib/numbers_and_words/translations/en-GB.rb
|
205
192
|
- lib/numbers_and_words/translations/en.rb
|
206
|
-
- lib/numbers_and_words/translations/en_gb.rb
|
207
193
|
- lib/numbers_and_words/translations/es.rb
|
208
194
|
- lib/numbers_and_words/translations/et.rb
|
209
195
|
- lib/numbers_and_words/translations/extensions/fraction_significance.rb
|
@@ -217,8 +203,8 @@ files:
|
|
217
203
|
- lib/numbers_and_words/translations/lt.rb
|
218
204
|
- lib/numbers_and_words/translations/lv.rb
|
219
205
|
- lib/numbers_and_words/translations/nl.rb
|
206
|
+
- lib/numbers_and_words/translations/pt-BR.rb
|
220
207
|
- lib/numbers_and_words/translations/pt.rb
|
221
|
-
- lib/numbers_and_words/translations/pt_br.rb
|
222
208
|
- lib/numbers_and_words/translations/ru.rb
|
223
209
|
- lib/numbers_and_words/translations/se.rb
|
224
210
|
- lib/numbers_and_words/translations/tr.rb
|