slovom 0.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +2 -1
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +8 -0
- data/LICENSE +1 -1
- data/README.md +18 -8
- data/lib/slovom/version.rb +1 -1
- metadata +4 -3
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
## Contributing to slovom
|
2
|
+
|
3
|
+
1. Fork it
|
4
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
5
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
6
|
+
4. Make sure all tests pass!
|
7
|
+
5. Push to the branch (`git push origin my-new-feature`)
|
8
|
+
6. Create new Pull Request
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -4,8 +4,14 @@ A Ruby gem which converts decimal currency numbers into text in Bulgarian langua
|
|
4
4
|
|
5
5
|
Handles the specifics of verbally presenting numbers and prices in Bulgarian, including grammatical irregularities, differences due to gender, singularity and plurality and the logic of using or omitting the "and" conjunction from the resulting string.
|
6
6
|
|
7
|
-
[![Build Status](https://secure.travis-ci.org/tarakanbg/slovom.png)](http://travis-ci.org/tarakanbg/slovom)
|
8
|
-
[![
|
7
|
+
[![Build Status](https://secure.travis-ci.org/tarakanbg/slovom.png?branch=master)](http://travis-ci.org/tarakanbg/slovom)
|
8
|
+
[![Gemnasium](https://gemnasium.com/tarakanbg/slovom.png?travis)](https://gemnasium.com/tarakanbg/slovom)
|
9
|
+
[![Gem Version](https://badge.fury.io/rb/slovom.png)](http://badge.fury.io/rb/slovom)
|
10
|
+
[![Code Climate](https://codeclimate.com/github/tarakanbg/slovom.png)](https://codeclimate.com/github/tarakanbg/slovom)
|
11
|
+
|
12
|
+
## Requirements
|
13
|
+
|
14
|
+
[Ruby 1.9.3](http://www.ruby-lang.org/en/downloads/) or higher | **Supports Ruby 2.0!**
|
9
15
|
|
10
16
|
## Installation
|
11
17
|
|
@@ -43,22 +49,26 @@ product3.price.slovom => "седемдесет и пет стотинки"
|
|
43
49
|
It parses numbers of up to 1 quadrillion (1000000000000000), as larger numbers are not likely to be used in financial transactions and hence no need to be expressed verbally. It returns the string "много" if higher number is used.
|
44
50
|
Note the `.slovom` method is attached to the `BigDecimal` class, which is also used by default for decimals in Rails.
|
45
51
|
|
52
|
+
## Changelog
|
53
|
+
|
54
|
+
[Read here](https://github.com/tarakanbg/slovom/blob/master/CHANGELOG.md)
|
55
|
+
|
46
56
|
## Contributing
|
47
57
|
|
48
58
|
1. Fork it
|
49
59
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
50
60
|
3. Commit your changes (`git commit -am 'Added some feature'`)
|
51
|
-
4. Make sure all tests
|
61
|
+
4. Make sure all tests pass!
|
52
62
|
5. Push to the branch (`git push origin my-new-feature`)
|
53
63
|
6. Create new Pull Request
|
54
64
|
|
55
|
-
|
65
|
+
## Credits
|
56
66
|
|
57
|
-
|
67
|
+
Copyright © 2013 [Svilen Vassilev](http://svilen.rubystudio.net)
|
58
68
|
|
59
|
-
|
69
|
+
*If you find my work useful or time-saving, you can endorse it or buy me a cup of coffee:*
|
70
|
+
|
71
|
+
[![endorse](http://api.coderwall.com/svilenv/endorsecount.png)](http://coderwall.com/svilenv)
|
60
72
|
[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5FR7AQA4PLD8A)
|
61
73
|
|
62
74
|
Released under the [MIT LICENSE](https://github.com/tarakanbg/slovom/blob/master/LICENSE)
|
63
|
-
|
64
|
-
|
data/lib/slovom/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slovom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-03-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- .rspec
|
57
57
|
- .travis.yml
|
58
58
|
- CHANGELOG.md
|
59
|
+
- CONTRIBUTING.md
|
59
60
|
- Gemfile
|
60
61
|
- LICENSE
|
61
62
|
- README.md
|
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
87
|
version: '0'
|
87
88
|
requirements: []
|
88
89
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.8.
|
90
|
+
rubygems_version: 1.8.25
|
90
91
|
signing_key:
|
91
92
|
specification_version: 3
|
92
93
|
summary: Converts decimal currency numbers into text in Bulgarian language
|