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.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/numbers_and_words.rb +0 -3
  3. data/lib/numbers_and_words/i18n.rb +1 -1
  4. data/lib/numbers_and_words/i18n/pluralization.rb +1 -1
  5. data/lib/numbers_and_words/i18n/plurals/plurals.rb +9 -5
  6. data/lib/numbers_and_words/i18n/plurals/{pt_br.rb → pt-BR.rb} +0 -0
  7. data/lib/numbers_and_words/strategies/array_joiner/languages.rb +3 -3
  8. data/lib/numbers_and_words/strategies/array_joiner/languages/{en_gb.rb → en-GB.rb} +1 -1
  9. data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +3 -3
  10. data/lib/numbers_and_words/strategies/array_joiner/languages/{pt_br.rb → pt-BR.rb} +0 -0
  11. data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +4 -4
  12. data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br.rb → en-GB.rb} +3 -3
  13. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/base.rb +0 -0
  14. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/fractional.rb +0 -0
  15. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb → en-GB}/integral.rb +0 -0
  16. data/lib/numbers_and_words/strategies/figures_converter/decorators/{en_gb.rb → pt-BR.rb} +3 -3
  17. data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/base.rb +0 -0
  18. data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/fractional.rb +0 -0
  19. data/lib/numbers_and_words/strategies/figures_converter/decorators/{pt_br → pt-BR}/integral.rb +0 -0
  20. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +3 -3
  21. data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +2 -2
  22. data/lib/numbers_and_words/strategies/figures_converter/languages/{en_gb.rb → en-GB.rb} +0 -0
  23. data/lib/numbers_and_words/strategies/figures_converter/languages/{pt_br.rb → pt-BR.rb} +1 -1
  24. data/lib/numbers_and_words/strategies/figures_converter/options.rb +4 -4
  25. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb.rb → en-GB.rb} +5 -5
  26. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/hundreds_with_union.rb +0 -0
  27. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/ordinal.rb +0 -0
  28. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/pronounced.rb +0 -0
  29. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_hyphen.rb +0 -0
  30. data/lib/numbers_and_words/strategies/figures_converter/options/{en_gb → en-GB}/remove_zero.rb +0 -0
  31. data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +2 -2
  32. data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br.rb → pt-BR.rb} +3 -3
  33. data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/gender.rb +0 -0
  34. data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/ordinal.rb +0 -0
  35. data/lib/numbers_and_words/strategies/figures_converter/options/{pt_br → pt-BR}/remove_zero.rb +0 -0
  36. data/lib/numbers_and_words/translations.rb +3 -3
  37. data/lib/numbers_and_words/translations/{en_gb.rb → en-GB.rb} +0 -0
  38. data/lib/numbers_and_words/translations/{pt_br.rb → pt-BR.rb} +0 -0
  39. data/lib/numbers_and_words/version.rb +1 -1
  40. metadata +29 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5caabcd62264f800eee755b1b4d9df3e26985c6e
4
- data.tar.gz: dc3ed56b19454d61aa519ed095c2445574b2d8cf
3
+ metadata.gz: 24a1ed3859badac70258bc6dc9e7022514766a51
4
+ data.tar.gz: 9a9ac6192b4b521abbffab58a6a391deee38673d
5
5
  SHA512:
6
- metadata.gz: 3d764ecdce935eae9b0c7e43a510cb12ca620a25d1e57011aed3e0b1970151f72121785ea3565946cd3bf2896fdc60d376f4fdfb960b0051efd5cbee1edb1d80
7
- data.tar.gz: 49cfe46d629393bf6737ee713b8ebb632d759bff5954afa6239c5154d5c9419919027a355586a8ab7c71ed13fb1d9477ffaa033fc85272ab7566c457afa25126
6
+ metadata.gz: 8bc908a953dad008f8755560f167ea8b5a10af08e6b9de6c4702267f9c170be4e6f07542ded27744779ccfac223801454d47e1a622f23443ef6c44ef0eefcbab
7
+ data.tar.gz: cf962a846fbc4a7a7f65464a810ebb9aaa1279c585622da2d0f89035c3441b1dd0637d10bc999027717a1030264d43154bf311b3be165d3c2ca1d09c24e0f0f0
@@ -1,8 +1,5 @@
1
1
  require 'rubygems'
2
2
  require 'i18n'
