dolar-bna 1.2.6 → 1.2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dolar/app/models/dolar_cotization.rb +1 -1
- 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: 1508742d762682e9d193f513eb5d05d4e08ae55fc49f72164afdb146a08787ef
|
4
|
+
data.tar.gz: 54c32301dc25df4ce5aba9ef1a4bca0a11135299622856ba39fcf3b5458b4a8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 970d64eebc0fcdcc326c1a5a8d5001c567c18aff43bdf5ede6490f2ccae127daf1fb55f174c7372f025f3fe8f1cca2070dbc865183cfc62ed3dbd974d21908e7
|
7
|
+
data.tar.gz: d307b912ee82f8a08c957e2d30459b1ba78f83fe68a2b10af2ae6c5f80250966606b5ed3c682449f3df2d42991ba1c26b59db04cdfbf2cacfb0beb96d1cb7732
|
@@ -52,7 +52,7 @@ module Dolar
|
|
52
52
|
if other_dolar_to_calc
|
53
53
|
dolar_buy_average = ((self.dolar_buy.to_f * first_dolar_multiplier) + (other_dolar_to_calc.dolar_buy.to_f * second_dolar_multiplier)).round(2)
|
54
54
|
dolar_sell_average = ((self.dolar_sell.to_f * first_dolar_multiplier) + (other_dolar_to_calc.dolar_sell.to_f * second_dolar_multiplier)).round(2)
|
55
|
-
Dolar::Bna::DolarCotization.
|
55
|
+
Dolar::Bna::DolarCotization.where(dolar_type: 'Agro', dolar_buy: dolar_buy_average, dolar_sell: dolar_sell_average, date: self.date).first_or_create
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
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.2.6
|
4
|
+
version: 1.2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LITECODE
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: factory_bot
|