dolar-bna 1.0.6 → 1.0.7
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 +4 -4
- data/lib/dolar/app/models/dolar_cotization.rb +2 -0
- data/lib/dolar/bna/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbe21a0c2c587369d0cc7ba9b8cecead44949a4ce0ce21b39b6ac8cf2db4efb5
|
4
|
+
data.tar.gz: c96a1e4cc48f9200be848e29d780a26c493299e94f04316793778071058b3e1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff0b1db2aebaa03322314d248829603c4ef1f1a8ec8dac47453e0b5f74912afa70512a5a0dfe93d68ba0a0e367883decfcedde32167263ceee847d6e26cd2b91
|
7
|
+
data.tar.gz: 8e3959749858041a66017badc1b1c0c18f7af237887e5de7f352fe3e119b2a5abed4907fcf8c41eccb4b261793cc91b1fc8249b91847b03c6b830b9203c27758
|
@@ -6,6 +6,8 @@ module Dolar
|
|
6
6
|
validates_presence_of :dolar_type, message: 'Indicar tipo de cotizacion'
|
7
7
|
validates_presence_of :dolar_buy, message: 'Indicar cotizacion de compra'
|
8
8
|
validates_presence_of :dolar_sell, message: 'Indicar cotizacion de venta'
|
9
|
+
validates_numericality_of :dolar_buy, greater_than: 0, message: 'La cotizacion debe ser mayor a 0'
|
10
|
+
validates_numericality_of :dolar_sell, greater_than: 0, message: 'La cotizacion debe ser mayor a 0'
|
9
11
|
validates_uniqueness_of :date, scope: :dolar_type, message: 'Ya existe una cotización de ese tipo para la fecha ingresada'
|
10
12
|
DOLAR_TYPES = ["Divisa", "Billete"]
|
11
13
|
|
data/lib/dolar/bna/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dolar-bna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LITECODE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|