slovom 0.1.1 → 0.1.2

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.
data/README.md CHANGED
@@ -33,9 +33,12 @@ product2.price.slovom => "хиляда петстотин шестдесет и
33
33
 
34
34
  product3.price.to_s => "0.75"
35
35
  product3.price.slovom => "седемдесет и пет стотинки"
36
+
37
+ "76.03".to_d.slovom => "седемдесет и шест лева и три стотинки"
36
38
  ```
37
39
 
38
- It parses numbers of up to 1 quadrillion (1000000000000000), as higher 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.
40
+ 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.
41
+ Note the `.slovom` method is attached to the `BigDecimal` class, which is also used by default for decimals in Rails.
39
42
 
40
43
  ## Contributing
41
44
 
@@ -1,3 +1,3 @@
1
1
  module Slovom
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/spec/slovom_spec.rb CHANGED
@@ -1,8 +1,6 @@
1
1
  #encoding: utf-8
2
2
  require 'bigdecimal'
3
3
  require 'spec_helper.rb'
4
- #require 'string'
5
- #require 'integer'
6
4
 
7
5
  describe BigDecimal do
8
6
 
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: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: