numerale 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ Numerale
2
+ =================
3
+ Numerale is intended to convert numerals into words (only in Polish now)
4
+
5
+ Examples
6
+ =================
7
+ 123.to_text
8
+ => sto dwadzieścia trzy złote zero groszy
9
+
10
+ 10324.55.to_text
11
+ => dziesięć tysięcy trzysta dwadzieścia cztery złote pięćdziesiąt pięć groszy
@@ -146,3 +146,10 @@ class Fixnum
146
146
  c.to_text(currency)
147
147
  end
148
148
  end
149
+
150
+ class BigDecimal
151
+ def to_text(currency = "PLN")
152
+ c = Numerale.new(self)
153
+ c.to_text(currency)
154
+ end
155
+ end
@@ -1,3 +1,3 @@
1
1
  module Numerale
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numerale
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Piotr Debosz
@@ -44,6 +44,7 @@ extra_rdoc_files: []
44
44
  files:
45
45
  - .gitignore
46
46
  - Gemfile
47
+ - README.md
47
48
  - Rakefile
48
49
  - lib/numerale.rb
49
50
  - lib/numerale/.DS_Store