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 !
Added rake task for running specs (also made it the default task).
  TODO: remove double "already initialized constant ..." warnings
Dennis Theisen (author)
Mon Sep 01 22:39:46 -0700 2008
commit  764d038f797432884631274b2579645518216902
tree    15dc68bd6c4e8bfe524ec76ce233c9f0e0278c79
parent  af902352cfade7eddcbe35b78fc823a1a6d2a783
...
1
2
3
 
4
5
6
7
8
 
 
 
 
 
 
9
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
0
@@ -1,8 +1,15 @@
0
 require 'rubygems'
0
 require 'hoe'
0
 require './lib/verbal.rb'
0
+require 'spec/rake/spectask'
0
 
0
 Hoe.new('verbal', Verbal::VERSION) do |p|
0
   p.rubyforge_name = 'verbal'
0
   p.developer('Tomasz Mazur', 'tomek@trix.pl')
0
 end
0
+
0
+Spec::Rake::SpecTask.new(:spec) do |t|
0
+ t.verbose = false
0
+end
0
+
0
+task :default => :spec
0
\ No newline at end of file
...
1
2
3
 
4
...
1
2
 
3
4
0
@@ -1,3 +1,3 @@
0
 require 'rubygems'
0
 require 'spec'
0
-require File.join(File.dirname(__FILE__), '../lib', 'verbal')
0
+require File.join(File.dirname(__FILE__), '../lib', 'verbal')
0
\ No newline at end of file
...
1
 
2
3
4
5
6
7
 
 
 
8
9
10
...
 
1
2
3
4
 
 
 
5
6
7
8
9
10
0
@@ -1,9 +1,9 @@
0
-require File.join(File.dirname(__FILE__), '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
 
0
 describe Verbal::English::Numbers do
0
   it 'should return correct string' do
0
- Verbal::English::Numbers.to_words(34).should == "thirty-four"
0
- Verbal::English::Numbers.to_words(2_001).should == "two thousand and one"
0
- Verbal::English::Numbers.to_words(1_134).should == "one thousand one hundred and thirty-four"
0
+ Verbal::English::Numbers.to_words(34).should == "thirty-four"
0
+ Verbal::English::Numbers.to_words(2_001).should == "two thousand and one"
0
+ Verbal::English::Numbers.to_words(1_134).should == "one thousand one hundred and thirty-four"
0
   end
0
 end
0
\ No newline at end of file
...
5
6
7
 
8
9
10
...
5
6
7
8
9
10
11
0
@@ -5,6 +5,7 @@ describe Verbal::German::Numbers do
0
   it 'should return correct string for numbers < 20' do
0
     Verbal::German::Numbers.to_words(0).should == 'null'
0
     Verbal::German::Numbers.to_words(15).should == 'fünfzehn'
0
+ Verbal::German::Numbers.to_words(20).should == 'zwanzig'
0
   end
0
 
0
   it 'should return correct string for numbers < 100' do
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
 
0
 describe Verbal::Polish::Currency do
0
 
...
1
 
2
3
4
...
 
1
2
3
4
0
@@ -1,4 +1,4 @@
0
-require File.join(File.dirname(__FILE__), '..', 'spec_helper')
0
+require File.join(File.dirname(__FILE__), '..', '..', 'spec_helper')
0
 
0
 describe Verbal::Polish::Numbers do
0
 

Comments

    No one has commented yet.