julik/ru_propisju — Issue #3: something wrong
Author: renius
Created: 2012-02-28 12:14:04+00:00
State: open

ruby-1.9.2-p290 :024 > RuPropisju.amount_in_words(2000000, :rub)
NoMethodError: undefined method `empty?' for nil:NilClass
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:318:in `compose_ordinal'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:451:in `block in propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `each'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:209:in `propisju'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:296:in `propisju_shtuk'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:186:in `rublej'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `call'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `amount_in_words'
from (irb):24
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:47:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:8:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
ruby-1.9.2-p290 :025 > RuPropisju.amount_in_words(2000000, :eur)
=> "два миллиона евро"
ruby-1.9.2-p290 :026 > RuPropisju.amount_in_words(2000000, :rur)
NoMethodError: undefined method `empty?' for nil:NilClass
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:318:in `compose_ordinal'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:451:in `block in propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `each'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:209:in `propisju'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:296:in `propisju_shtuk'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:186:in `rublej'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `call'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `amount_in_words'
from (irb):26
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:47:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:8:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
ruby-1.9.2-p290 :027 > RuPropisju.amount_in_words(2000000, :rub)
NoMethodError: undefined method `empty?' for nil:NilClass
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:318:in `compose_ordinal'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:451:in `block in propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `each'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:449:in `propisju_int'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:209:in `propisju'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:296:in `propisju_shtuk'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:186:in `rublej'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `call'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/ru_propisju-2.1.0/lib/ru_propisju.rb:173:in `amount_in_words'
from (irb):27
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:47:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands/console.rb:8:in `start'
from /home/anton/.rvm/gems/ruby-1.9.2-p290@r32/gems/railties-3.2.1/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
ruby-1.9.2-p290 :028 > RuPropisju.amount_in_words(2000000, :usd)
=> "два миллиона долларов"
ruby-1.9.2-p290 :029 >