number_to_text 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 31ce26201cbcefe7811fce61397b0166c60f3119
4
- data.tar.gz: 994bd68e5a094686681d38a0b422359c45aab33c
3
+ metadata.gz: 689e149819c151158d8d44b2cc567863c597f44f
4
+ data.tar.gz: fc10608fa700a8a2d8359253a8fd8c25608f4cde
5
5
  SHA512:
6
- metadata.gz: f3dc101def956cfc88d9efdea5672a43afaf3754228b309adbf907fdd8211ca38db6717f4815644cb43ef11f2d8ae5204955bce75f1b40eef91014db72fbca32
7
- data.tar.gz: 2a3184c9a1842427aa713151a071d9b4290a4b838d5c2b4d7f27f652dd51cf09d6ed1b670a245d5c103bf7afde196e82316a9959bb47c098faf17aa4661c1156
6
+ metadata.gz: 1cb5dca10201ca4a5f5749d7d80f7512a1dc71d888e15f597df71456e6daa607e9554e024b815904d675fe664f1de4dc87d3bf58304b9b14e66b0ad098252dd3
7
+ data.tar.gz: 0f21fb8e4b71000f0de039adea30768be9337184dac662ca5e6f3ce9859162762aef29da4d2ca3ed8e84da70029c33f2e06f2bf61f0086eb1a1fc9398af883c9
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # NumberToText
1
+ # NumberToText [![Build Status](https://travis-ci.org/habermann24/number_to_text.svg?branch=master)](https://travis-ci.org/habermann24/number_to_text)
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/number_to_text`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
26
-
27
- ## Development
25
+ ```ruby
26
+ include NumberToText
28
27
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
28
+ >> number_to_text(123)
29
+ => "einhundertdreiundzwanzig"
30
30
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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/[my-github-username]/number_to_text/fork )
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`)
@@ -1,3 +1,5 @@
1
+ # encoding: utf-8
2
+
1
3
  require 'active_support/number_helper'
2
4
 
3
5
  module NumberToText
@@ -1,3 +1,3 @@
1
1
  module NumberToText
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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.0
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-23 00:00:00.000000000 Z
12
+ date: 2015-05-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport