number_to_text 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/lib/number_to_text/number_to_text_converter.rb +2 -0
- data/lib/number_to_text/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 689e149819c151158d8d44b2cc567863c597f44f
|
4
|
+
data.tar.gz: fc10608fa700a8a2d8359253a8fd8c25608f4cde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb5dca10201ca4a5f5749d7d80f7512a1dc71d888e15f597df71456e6daa607e9554e024b815904d675fe664f1de4dc87d3bf58304b9b14e66b0ad098252dd3
|
7
|
+
data.tar.gz: 0f21fb8e4b71000f0de039adea30768be9337184dac662ca5e6f3ce9859162762aef29da4d2ca3ed8e84da70029c33f2e06f2bf61f0086eb1a1fc9398af883c9
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
# NumberToText
|
1
|
+
# NumberToText [](https://travis-ci.org/habermann24/number_to_text)
|
2
2
|
|
3
|
-
|
3
|
+
This gem converts numbers to text. This might be useful if you want to display the amount of a receipt in words.
|
4
4
|
|
5
|
-
|
5
|
+
Currently, only german output is supported. However, the goal is to provide YML language files to make this universal.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,17 +22,19 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
25
|
+
```ruby
|
26
|
+
include NumberToText
|
28
27
|
|
29
|
-
|
28
|
+
>> number_to_text(123)
|
29
|
+
=> "einhundertdreiundzwanzig"
|
30
30
|
|
31
|
-
|
31
|
+
>> number_to_text(1503053)
|
32
|
+
=> "eine Million fünfhundertdreitausenddreiundfünfzig"
|
33
|
+
```
|
32
34
|
|
33
35
|
## Contributing
|
34
36
|
|
35
|
-
1. Fork it ( https://github.com/
|
37
|
+
1. Fork it ( https://github.com/habermann24/number_to_text/fork )
|
36
38
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
39
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
40
|
4. Push to the branch (`git push origin my-new-feature`)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: number_to_text
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ann-Christin Preuß
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|