money_to_text 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -23
  3. data/lib/money_to_text.rb +2 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6beafd74dca32c4637c5db7e75220a3e0f6320d5437e8467562d1f203e62ce61
4
- data.tar.gz: 35e1a97fbeef2d65ba739c525904f8692f9e26d6ff63e2f74379191f66f5dffe
3
+ metadata.gz: '058c99c12999fbbc4d919b978b0400adbb16f59d90b7fea9d605cbd7033f2953'
4
+ data.tar.gz: 9187b698f61aa581f954a60a8af23ac1d444315f550a2862dfd868873dfd748b
5
5
  SHA512:
6
- metadata.gz: 2a8e344d53d14b997052e6869b28defa359fda13b15b22483b1ff0691cb0724a5ba4cc60e7904bee6dfe14f05684520938c52f1b14df61c2d6ba58f1d653b42a
7
- data.tar.gz: 1c291fb665d861933fb8cfef441bf8d2c2f69a77ab8d4ab0e66d33879d7091b2a23f837cc70ae79510c5393307ab8cf21d557fed9324c0720ffc409c7290f70d
6
+ metadata.gz: a46b1af8dbff071cd7b6856817213c0b53840cdf39aa437c12fdb715cb1c910f0259c6caf93093913bdf1fce2a776d9473d11119d584f8c4b1870874b3413089
7
+ data.tar.gz: 64d9ba1b248c1a2546b29a98ba53b98967643848f1ab530f9bffa4d0b72c32d847395eb402db12c7efcb41e21102fcf7cc1be456d8b3f75ff227305e39056eea
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # Festivos Colombia
1
+ # Money To Text
2
2
 
3
- _Proyecto creado para obtener un listado de fechas festivas en Colombia_
3
+ _Proyecto creado para obtener de un valor numerico su equivalente en letras_
4
4
 
5
5
  ### Pre-requisitos 📋
6
6
 
@@ -13,15 +13,15 @@ Ruby
13
13
  ### Instalación 🔧
14
14
 
15
15
  **Gemfile**
16
- ```gem 'festivoscolombia', '~> 0.0.1'```
16
+ ```gem 'money_to_text', '~> 0.0.2'```
17
17
 
18
18
  **Install**
19
- ```gem install festivoscolombia```
19
+ ```gem install money_to_text```
20
20
 
21
21
  ## Ejecutando las pruebas ⚙️
22
22
  _Para probar la Gema en la consola de ruby_
23
23
 
24
- ```gem install festivoscolombia```
24
+ ```gem install money_to_text```
25
25
 
26
26
 
27
27
  ![alt text](https://github.com/dario1091/Festivos_Colombia/blob/master/images/install.PNG)}
@@ -30,33 +30,26 @@ _Para probar la Gema en la consola de ruby_
30
30
  consola de ruby
31
31
  ```irb```
32
32
 
33
- ```require 'festivoscolombia'```
33
+ ```require 'money_to_text'```
34
34
 
35
- ![alt text](https://github.com/dario1091/Festivos_Colombia/blob/master/images/console%20ruby.PNG)}
35
+ ![alt text](https://github.com/dario1091/money_to_text/blob/master/images/gem_use.PNG)}
36
36
 
37
37
 
38
- Prueba con año dado
38
+ Prueba entrando valor
39
39
 
40
- ```Festivoscolombia.generar_festivos(1991)```
40
+ ```MoneyToText.get_text("32789")```
41
41
 
42
- ![alt text](https://github.com/dario1091/Festivos_Colombia/blob/master/images/generate_with_year.PNG)}
42
+ ![alt text](https://github.com/dario1091/money_to_text/blob/master/images/enter_value.PNG)}
43
+
44
+
43
45
 
44
- Prueba sin año
46
+ Prueba valor default
45
47
 
46
- _por default trae los festivos del año en curso en este caso 2020_
48
+ _por default trae equivalente del numero 98128765_
47
49
 
48
- ```Festivoscolombia.generar_festivos()```
50
+ ```MoneyToText.get_text()```
49
51
 
50
- ![alt text](https://github.com/dario1091/Festivos_Colombia/blob/master/images/generate_without_year.PNG)}
51
-
52
- ## Consultar una fecha
53
-
54
- _Para consultar una fecha especifica_
55
-
56
-
57
- ```Festivoscolombia.generar_festivos(2020).include?("2020-04-01")```
58
-
59
- ![alt text](https://github.com/dario1091/Festivos_Colombia/blob/master/images/include.PNG)}
52
+ ![alt text](https://github.com/dario1091/money_to_text/blob/master/images/result_default.PNG)}
60
53
 
61
54
 
62
55
 
@@ -1,6 +1,4 @@
1
- #Archivo Gema_festivos_colombia/festivos_colombia.rb
2
-
3
- require "date"
1
+ #Archivo Gema_cantidad_texto/money_to_texto.rb
4
2
 
5
3
  class MoneyToText
6
4
  def self.get_text(money = "98128765")
@@ -34,7 +32,7 @@ class MoneyToText
34
32
  if triUnidades > 0
35
33
  response << triTexto(triUnidades)
36
34
  end
37
- money << " = " << response
35
+ response
38
36
  end
39
37
 
40
38
  def self.triTexto(n)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money_to_text
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dario Paez