numbers_and_words 0.10.0 → 0.10.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +6 -14
  2. data/CHANGELOG.md +167 -0
  3. data/README.rdoc +22 -10
  4. data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +0 -8
  5. data/lib/numbers_and_words/i18n/locales/numbers.en.yml +16 -4
  6. data/lib/numbers_and_words/i18n/locales/numbers.es.yml +6 -6
  7. data/lib/numbers_and_words/i18n/locales/numbers.fr.yml +13 -12
  8. data/lib/numbers_and_words/i18n/locales/numbers.hu.yml +0 -1
  9. data/lib/numbers_and_words/i18n/locales/numbers.ka.yml +23 -0
  10. data/lib/numbers_and_words/i18n/locales/numbers.lt.yml +10 -10
  11. data/lib/numbers_and_words/i18n/locales/numbers.lv.yml +3 -3
  12. data/lib/numbers_and_words/i18n/locales/numbers.pt.yml +13 -0
  13. data/lib/numbers_and_words/i18n/pluralization.rb +0 -1
  14. data/lib/numbers_and_words/i18n/plurals/fr.rb +1 -1
  15. data/lib/numbers_and_words/strategies/figures_converter/languages.rb +2 -0
  16. data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +16 -0
  17. data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +14 -5
  18. data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +43 -0
  19. data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +1 -9
  20. data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +30 -0
  21. data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +18 -0
  22. data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +2 -1
  23. data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +76 -0
  24. data/lib/numbers_and_words/strategies/figures_converter/options/en_gb.rb +1 -0
  25. data/lib/numbers_and_words/strategies/figures_converter/options/en_gb/pronounced.rb +12 -0
  26. data/lib/numbers_and_words/translations.rb +2 -0
  27. data/lib/numbers_and_words/translations/es.rb +6 -1
  28. data/lib/numbers_and_words/translations/et.rb +1 -5
  29. data/lib/numbers_and_words/translations/hu.rb +0 -4
  30. data/lib/numbers_and_words/translations/ka.rb +72 -0
  31. data/lib/numbers_and_words/translations/pt.rb +27 -0
  32. data/lib/numbers_and_words/translations/tr.rb +9 -0
  33. data/lib/numbers_and_words/version.rb +1 -1
  34. data/lib/numbers_and_words/wrappers/float.rb +1 -9
  35. metadata +25 -16
  36. data/lib/numbers_and_words/i18n/plurals/es.rb +0 -11
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NDVlMzhhZmMxMjgxNzY2NWM2OGZhNzFmZjliYzJiNTc2ODRmM2Y3OA==
5
- data.tar.gz: !binary |-
6
- M2JjMTU1MTU5N2RlY2ZiN2NlNzFiZmM2ZTUzNzgwNDU0YmYyYTg1OA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YWMzZDdhNWM4ODI2ODFiYTFiOTIxYTc5M2EzYmJkMjhjYjMxNGQwNzRiMTM5
10
- ZDUyMzdlZTBlYzAyODhiMTliMjdkNWZiOTBkMDVhODI4NzY1YWFmNGMzOTU0
11
- N2I5NjBkNjlmZmI5ZTA4ODZhNGU1N2I5MDFmOWU0MjRhYzZhNjA=
12
- data.tar.gz: !binary |-
13
- ZDg1OTM1YzUyN2E5Njc1MzcyZjhjZDJlYmY4YTBhYTBlNzkwYzhkMTBjZTJl
14
- YjgxMzg1ODcxOWFhN2ZjMjA1MDlmYjZiYzlhNzJhMGMyZmQ2ZDY2YWVkNWQ5
15
- YWJhNWIyZmY3ZjZmYmYxNGVjYWMzMDQ2MmRlYzA2OWNkODY3ZTA=
2
+ SHA1:
3
+ metadata.gz: 91ae963e73b41f30a8dd794aba2faa4f1691bbfe
4
+ data.tar.gz: e1d052487bff3587903a1e3476ddbdffba5694b3
5
+ SHA512:
6
+ metadata.gz: eb2244cbb672d3ade661efd805dd92e1d84123e1d160c86ab8a6b4b40260743f06dbc38cc9cd9082679463501209f8328046aad6a31faae7c1e10bd5446a0f01
7
+ data.tar.gz: 8c21d510a313020818d60ec531c27a9d5dcdcc1edb39ccf2474cc56b6751377aa9f505db6493460e580395b879b03ba334c139c3b044360123e269ef4fb60bc6
@@ -0,0 +1,167 @@
1
+ ## 0.10.5 (March 9, 2016)
2
+
3
+ ### Bugs
4
+ * Fix pluralization rules for Spanish. \[[#122](https://github.com/kslazarev/numbers_and_words/pull/122)\] \([@jlduran](https://github.com/jlduran)\)
5
+ * Fix long scale names in Spanish. \[[#112](https://github.com/kslazarev/numbers_and_words/pull/112)\] \([@jlduran](https://github.com/jlduran)\)
6
+ * Fix Turkish hundred and thousand numbers. \[[#113](https://github.com/kslazarev/numbers_and_words/pull/113)\] \([@cbilgili](https://github.com/cbilgili)\)
7
+ * Fix one/other convention in Spanish and French. \[[#116](https://github.com/kslazarev/numbers_and_words/pull/116)\] \([@joseramonc](https://github.com/joseramonc)\)
8
+ * Fix hundreds in Lithuanian. \[[#117](https://github.com/kslazarev/numbers_and_words/pull/117)\] \([@osegrums](https://github.com/osegrums)\)
9
+
10
+ ## 0.10.4 (March 02, 2015)
11
+
12
+ ### Bugs
13
+ * Fix Lithuanian `other` spelling errors. \[[#109](https://github.com/kslazarev/numbers_and_words/pull/109)\] \([@ViliusLuneckas](https://github.com/ViliusLuneckas)\) \(assignee: [@miks](https://github.com/miks)\)
14
+
15
+ ## 0.10.3 (May 8, 2014)
16
+
17
+ ### Features
18
+ * Add Georgian language. \[[#100](https://github.com/kslazarev/numbers_and_words/pull/100)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
19
+
20
+ ### Bugs
21
+ * Simplify estonian tens with ones method. \[[#101](https://github.com/kslazarev/numbers_and_words/pull/101)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
22
+
23
+ ## 0.10.2 (December 18, 2013)
24
+
25
+ ### Bugs
26
+ * Fix latvian one thousand case. \[[#88](https://github.com/kslazarev/numbers_and_words/pull/88)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
27
+
28
+ ### Supports
29
+ * Reach 100% coverage. \[[#89](https://github.com/kslazarev/numbers_and_words/pull/89)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
30
+
31
+ ## 0.10.1 (October 22, 2013)
32
+
33
+ ### Bugs
34
+ * Minor orthographic typo in Spanish language. \[[#85](https://github.com/kslazarev/numbers_and_words/pull/85)\] \([@jlduran](https://github.com/jlduran)\) \(assignee: [@jlduran](https://github.com/jlduran)\)
35
+
36
+ ## 0.10.0 (September 03, 2013)
37
+
38
+ ### Features
39
+ * Add Estonian language. \[[#82](https://github.com/kslazarev/numbers_and_words/pull/82)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
40
+ * Add Lithuanian language. \[[#77](https://github.com/kslazarev/numbers_and_words/pull/77)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
41
+
42
+ ### Bugs
43
+ * Fix latvian one hundread cases. \[[#81](https://github.com/kslazarev/numbers_and_words/pull/81)\] \([@miks](https://github.com/miks)\) \(assignee: [@miks](https://github.com/miks)\)
44
+
45
+ ### Supports
46
+ * Added @miks contacts to contributors list in README. \[[#79](https://github.com/kslazarev/numbers_and_words/issues/79)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@miks](https://github.com/miks)\)
47
+
48
+ ## 0.9.0 (May 19, 2013)
49
+
50
+ ### Features
51
+ * Add Latvian language. \[[#70](https://github.com/kslazarev/numbers_and_words/pull/70)\] \([@martinsspringis](https://github.com/martinsspringis)\) \(assignee: [@martinsspringis](https://github.com/martinsspringis)\)
52
+ * Add German language. \[[#52](https://github.com/kslazarev/numbers_and_words/pull/52)\] \([@GSI](https://github.com/GSI)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
53
+
54
+ ### Supports
55
+ * Add @martinsspringis contacts and some examples on Latvian language to README. \[[#71](https://github.com/kslazarev/numbers_and_words/issues/71)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@martinsspringis](https://github.com/martinsspringis)\)
56
+
57
+ ## 0.8.0 (April 29, 2013)
58
+
59
+ ### Features
60
+ * Try to use global language by default, if regional language is missing (EnUs is missing). \[[#65](https://github.com/kslazarev/numbers_and_words/issues/65)\] \([@hubrix](https://github.com/hubrix)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
61
+
62
+ ### Supports
63
+ * Add regional languages aliases to README. \[[#67](https://github.com/kslazarev/numbers_and_words/issues/67)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
64
+ * Remove all warnings in gem. (ruby -w). \[[#66](https://github.com/kslazarev/numbers_and_words/pull/66)\] \([@nikhaldi](https://github.com/nikhaldi)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
65
+
66
+ ## 0.7.1 (April 22, 2013)
67
+
68
+ ### Bugs
69
+ * Wrong hundreds separator with British. \[[#62](https://github.com/kslazarev/numbers_and_words/issues/62)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
70
+
71
+ ## 0.7.0 (April 14, 2013)
72
+
73
+ ### Features
74
+ * Send number's options through array. \[[#60](https://github.com/kslazarev/numbers_and_words/issues/60)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
75
+ * Add British English. \[[#57](https://github.com/kslazarev/numbers_and_words/issues/57)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
76
+
77
+ ## 0.6.1 (April 11, 2013)
78
+
79
+ ### Bugs
80
+ * Extra 'and' added after round hundreds (using hundreds_with_union: true) in English. \[[#58](https://github.com/kslazarev/numbers_and_words/issues/58)\] \([@mafraba](https://github.com/mafraba)\) \(assignee: [@eLod](https://github.com/eLod)\)
81
+
82
+ ## 0.6.0 (March 25, 2013)
83
+
84
+ ### Features
85
+ * Support fractional form for Ukranian. \[[#54](https://github.com/kslazarev/numbers_and_words/issues/54)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
86
+ * Support fractional form for Russian. \[[#53](https://github.com/kslazarev/numbers_and_words/issues/53)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
87
+ * Added functionality for spanish . \[[#51](https://github.com/kslazarev/numbers_and_words/pull/51)\] \([@jaambros](https://github.com/jaambros)\) \(assignee: [@jaambros](https://github.com/jaambros)\)
88
+ * Support ordinal form for English and Hungarian. \[[#50](https://github.com/kslazarev/numbers_and_words/issues/50)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@eLod](https://github.com/eLod)\)
89
+ * Add option :remove_hyphen for English language. \[[#45](https://github.com/kslazarev/numbers_and_words/issues/45)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
90
+ * Add option :hundreds_with_union for English language. \[[#44](https://github.com/kslazarev/numbers_and_words/issues/44)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
91
+ * Add Spanish language. (experimental). \[[#42](https://github.com/kslazarev/numbers_and_words/issues/42)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
92
+ * Add Swedish language. (experimental). \[[#41](https://github.com/kslazarev/numbers_and_words/issues/41)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
93
+ * Add Hungarian language. \[[#40](https://github.com/kslazarev/numbers_and_words/pull/40)\] \([@eLod](https://github.com/eLod)\) \(assignee: [@eLod](https://github.com/eLod)\)
94
+ * Add option :gender for Russian language. \[[#39](https://github.com/kslazarev/numbers_and_words/issues/39)\] \([@ermolaev](https://github.com/ermolaev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
95
+ * Gem numbers_and_words not working for decimal values. \[[#38](https://github.com/kslazarev/numbers_and_words/issues/38)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
96
+
97
+ ### Supports
98
+ * Update 'code climate' badge. \[[#47](https://github.com/kslazarev/numbers_and_words/issues/47)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
99
+ * Add @eLog contacts and project description on Hungarian language to README. \[[#46](https://github.com/kslazarev/numbers_and_words/issues/46)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@eLod](https://github.com/eLod)\)
100
+ * Add language specific options. \[[#43](https://github.com/kslazarev/numbers_and_words/issues/43)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
101
+
102
+ ## 0.5.0 (October 19, 2012)
103
+
104
+ ### Features
105
+ * Add Italian language. (experimental). \[[#34](https://github.com/kslazarev/numbers_and_words/issues/34)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
106
+ * Add Dutch language. (experimental). \[[#33](https://github.com/kslazarev/numbers_and_words/issues/33)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
107
+ * Add French language. \[[#29](https://github.com/kslazarev/numbers_and_words/pull/29)\] \([@sorich87](https://github.com/sorich87)\) \(assignee: [@sorich87](https://github.com/sorich87)\)
108
+
109
+ ### Supports
110
+ * Add @sorich87 contacts to README. \[[#36](https://github.com/kslazarev/numbers_and_words/issues/36)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@sorich87](https://github.com/sorich87)\)
111
+ * Add Code Climate badge. \[[#35](https://github.com/kslazarev/numbers_and_words/issues/35)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
112
+ * Refactoring tests. \[[#32](https://github.com/kslazarev/numbers_and_words/issues/32)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
113
+ * Refactoring strategies. \[[#31](https://github.com/kslazarev/numbers_and_words/issues/31)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
114
+
115
+ ## 0.4.0 (June 24, 2012)
116
+
117
+ ### Features
118
+ * Add Turkish language. \[[#26](https://github.com/kslazarev/numbers_and_words/issues/26)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
119
+ * Add Ukrainian language. \[[#25](https://github.com/kslazarev/numbers_and_words/issues/25)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@Shk-Serji](https://github.com/Shk-Serji)\)
120
+
121
+ ### Supports
122
+ * Combine all connections with i18n library in one sub-module. \[[#28](https://github.com/kslazarev/numbers_and_words/issues/28)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
123
+ * Add separate logics for pluralization in different languages. \[[#27](https://github.com/kslazarev/numbers_and_words/issues/27)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
124
+
125
+ ## 0.3.2 (June 24, 2012)
126
+
127
+ ### Bugs
128
+ * Ломает плюрализацию russian. \[[#22](https://github.com/kslazarev/numbers_and_words/issues/22)\] \([@yura](https://github.com/yura)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
129
+
130
+ ## 0.3.1 (May 04, 2012)
131
+
132
+ ### Bugs
133
+ * Fixes 80 in English. \[[#18](https://github.com/kslazarev/numbers_and_words/pull/18)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
134
+
135
+ ### Supports
136
+ * Add CHANGELOG.md. \[[#19](https://github.com/kslazarev/numbers_and_words/issues/19)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
137
+ * Readable specs. \[[#16](https://github.com/kslazarev/numbers_and_words/pull/16)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
138
+
139
+ ### Deprecations
140
+ * Add deprecation warning for using gem 'number_to_words_ru' . \[[#21](https://github.com/kslazarev/numbers_and_words/issues/21)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
141
+
142
+ ## 0.3.0 (March 24, 2012)
143
+
144
+ ### Bugs
145
+ * Rails 3 will choke on a nested array. \[[#10](https://github.com/kslazarev/numbers_and_words/pull/10)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
146
+ * English fixes and tests. \[[#9](https://github.com/kslazarev/numbers_and_words/pull/9)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
147
+ * Namespaced NumbersAndWords. \[[#7](https://github.com/kslazarev/numbers_and_words/pull/7)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
148
+
149
+ ### Supports
150
+ * Add contacts to README. \[[#14](https://github.com/kslazarev/numbers_and_words/issues/14)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@dblock](https://github.com/dblock)\)
151
+ * Fixed typo in readme. \[[#13](https://github.com/kslazarev/numbers_and_words/pull/13)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
152
+ * Added Travis-ci. \[[#12](https://github.com/kslazarev/numbers_and_words/pull/12)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
153
+ * Fix README (Russian & English). \[[#11](https://github.com/kslazarev/numbers_and_words/pull/11)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
154
+ * Rename the repo at https://github.com/kslazarev/number_to_words_ru. \[[#8](https://github.com/kslazarev/numbers_and_words/issues/8)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
155
+ * Switch a hard-coded gemspec to Jeweler. \[[#6](https://github.com/kslazarev/numbers_and_words/pull/6)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@dblock](https://github.com/dblock)\)
156
+
157
+ ## 0.3.0.alpha (March 24, 2012)
158
+
159
+ ### Features
160
+ * Check working with ruby 1.9.3. \[[#4](https://github.com/kslazarev/numbers_and_words/issues/4)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
161
+
162
+ ### Bugs
163
+ * Bundle exec rake problem. \[[#3](https://github.com/kslazarev/numbers_and_words/issues/3)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
164
+
165
+ ### Supports
166
+ * Remove temporary file Gemfile.lock. \[[#5](https://github.com/kslazarev/numbers_and_words/issues/5)\] \([@kslazarev](https://github.com/kslazarev)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
167
+ * Renamed gem from number_to_words_ru to numbers_and_words. \[[#2](https://github.com/kslazarev/numbers_and_words/pull/2)\] \([@dblock](https://github.com/dblock)\) \(assignee: [@kslazarev](https://github.com/kslazarev)\)
@@ -1,10 +1,10 @@
1
1
  == numbers_and_words
2
2
 
3
- {<img src="https://badge.fury.io/rb/numbers_and_words.png?branch=master" alt="Gem Version" />}[http://badge.fury.io/rb/numbers_and_words]
4
- {<img src="https://gemnasium.com/kslazarev/numbers_and_words.png?branch=master" alt="Dependency Status" />}[https://gemnasium.com/kslazarev/numbers_and_words]
5
- {<img src="https://codeclimate.com/github/kslazarev/numbers_and_words.png?branch=master" />}[https://codeclimate.com/github/kslazarev/numbers_and_words]
6
- {<img src="https://secure.travis-ci.org/kslazarev/numbers_and_words.png?branch=master" />}[http://travis-ci.org/kslazarev/numbers_and_words]
7
- {<img src="https://coveralls.io/repos/kslazarev/numbers_and_words/badge.png?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/kslazarev/numbers_and_words]
3
+ {<img src="https://badge.fury.io/rb/numbers_and_words.svg?branch=master" alt="Gem Version" />}[http://badge.fury.io/rb/numbers_and_words]
4
+ {<img src="https://gemnasium.com/kslazarev/numbers_and_words.svg?branch=master" alt="Dependency Status" />}[https://gemnasium.com/kslazarev/numbers_and_words]
5
+ {<img src="https://codeclimate.com/github/kslazarev/numbers_and_words.svg?branch=master" />}[https://codeclimate.com/github/kslazarev/numbers_and_words]
6
+ {<img src="https://secure.travis-ci.org/kslazarev/numbers_and_words.svg?branch=master" />}[http://travis-ci.org/kslazarev/numbers_and_words]
7
+ {<img src="https://coveralls.io/repos/kslazarev/numbers_and_words/badge.svg?branch=master" alt="Coverage Status" />}[https://coveralls.io/r/kslazarev/numbers_and_words]
8
8
 
9
9
  Convert numbers to words using the I18n library.
10
10
 
@@ -14,6 +14,8 @@ Converti les nombres en lettres en utilisant la librairie I18n.
14
14
 
15
15
  Számok betűvel írva az I18n könyvtár segítségével.
16
16
 
17
+ I18n kütüphanesi ile sayıları yazıya çevirir.
18
+
17
19
  == Supported Languages / Языки / Langues Supportées
18
20
 
19
21
  * English [en]
@@ -25,7 +27,8 @@ Számok betűvel írva az I18n könyvtár segítségével.
25
27
  * Lietuvių [lt]
26
28
  * Latviešu [lv]
27
29
  * Eesti [et]
28
- * Türkçe** [tr]
30
+ * ქართული (Georgian) [ka]
31
+ * Türkçe [tr]
29
32
  * Deutsch** [de]
30
33
  * Italiano** [it]
31
34
  * Nederlands** [nl]
@@ -68,6 +71,9 @@ Számok betűvel írva az I18n könyvtár segítségével.
68
71
  I18n.with_locale(:et) { 42.to_words }
69
72
  => "nelikümmend kaks"
70
73
 
74
+ I18n.with_locale(:ka) { 42.to_words }
75
+ => "ორმოცდაორი"
76
+
71
77
  21.to_words
72
78
  => "twenty-one"
73
79
  => "veintiuno"
@@ -79,6 +85,7 @@ Számok betűvel írva az I18n könyvtár segítségével.
79
85
  => "divdesmit viens"
80
86
  => "kakskümmend üks"
81
87
  => "yirmi bir"
88
+ => "ოცდაერთი"
82
89
  => "einundzwanzig"
83
90
  => "ventiuno"
84
91
  => "éénentwintig"
@@ -94,6 +101,7 @@ Számok betűvel írva az I18n könyvtár segítségével.
94
101
  => "du šimtai trisdešimt vienas"
95
102
  => "divi simti trīsdesmit viens"
96
103
  => "kakssada kolmkümmend üks"
104
+ => "ორას ოცდათერთმეტი"
97
105
  => "iki yüz otuz bir"
98
106
  => "zweihunderteinunddreißig"
99
107
  => "2 cento trentauno"
@@ -110,6 +118,7 @@ Számok betűvel írva az I18n könyvtár segítségével.
110
118
  => "keturi tūkstančiai trisdešimt"
111
119
  => "četri tūkstoši trīsdesmit"
112
120
  => "neli tuhat kolmkümmend"
121
+ => "ოთხი ათას ოცდაათი"
113
122
  => "dört bin otuz"
114
123
  => "viertausenddreißig"
115
124
  => "quattro mille trenta"
@@ -126,7 +135,8 @@ Számok betűvel írva az I18n könyvtár segítségével.
126
135
  => "milijonas šimtas"
127
136
  => "viens miljons simts"
128
137
  => "üks miljon ükssada"
129
- => "bir milyon bir yüz"
138
+ => "ერთი მილიონ ასი"
139
+ => "bir milyon yüz"
130
140
  => "eine Million einhundert"
131
141
  => "uno milione 1 cento"
132
142
  => "één miljoen honderd"
@@ -134,7 +144,7 @@ Számok betűvel írva az I18n könyvtár segítségével.
134
144
 
135
145
  1000000000000000000000000000000000.to_words
136
146
  => "one decillion"
137
- => "un quintillardo"
147
+ => "mil quintillones"
138
148
  => "один дециллион"
139
149
  => "un quintilliard"
140
150
  => "один децильйон"
@@ -157,10 +167,11 @@ Számok betűvel írva az I18n könyvtár segítségével.
157
167
  => ["vienas", "du", "trys"]
158
168
  => ["viens", "divi", "trīs"]
159
169
  => ["üks", "kaks", "kolm"]
170
+ => ["ერთი", "ორი", "სამი"]
160
171
 
161
172
  [11, 22, 133].to_words
162
173
  => ["eleven", "twenty-two", "one hundred thirty-three"]
163
- => ["once", "veintidos", "ciento treinta y tres"]
174
+ => ["once", "veintidós", "ciento treinta y tres"]
164
175
  => ["одиннадцать", "двадцать два", "сто тридцать три"]
165
176
  => ["onze", "vingt-deux", "cent trente-trois"]
166
177
  => ["одинадцять", "двадцять два", "сто тридцять три"]
@@ -168,7 +179,8 @@ Számok betűvel írva az I18n könyvtár segítségével.
168
179
  => ["vienuolika", "dvidešimt du", "šimtas trisdešimt trys"]
169
180
  => ["vienpadsmit", "divdesmit divi", "simtu trīsdesmit trīs"]
170
181
  => ["üksteist", "kakskümmend kaks", "ükssada kolmkümmend kolm"]
171
- => ["on bir", "yirmi iki", "bir yüz otuz üç"]
182
+ => ["თერთმეტი", "ოცდაორი", "ას ოცდაცამეტი"]
183
+ => ["on bir", "yirmi iki", "yüz otuz üç"]
172
184
  => ["elf", "zweiundzwanzig", "einhundertdreiunddreißig"]
173
185
  => ["undici", "ventidue", "1 cento trentatre"]
174
186
  => ["elf", "tweeentwintig", "honderddrieendertig"]
@@ -23,10 +23,6 @@ module NumbersAndWords
23
23
  figures_array_in_capacity(capacity).reverse.join.to_i
24
24
  end
25
25
 
26
- def is_a_thousand_capacity? capacity
27
- THOUSAND_CAPACITY == capacity
28
- end
29
-
30
26
  def ones
31
27
  self[0].to_i if 0 < self[0].to_i
32
28
  end
@@ -55,10 +51,6 @@ module NumbersAndWords
55
51
  capacity_length % FIGURES_IN_CAPACITY
56
52
  end
57
53
 
58
- def fraction_index
59
- index '.'
60
- end
61
-
62
54
  def fraction_capacity
63
55
  [fraction_capacity_count, fraction_sub_capacity]
64
56
  end
@@ -4,15 +4,15 @@ en:
4
4
  teens: [ten, eleven, twelve, thirteen, fourteen, fifteen, sixteen, seventeen, eighteen, nineteen]
5
5
  tens: [zero, ten, twenty, thirty, forty, fifty, sixty, seventy, eighty, ninety]
6
6
  hundreds: hundred
7
- mega: [ones, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion]
7
+ mega: [ones, thousand, million, billion, trillion, quadrillion, quintillion, sextillion, septillion, octillion, nonillion, decillion, undecillion, duodecillion, tredecillion, quattuordecillion]
8
8
  ordinal:
9
9
  ones: [zeroth, first, second, third, fourth, fifth, sixth, seventh, eighth, ninth]
10
10
  teens: [tenth, eleventh, twelfth, thirteenth, fourteenth, fifteenth, sixteenth, seventeenth, eighteenth, nineteenth]
11
11
  tens: [zeroth, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
12
12
  hundreds: hundredth
13
- mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth]
13
+ mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth, undecillionth, duodecillionth, tredecillionth, quattuordecillionth]
14
14
  union_separator: and
15
- micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths]
15
+ micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths, undecillionths, duodecillionths, tredecillionths, quattuordecillionths]
16
16
  tenths:
17
17
  one: tenth
18
18
  other: tenths
@@ -52,4 +52,16 @@ en:
52
52
  decillionths:
53
53
  one: decillionth
54
54
  other: decillionths
55
- union: and
55
+ undecillionths:
56
+ one: undecillionth
57
+ other: undecillionths
58
+ duodecillion:
59
+ one: duodecillionth
60
+ other: duodecillionths
61
+ tredecillion:
62
+ one: tredecillionth
63
+ other: tredecillionths
64
+ quattuordecillion:
65
+ one: quattuordecillionth
66
+ other: quattuordecillionths
67
+ union: and
@@ -1,15 +1,15 @@
1
1
  es:
2
2
  numbers:
3
- ones: [cero, uno, dos, tres, cuatro, cinco, seis, siete, ocho, nueve]
4
3
  one: un
4
+ ones: [cero, uno, dos, tres, cuatro, cinco, seis, siete, ocho, nueve]
5
+ ones_twenties: [_, uno, dós, trés, cuatro, cinco, séis, siete, ocho, nueve]
5
6
 
6
- teens: [diez, once, doce, trece, catorce, quince, dieciseis, diecisiete, dieciocho, diecinueve]
7
- tens: [cero, diez, veinti, treinta, cuarenta, cincuenta, sesenta, setenta, ochenta, noventa]
7
+ teens: [diez, once, doce, trece, catorce, quince, dieciséis, diecisiete, dieciocho, diecinueve]
8
+ tens: [_, diez, veinti, treinta, cuarenta, cincuenta, sesenta, setenta, ochenta, noventa]
8
9
  twenty: veinte
9
10
 
10
11
  hundreds: [ciento, doscientos, trescientos, cuatrocientos, quinientos, seiscientos, setecientos, ochocientos, novecientos]
11
12
  one_hundred: cien
12
13
 
13
- mega: [ones, mil, millón, millardo, billón, billardo, trillón, trillardo, quadrillón, quadrillardo, quintillón, quintillardo]
14
- megas: [ones, mil, millones, millardos, billones, billardos, trillones, trillardos, quadrillones, quadrillardos, quintillones, quintillardos]
15
-
14
+ mega: [_, mil, millón, mil millones, billón, mil billones, trillón, mil trillones, cuatrillón, mil cuatrillones, quintillón, mil quintillones]
15
+ megas: [_, mil, millones, mil millones, billones, mil billones, trillones, mil trillones, cuatrillones, mil cuatrillones, quintillones, mil quintillones]
@@ -7,37 +7,38 @@ fr:
7
7
  eighty: quatre-vingts
8
8
  hundreds:
9
9
  one: cent
10
- many: cents
10
+ other: cents
11
11
  thousands:
12
12
  one: mille
13
- many: mille
13
+ other: mille
14
+ other: mille
14
15
  millions:
15
16
  one: million
16
- many: millions
17
+ other: millions
17
18
  billions:
18
19
  one: milliard
19
- many: milliards
20
+ other: milliards
20
21
  trillions:
21
22
  one: billion
22
- many: billions
23
+ other: billions
23
24
  quadrillions:
24
25
  one: billiard
25
- many: billiards
26
+ other: billiards
26
27
  quintillions:
27
28
  one: trillion
28
- many: trillions
29
+ other: trillions
29
30
  sextillions:
30
31
  one: trilliard
31
- many: trilliards
32
+ other: trilliards
32
33
  septillions:
33
34
  one: quadrillion
34
- many: quadrillions
35
+ other: quadrillions
35
36
  octillions:
36
37
  one: quadrilliard
37
- many: quadrilliards
38
+ other: quadrilliards
38
39
  nonillions:
39
40
  one: quintillion
40
- many: quintillions
41
+ other: quintillions
41
42
  decillions:
42
43
  one: quintilliard
43
- many: quintilliards
44
+ other: quintilliards
@@ -7,7 +7,6 @@ hu:
7
7
  hundreds: száz
8
8
  mega: [egy, ezer, millió, milliárd, billió, billiárd, trillió, trilliárd, kvadrillió, kvadrilliárd, kvintillió, kvintilliárd]
9
9
  union_separator: egész
10
- union: egész
11
10
  ordinal:
12
11
  ones: [nulladik, első, második, harmadik, negyedik, ötödik, hatodik, hetedik, nyolcadik, kilencedik]
13
12
  ones_with_tens: [nulladik, egyedik, kettedik, harmadik, negyedik, ötödik, hatodik, hetedik, nyolcadik, kilencedik]
@@ -0,0 +1,23 @@
1
+ ka:
2
+ numbers:
3
+ ones: [ნული, ერთი, ორი, სამი, ოთხი, ხუთი, ექვსი, შვიდი, რვა, ცხრა]
4
+ teens: [ათი, თერთმეტი, თორმეტი, ცამეტი, თოთხმეტი, თხუთმეტი, თექვსმეტი, ჩვიდმეტი, თვრამეტი, ცხრამეტი]
5
+ tens: [ნული, ათი, ოცი, ოცდაათი, ორმოცი, ორმოცდაათი, სამოცი, სამოცდაათი, ოთხმოცი, ოთხმოცდაათი]
6
+ twenty: ოცი
7
+ forty: ორმოცი
8
+ sixty: სამოცი
9
+ eighty: ოთხმოცი
10
+ one_hundred: ასი
11
+ one_thousand: ათასი
12
+ one_million: მილიონი
13
+ one_billion: მილიარდი
14
+ partials:
15
+ ones: [ნული, ერთი, ორ, სამ, ოთხ, ხუთ, ექვს, შვიდ, რვა, ცხრა]
16
+ twenty: ოცდა
17
+ forty: ორმოცდა
18
+ sixty: სამოცდა
19
+ eighty: ოთხმოცდა
20
+ one_hundred: ას
21
+ one_thousand: ათას
22
+ one_million: მილიონ
23
+ one_billion: მილიარდ