public
Description: Converts numbers, currency and other units to Polish, English, German
Homepage: http://trix.pl
Clone URL: git://github.com/tomaszmazur/verbal.git
Click here to lend your support to: verbal and make a donation at www.pledgie.com !
Put english tests in their own specs file. Named specs according to 
convention (ending in "_spec").
Dennis Theisen (author)
Mon Sep 01 22:09:23 -0700 2008
commit  af902352cfade7eddcbe35b78fc823a1a6d2a783
tree    9b932fec3d0cd8572ebac2fe8dcba124bf69bff9
parent  b60cfa0a36c30df001b0b89ed3d590678313d842
...
6
7
8
 
9
10
11
12
13
 
 
 
 
14
15
...
6
7
8
9
10
11
12
 
 
13
14
15
16
17
18
0
@@ -6,9 +6,12 @@ bin/verbal
0
 lib/verbal.rb
0
 lib/verbal/core.rb
0
 lib/verbal/english/numbers.rb
0
+lib/verbal/german/numbers.rb
0
 lib/verbal/polish/currency.rb
0
 lib/verbal/polish/numbers.rb
0
 spec/spec_helper.rb
0
-spec/unit/currency.rb
0
-spec/unit/numbers.rb
0
+spec/unit/polish/currency_spec.rb
0
+spec/unit/polish/numbers_spec.rb
0
+spec/unit/english/numbers_spec.rb
0
+spec/unit/german/numbers_spec.rb
0
 verbal.gemspec
0
\ No newline at end of file
...
53
54
55
56
 
57
58
59
...
87
88
89
90
 
91
92
93
...
53
54
55
 
56
57
58
59
...
87
88
89
 
90
91
92
93
0
@@ -53,7 +53,7 @@ module Verbal
0
           @in_words << if val < 100
0
             process_tens(val, exp)
0
           else
0
- process_hundreds(val, exp) + EXPONENT_DE[e]
0
+ process_hundreds(val, exp) + EXPONENT_DE[exp]
0
           end
0
         end
0
         return @in_words.strip.squeeze('')
0
@@ -87,7 +87,7 @@ module Verbal
0
       end
0
 
0
       def process_thousands(value)
0
- exp = exponent(value)
0
+ exp = Verbal::Core.exponent(value)
0
         readable_slices = []
0
         while exp > 0
0
           remainder ||= value
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
0
   s.description = %q{Converts numbers to words (its text presentation) Currently supported languages are: -English * - Polish NOTE: It's American English numbering system http://www.mazes.com/AmericanNumberingSystem.html}
0
   s.email = ["tomek@trix.pl"]
0
   s.extra_rdoc_files = ["History.txt", "Manifest.txt", "README.txt"]
0
- s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/verbal.rb", "lib/verbal/core.rb","lib/verbal/english/numbers.rb", "lib/verbal/polish/numbers.rb", "lib/verbal/polish/currency.rb", "spec/spec_helper.rb", "spec/unit/currency.rb", "spec/unit/numbers.rb"]
0
+ s.files = ["History.txt", "Manifest.txt", "README.txt", "Rakefile", "lib/verbal.rb", "lib/verbal/core.rb","lib/verbal/english/numbers.rb", "lib/verbal/polish/numbers.rb", "lib/verbal/polish/currency.rb", "lib/verbal/german/numbers.rb", "spec/spec_helper.rb", "spec/unit/polish/currency_spec.rb", "spec/unit/polish/numbers_spec.rb", "spec/unit/english/numbers_spec.rb", "spec/unit/german/numbers_spec.rb"]
0
   s.has_rdoc = true
0
   s.homepage = %q{ http://trix.lighthouseapp.com/projects/14763-verbal}
0
   s.rdoc_options = ["--main", "README.txt"]

Comments

    No one has commented yet.