3
- require 'i18n/backend/pluralization'
4
- require 'active_support/inflector'
5
- require 'active_support/core_ext/object'
6
3
 
7
4
  require 'numbers_and_words/translations'
8
5
  require 'numbers_and_words/strategies'
@@ -19,7 +19,7 @@ module NumbersAndWords
19
19
  end
20
20
 
21
21
  def language_class_name
22
- ::I18n.locale.to_s.titleize.gsub ' ', ''
22
+ ::I18n.locale.to_s.split('-').collect(&:capitalize).join
23
23
  end
24
24
 
25
25
  def locale_files
@@ -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/pt_br'
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 { |language|
3
- [language.to_sym, {:i18n => {:plural => {
4
- :rule => "NumbersAndWords::I18n::Plurals::#{language.titleize.gsub(/ /, '')}::RULE".constantize
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
  ]
@@ -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/en_gb'
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/pt_br'
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}".constantize.new strategy
18
+ Object.const_get("#{name}::#{I18n.language_class_name}").new strategy
19
19
  end
20
20
  end
21
21
  end
@@ -8,7 +8,7 @@ module NumbersAndWords
8
8
  end
9
9
 
10
10
  def union_element
11
- @elements.first.blank? ? "#{union_separator} " : super
11
+ @elements.first.empty? ? "#{union_separator} " : super
12
12
  end
13
13
  end
14
14
  end
@@ -6,11 +6,11 @@ module NumbersAndWords
6
6
  module Base
7
7
 
8
8
  def elements_logic
9
- @elements.first.blank? ? @elements.last : @elements.join(union_element)
9
+ @elements.first.empty? ? @elements.last : @elements.join(union_element)
10
10
  end
11
11
 
12
12
  def union_element
13
- union_separator.present? ? " #{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
@@ -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/en_gb'
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/pt_br'
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).constantize : Decorators::Base
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.camelcase}"
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/pt_br/base'
2
- require 'numbers_and_words/strategies/figures_converter/decorators/pt_br/integral'
3
- require 'numbers_and_words/strategies/figures_converter/decorators/pt_br/fractional'
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'
@@ -1,3 +1,3 @@
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'
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'
@@ -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/en_gb'
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/pt_br'
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}".constantize.new strategy
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].select(&:present?).join ' '
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
- }.select(&:present?).reverse.join(' ')
44
+ }.reject(&:empty?).reverse.join(' ')
45
45
  end
46
46
 
47
47
  def print_other
@@ -81,7 +81,7 @@ module NumbersAndWords
81
81
  end
82
82
 
83
83
  def is_one_thousand?
84
- @current_capacity == 1 && figures[0] == 1 && figures.hundreds.nil? && figures.tens.nil?
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/en_gb'
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/pt_br'
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).constantize.new self, args, block
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.camelcase}"
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/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'
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'
@@ -35,7 +35,7 @@ module NumbersAndWords
35
35
  end
36
36
 
37
37
  def handle_thousands language, figures
38
- units, tens, hundreds, thousands = *figures.to_a.dup
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
- units, tens, hundreds = *figures.to_a.dup
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/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'
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'
@@ -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/en_gb'
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/pt_br'
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}".constantize.new
29
+ Object.const_get("#{name}::#{I18n.language_class_name}").new
30
30
  end
31
31
  end
32
32
  end
@@ -1,3 +1,3 @@
1
1
  module NumbersAndWords
2
- VERSION = '0.10.6'
2
+ VERSION = '0.11.0'
3
3
  end
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.10.6
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 00:00:00.000000000 Z
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: activesupport
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: jeweler
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/pt_br.rb
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/pt_br.rb
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/pt_br.rb
144
- - lib/numbers_and_words/strategies/figures_converter/decorators/pt_br/base.rb
145
- - lib/numbers_and_words/strategies/figures_converter/decorators/pt_br/fractional.rb
146
- - lib/numbers_and_words/strategies/figures_converter/decorators/pt_br/integral.rb
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/pt_br.rb
195
- - lib/numbers_and_words/strategies/figures_converter/options/pt_br/gender.rb
196
- - lib/numbers_and_words/strategies/figures_converter/options/pt_br/ordinal.rb
197
- - lib/numbers_and_words/strategies/figures_converter/options/pt_br/remove_zero.rb
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