Skip to content

Commit

Permalink
Merge branch 'release/0.7.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
kslazarev committed Apr 22, 2013
2 parents 58bc280 + 1400869 commit 6fff2e5
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.7.1 (April 22, 2013)

### Bugs
* Wrong hundreds separator with British. \[[#62](https://github.com/kslazarev/numbers_and_words/issues/62)\] \([@kslazarev](https://github.com/kslazarev)\)

## 0.7.0 (April 14, 2013)

### Features
Expand Down
4 changes: 2 additions & 2 deletions lib/numbers_and_words/i18n/locales/numbers.en-GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ en-GB:
tens: [zeroth, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
hundreds: hundredth
mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth]
fraction_separator: and
union_separator: point
micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths]
tenths:
one: tenth
Expand Down Expand Up @@ -52,4 +52,4 @@ en-GB:
decillionths:
one: decillionth
other: decillionths
union: point
union: and
2 changes: 1 addition & 1 deletion lib/numbers_and_words/i18n/locales/numbers.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ en:
tens: [zeroth, tenth, twentieth, thirtieth, fortieth, fiftieth, sixtieth, seventieth, eightieth, ninetieth]
hundreds: hundredth
mega: [zeroth, thousandth, millionth, billionth, trillionth, quadrillionth, quintillionth, sextillionth, septillionth, octillionth, nonillionth, decillionth]
fraction_separator: and
union_separator: and
micro: [_, tenths, hundredths, thousandths, millionths, billionths, trillionths, quadrillionths, quintillionths, sextillionths, septillionths, octillionths, nonillionths, decillionths]
tenths:
one: tenth
Expand Down
1 change: 1 addition & 0 deletions lib/numbers_and_words/i18n/locales/numbers.hu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ hu:
tens_with_ones: [nulla, tizen, huszon, harminc, negyven, ötven, hatvan, hetven, nyolcvan, kilencven]
hundreds: száz
mega: [egy, ezer, millió, milliárd, billió, billiárd, trillió, trilliárd, kvadrillió, kvadrilliárd, kvintillió, kvintilliárd]
union_separator: egész
union: egész
ordinal:
ones: [nulladik, első, második, harmadik, negyedik, ötödik, hatodik, hetedik, nyolcadik, kilencedik]
Expand Down
1 change: 1 addition & 0 deletions lib/numbers_and_words/i18n/locales/numbers.ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ru:
teens: [десять, одиннадцать, двенадцать, тринадцать, четырнадцать, пятнадцать, шестнадцать, семнадцать, восемнадцать, девятнадцать]
tens: [ноль, десять, двадцать, тридцать, сорок, пятьдесят, шестьдесят, семьдесят, восемьдесят, девяносто]
hundreds: [ноль, сто, двести, триста, четыреста, пятьсот, шестьсот, семьсот, восемьсот, девятьсот]
union_separator: 'и'
union: 'и'
micro:
one: [_, десятая, сотая, тысячная, миллионная, миллиардная, триллионная]
Expand Down
1 change: 1 addition & 0 deletions lib/numbers_and_words/i18n/locales/numbers.ua.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ ua:
teens: [десять, одинадцять, дванадцять, тринадцять, чотирнадцять, п’ятнадцять, шiстнадцять, сiмнадцять, вiсiмнадцять, дев’ятнадцять]
tens: [нуль, десять, двадцять, тридцять, сорок, п’ятдесят, шiстдесят, сiмдесят, вiсiмдесят, дев’яносто]
hundreds: [нуль, сто, двiстi, триста, чотириста, п’ятсот, шiстсот, сiмсот, вiсiмсот, дев’ятсот]
union_separator: 'i'
union: 'i'
micro:
one: [_, десята, сота, тысячна, мiльйонна, мiльярдна, трильйонна]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def union_element
end

def union_separator
options[:union_separator] || @translations.union || ''
options[:union_separator] || @translations.union_separator || ''
end
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/numbers_and_words/translations/families/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def mega capacity
def union
t :union
end

def union_separator
t :union_separator
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/numbers_and_words/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NumbersAndWords
VERSION = '0.7.0'
VERSION = '0.7.1'
end
4 changes: 2 additions & 2 deletions numbers_and_words.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = "numbers_and_words"
s.version = "0.7.0"
s.version = "0.7.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Kirill Lazarev"]
s.date = "2013-04-14"
s.date = "2013-04-22"
s.description = "Convert numbers to words using I18N."
s.email = "[email protected]"
s.extra_rdoc_files = [
Expand Down
12 changes: 11 additions & 1 deletion spec/numbers_and_words/integer/fixture_examples/en-GB.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,14 @@ to_words:
42000: forty-two thousandth
420000: four hundred twenty thousandth
4200000: four million two hundred thousandth
42000000: forty-two millionth
42000000: forty-two millionth
hundred_with_union:
options:
:hundreds_with_union: true
0: zero
100: one hundred
111: one hundred and eleven
1111: one thousand one hundred and eleven
100100: one hundred thousand one hundred
100111: one hundred thousand one hundred and eleven
111111: one hundred and eleven thousand one hundred and eleven

0 comments on commit 6fff2e5

Please sign in to comment.