monto_escrito 0.0.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 +7 -0
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +36 -0
- data/Rakefile +9 -0
- data/lib/monto_escrito/conversor.rb +126 -0
- data/lib/monto_escrito/version.rb +3 -0
- data/lib/monto_escrito.rb +5 -0
- data/monto_escrito.gemspec +24 -0
- data/spec/conversor_spec.rb +205 -0
- data/spec/spec_helper.rb +2 -0
- metadata +100 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7b5aca09925d7886ac7ee203402c9a749eb5bfb4
|
4
|
+
data.tar.gz: 0c2ee0b819abddd9419d6a8951093328dd9e5056
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ebf9a8b0352a396124226cc407a8707f34b8de9638d4b22f5c5becb4282dafadc975cbbaa37fc911fa5f81e0732704c1ae0cb3706044390f61959f635103251
|
7
|
+
data.tar.gz: 39b9c9b4d655457ade61d7011d4af36dae3b0ce8d5b4526a628291978d38bf2954fcf668f2fafed61066bc559a6d5a35239aa8bcbeb0039adb83cd5f50c0d59e
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Lucas Videla
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# MontoEscrito
|
2
|
+
|
3
|
+
Helper para escribir montos con palabras en español
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'monto_escrito'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install monto_escrito
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
Para convertir una cantidad a palabras, simplemente hay que utilizar el método `convertir` del helper `MontoEscrito::Conversor`:
|
22
|
+
|
23
|
+
irb(main):001:0> MontoEscrito::Conversor.convertir(10)
|
24
|
+
=> "diez"
|
25
|
+
irb(main):002:0> MontoEscrito::Conversor.convertir(14)
|
26
|
+
=> "catorce"
|
27
|
+
|
28
|
+
> **Nota:** actualmente se soportan sólamente números positivos menores a un cuatrillón. Puede extenderse fácilmente, pero a fines prácticos se deja en esa cantidad. Se arrojará un `ArgumentError` en caso de violar esa restricción de dominio.
|
29
|
+
|
30
|
+
## Contributing
|
31
|
+
|
32
|
+
1. Fork it
|
33
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
34
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
35
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
36
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
module MontoEscrito
|
2
|
+
class Conversor
|
3
|
+
|
4
|
+
def self.convertir(numero)
|
5
|
+
|
6
|
+
raise ArgumentError if numero >= 1_000_000_000_000_000_000_000_000 or numero < 0
|
7
|
+
|
8
|
+
if @@casos_especiales[numero]
|
9
|
+
monto_escrito = @@casos_especiales[numero]
|
10
|
+
else
|
11
|
+
|
12
|
+
monto_escrito = ''
|
13
|
+
|
14
|
+
@@casos.each do |caso, detalles|
|
15
|
+
if numero >= caso
|
16
|
+
valor = (numero.to_i / detalles[:divisor]) * detalles[:multiplicador_primario]
|
17
|
+
monto_escrito += convertir(valor) + detalles[:sufijo]
|
18
|
+
numero -= valor * detalles[:multiplicador_secundario]
|
19
|
+
if numero > 0
|
20
|
+
monto_escrito += detalles[:continuacion]
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
monto_escrito
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
@@casos_especiales = { 0 => 'cero', 1 => 'un', 2 => 'dos', 3 => 'tres', 4 => 'cuatro', 5 => 'cinco', 6 => 'seis', 7 => 'siete', 8 => 'ocho', 9 => 'nueve', 10 => 'diez', 11 => 'once', 12 => 'doce', 13 => 'trece', 14 => 'catorce', 15 => 'quince', 16 => 'dieciséis', 17 => 'diecisiete', 18 => 'dieciocho', 19 => 'diecinueve', 21 => 'veintiún', 22 => 'veintidós', 23 => 'veintitrés', 24 => 'veinticuatro', 25 => 'veinticinco', 26 => 'veintiséis', 27 => 'veintisiete', 28 => 'veintiocho', 29 => 'veintinueve', 10 => 'diez', 20 => 'veinte', 30 => 'treinta', 40 => 'cuarenta', 50 => 'cincuenta', 60 => 'sesenta', 70 => 'setenta', 80 => 'ochenta', 90 => 'noventa', 100 => 'cien', 200 => 'doscientos', 300 => 'trescientos', 400 => 'cuatrocientos', 500 => 'quinientos', 600 => 'seiscientos', 700 => 'setecientos', 800 => 'ochocientos', 900 => 'novecientos'
|
31
|
+
}
|
32
|
+
|
33
|
+
@@casos = {
|
34
|
+
2_000_000_000_000_000_000 =>
|
35
|
+
{
|
36
|
+
:divisor => 1_000_000_000_000_000_000,
|
37
|
+
:multiplicador_primario => 1,
|
38
|
+
:multiplicador_secundario => 1_000_000_000_000_000_000,
|
39
|
+
:sufijo => ' trillones',
|
40
|
+
:continuacion => ' ',
|
41
|
+
},
|
42
|
+
1_000_000_000_000_000_000 =>
|
43
|
+
{
|
44
|
+
:divisor => 1_000_000_000_000_000_000,
|
45
|
+
:multiplicador_primario => 1,
|
46
|
+
:multiplicador_secundario => 1_000_000_000_000_000_000,
|
47
|
+
:sufijo => ' trillón',
|
48
|
+
:continuacion => ' ',
|
49
|
+
},
|
50
|
+
2_000_000_000_000 =>
|
51
|
+
{
|
52
|
+
:divisor => 1_000_000_000_000,
|
53
|
+
:multiplicador_primario => 1,
|
54
|
+
:multiplicador_secundario => 1_000_000_000_000,
|
55
|
+
:sufijo => ' billones',
|
56
|
+
:continuacion => ' ',
|
57
|
+
},
|
58
|
+
1_000_000_000_000 =>
|
59
|
+
{
|
60
|
+
:divisor => 1_000_000_000_000,
|
61
|
+
:multiplicador_primario => 1,
|
62
|
+
:multiplicador_secundario => 1_000_000_000_000,
|
63
|
+
:sufijo => ' billón',
|
64
|
+
:continuacion => ' ',
|
65
|
+
},
|
66
|
+
2_000_000 =>
|
67
|
+
{
|
68
|
+
:divisor => 1_000_000,
|
69
|
+
:multiplicador_primario => 1,
|
70
|
+
:multiplicador_secundario => 1_000_000,
|
71
|
+
:sufijo => ' millones',
|
72
|
+
:continuacion => ' ',
|
73
|
+
},
|
74
|
+
1_000_000 =>
|
75
|
+
{
|
76
|
+
:divisor => 1_000_000,
|
77
|
+
:multiplicador_primario => 1,
|
78
|
+
:multiplicador_secundario => 1_000_000,
|
79
|
+
:sufijo => ' millón',
|
80
|
+
:continuacion => ' ',
|
81
|
+
},
|
82
|
+
1_000 =>
|
83
|
+
{
|
84
|
+
:divisor => 1_000,
|
85
|
+
:multiplicador_primario => 1,
|
86
|
+
:multiplicador_secundario => 1_000,
|
87
|
+
:sufijo => ' mil',
|
88
|
+
:continuacion => ' ',
|
89
|
+
},
|
90
|
+
200 =>
|
91
|
+
{
|
92
|
+
:divisor => 100,
|
93
|
+
:multiplicador_primario => 100,
|
94
|
+
:multiplicador_secundario => 1,
|
95
|
+
:sufijo => '',
|
96
|
+
:continuacion => ' ',
|
97
|
+
},
|
98
|
+
100 =>
|
99
|
+
{
|
100
|
+
:divisor => 100,
|
101
|
+
:multiplicador_primario => 100,
|
102
|
+
:multiplicador_secundario => 1,
|
103
|
+
:sufijo => 'to',
|
104
|
+
:continuacion => ' ',
|
105
|
+
},
|
106
|
+
30 =>
|
107
|
+
{
|
108
|
+
:divisor => 10,
|
109
|
+
:multiplicador_primario => 10,
|
110
|
+
:multiplicador_secundario => 1,
|
111
|
+
:sufijo => '',
|
112
|
+
:continuacion => ' y ',
|
113
|
+
},
|
114
|
+
1 =>
|
115
|
+
{
|
116
|
+
:divisor => 1,
|
117
|
+
:multiplicador_primario => 1,
|
118
|
+
:multiplicador_secundario => 1,
|
119
|
+
:sufijo => '',
|
120
|
+
:continuacion => '',
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
end
|
125
|
+
|
126
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'monto_escrito/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "monto_escrito"
|
8
|
+
spec.version = MontoEscrito::VERSION
|
9
|
+
spec.authors = ["Lucas Videla"]
|
10
|
+
spec.email = ["videla.lucas@gmail.com"]
|
11
|
+
spec.description = %q{Helper para escribir montos con palabras en español}
|
12
|
+
spec.summary = %q{Esta gema expone un método para convertir a palabras un monto, utilizando el idioma español}
|
13
|
+
spec.homepage = "https://github.com/wecodeio/monto_escrito"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "minitest", "~> 5.2.0"
|
24
|
+
end
|
@@ -0,0 +1,205 @@
|
|
1
|
+
require_relative "spec_helper"
|
2
|
+
require File.expand_path("lib/monto_escrito/conversor.rb")
|
3
|
+
|
4
|
+
describe MontoEscrito::Conversor do
|
5
|
+
|
6
|
+
def convertir(numero)
|
7
|
+
MontoEscrito::Conversor.convertir(numero)
|
8
|
+
end
|
9
|
+
|
10
|
+
def verificar_conversiones(numeros)
|
11
|
+
numeros.each { |numero, letras|
|
12
|
+
convertir(numero).must_equal letras
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
it "convierte un dígito" do
|
17
|
+
digitos = {
|
18
|
+
0 => 'cero',
|
19
|
+
1 => 'un',
|
20
|
+
2 => 'dos',
|
21
|
+
3 => 'tres',
|
22
|
+
4 => 'cuatro',
|
23
|
+
5 => 'cinco',
|
24
|
+
6 => 'seis',
|
25
|
+
7 => 'siete',
|
26
|
+
8 => 'ocho',
|
27
|
+
9 => 'nueve'
|
28
|
+
}
|
29
|
+
|
30
|
+
verificar_conversiones(digitos)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "convierte los números del 11 al 19" do
|
34
|
+
numeros = {
|
35
|
+
11 => 'once',
|
36
|
+
12 => 'doce',
|
37
|
+
13 => 'trece',
|
38
|
+
14 => 'catorce',
|
39
|
+
15 => 'quince',
|
40
|
+
16 => 'dieciséis',
|
41
|
+
17 => 'diecisiete',
|
42
|
+
18 => 'dieciocho',
|
43
|
+
19 => 'diecinueve'
|
44
|
+
}
|
45
|
+
|
46
|
+
verificar_conversiones(numeros)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "convierte los números del 21 al 29" do
|
50
|
+
numeros = {
|
51
|
+
21 => 'veintiún',
|
52
|
+
22 => 'veintidós',
|
53
|
+
23 => 'veintitrés',
|
54
|
+
24 => 'veinticuatro',
|
55
|
+
25 => 'veinticinco',
|
56
|
+
26 => 'veintiséis',
|
57
|
+
27 => 'veintisiete',
|
58
|
+
28 => 'veintiocho',
|
59
|
+
29 => 'veintinueve'
|
60
|
+
}
|
61
|
+
|
62
|
+
verificar_conversiones(numeros)
|
63
|
+
end
|
64
|
+
|
65
|
+
it "convierte las decenas" do
|
66
|
+
numeros = {
|
67
|
+
10 => 'diez',
|
68
|
+
20 => 'veinte',
|
69
|
+
30 => 'treinta',
|
70
|
+
40 => 'cuarenta',
|
71
|
+
50 => 'cincuenta',
|
72
|
+
60 => 'sesenta',
|
73
|
+
70 => 'setenta',
|
74
|
+
80 => 'ochenta',
|
75
|
+
90 => 'noventa'
|
76
|
+
}
|
77
|
+
|
78
|
+
verificar_conversiones(numeros)
|
79
|
+
end
|
80
|
+
|
81
|
+
it "convierte entre 31 y 99" do
|
82
|
+
numeros = {
|
83
|
+
31 => 'treinta y un',
|
84
|
+
32 => 'treinta y dos',
|
85
|
+
47 => 'cuarenta y siete',
|
86
|
+
58 => 'cincuenta y ocho',
|
87
|
+
63 => 'sesenta y tres',
|
88
|
+
78 => 'setenta y ocho',
|
89
|
+
87 => 'ochenta y siete',
|
90
|
+
99 => 'noventa y nueve'
|
91
|
+
}
|
92
|
+
|
93
|
+
verificar_conversiones(numeros)
|
94
|
+
end
|
95
|
+
|
96
|
+
it "convierte centenas" do
|
97
|
+
numeros = {
|
98
|
+
100 => 'cien',
|
99
|
+
200 => 'doscientos',
|
100
|
+
300 => 'trescientos',
|
101
|
+
400 => 'cuatrocientos',
|
102
|
+
500 => 'quinientos',
|
103
|
+
600 => 'seiscientos',
|
104
|
+
700 => 'setecientos',
|
105
|
+
800 => 'ochocientos',
|
106
|
+
900 => 'novecientos'
|
107
|
+
}
|
108
|
+
|
109
|
+
verificar_conversiones(numeros)
|
110
|
+
end
|
111
|
+
|
112
|
+
it "convierte entre 101 y 199" do
|
113
|
+
numeros = {
|
114
|
+
101 => 'ciento un',
|
115
|
+
102 => 'ciento dos',
|
116
|
+
125 => 'ciento veinticinco',
|
117
|
+
150 => 'ciento cincuenta',
|
118
|
+
187 => 'ciento ochenta y siete',
|
119
|
+
199 => 'ciento noventa y nueve'
|
120
|
+
}
|
121
|
+
|
122
|
+
verificar_conversiones(numeros)
|
123
|
+
end
|
124
|
+
|
125
|
+
it "convierte entre 201 y 999" do
|
126
|
+
numeros = {
|
127
|
+
201 => 'doscientos un',
|
128
|
+
302 => 'trescientos dos',
|
129
|
+
425 => 'cuatrocientos veinticinco',
|
130
|
+
550 => 'quinientos cincuenta',
|
131
|
+
787 => 'setecientos ochenta y siete',
|
132
|
+
999 => 'novecientos noventa y nueve'
|
133
|
+
}
|
134
|
+
|
135
|
+
verificar_conversiones(numeros)
|
136
|
+
end
|
137
|
+
|
138
|
+
it "convierte miles" do
|
139
|
+
miles = {
|
140
|
+
1_000 => 'un mil',
|
141
|
+
2_134 => 'dos mil ciento treinta y cuatro',
|
142
|
+
37_690 => 'treinta y siete mil seiscientos noventa',
|
143
|
+
654_321 => 'seiscientos cincuenta y cuatro mil trescientos veintiún',
|
144
|
+
808_080 => 'ochocientos ocho mil ochenta',
|
145
|
+
999_999 => 'novecientos noventa y nueve mil novecientos noventa y nueve'
|
146
|
+
}
|
147
|
+
|
148
|
+
verificar_conversiones(miles)
|
149
|
+
end
|
150
|
+
|
151
|
+
it "convierte millones" do
|
152
|
+
millones = {
|
153
|
+
1_000_000 => 'un millón',
|
154
|
+
2_134_567 => 'dos millones ciento treinta y cuatro mil quinientos sesenta y siete',
|
155
|
+
37_690_163 => 'treinta y siete millones seiscientos noventa mil ciento sesenta y tres',
|
156
|
+
654_321_784 => 'seiscientos cincuenta y cuatro millones trescientos veintiún mil setecientos ochenta y cuatro',
|
157
|
+
808_080_080 => 'ochocientos ocho millones ochenta mil ochenta',
|
158
|
+
999_999_999 => 'novecientos noventa y nueve millones novecientos noventa y nueve mil novecientos noventa y nueve'
|
159
|
+
}
|
160
|
+
|
161
|
+
verificar_conversiones(millones)
|
162
|
+
end
|
163
|
+
|
164
|
+
it "convierte miles de millones" do
|
165
|
+
miles_de_millones = {
|
166
|
+
1_000_000_000 => 'un mil millones',
|
167
|
+
10_000_000_000 => 'diez mil millones',
|
168
|
+
100_000_000_000 => 'cien mil millones',
|
169
|
+
999_999_999_999 => 'novecientos noventa y nueve mil novecientos noventa y nueve millones novecientos noventa y nueve mil novecientos noventa y nueve'
|
170
|
+
}
|
171
|
+
|
172
|
+
verificar_conversiones(miles_de_millones)
|
173
|
+
end
|
174
|
+
|
175
|
+
it "convierte billones" do
|
176
|
+
billones = {
|
177
|
+
1_000_000_000_000 => 'un billón',
|
178
|
+
2_000_000_000_000 => 'dos billones',
|
179
|
+
999_999_999_999_999_999 => 'novecientos noventa y nueve mil novecientos noventa y nueve billones novecientos noventa y nueve mil novecientos noventa y nueve millones novecientos noventa y nueve mil novecientos noventa y nueve'
|
180
|
+
}
|
181
|
+
|
182
|
+
verificar_conversiones(billones)
|
183
|
+
end
|
184
|
+
|
185
|
+
it "convierte trillones" do
|
186
|
+
trillones = {
|
187
|
+
1_000_000_000_000_000_000 => 'un trillón',
|
188
|
+
2_000_000_000_000_000_000 => 'dos trillones',
|
189
|
+
999_999_999_999_999_999_999_999 => 'novecientos noventa y nueve mil novecientos noventa y nueve trillones novecientos noventa y nueve mil novecientos noventa y nueve billones novecientos noventa y nueve mil novecientos noventa y nueve millones novecientos noventa y nueve mil novecientos noventa y nueve'
|
190
|
+
}
|
191
|
+
|
192
|
+
verificar_conversiones(trillones)
|
193
|
+
end
|
194
|
+
|
195
|
+
it "no soporta cuatrillones" do
|
196
|
+
numero = 1_000_000_000_000_000_000_000_000
|
197
|
+
proc {MontoEscrito::Conversor.convertir(numero)}.must_raise(ArgumentError)
|
198
|
+
end
|
199
|
+
|
200
|
+
it "no soporta negativos" do
|
201
|
+
numero = -1
|
202
|
+
proc {MontoEscrito::Conversor.convertir(numero)}.must_raise(ArgumentError)
|
203
|
+
end
|
204
|
+
|
205
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: monto_escrito
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lucas Videla
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-01-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.2.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.2.0
|
55
|
+
description: Helper para escribir montos con palabras en español
|
56
|
+
email:
|
57
|
+
- videla.lucas@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE.txt
|
65
|
+
- README.md
|
66
|
+
- Rakefile
|
67
|
+
- lib/monto_escrito.rb
|
68
|
+
- lib/monto_escrito/conversor.rb
|
69
|
+
- lib/monto_escrito/version.rb
|
70
|
+
- monto_escrito.gemspec
|
71
|
+
- spec/conversor_spec.rb
|
72
|
+
- spec/spec_helper.rb
|
73
|
+
homepage: https://github.com/wecodeio/monto_escrito
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.0.0.rc.2
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: Esta gema expone un método para convertir a palabras un monto, utilizando
|
97
|
+
el idioma español
|
98
|
+
test_files:
|
99
|
+
- spec/conversor_spec.rb
|
100
|
+
- spec/spec_helper.rb
|