dolar-bna 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 687a7d90ef5128b874b22f4a9cae467ef2e8259824f0e36a2a64f519f27a37b6
4
- data.tar.gz: dd4c33a15f0f848193a0e741af9ac334c406e0392ddf48e8bc00b5abeaf22acc
3
+ metadata.gz: ef54f11d440540a2e34b8b59e96b1e6dc6f700ec441bd5a8adf5514e787d4dbf
4
+ data.tar.gz: 5aae056271b79c2e27b83b397a15945914a5a5e1efe3d311408fe63a50135ffc
5
5
  SHA512:
6
- metadata.gz: fbf080ba8a7e770182c8e50092775cb6e6504dc69ef2a0c05f1bfb6d4f1586631ed8a60be82be81e868c903a395c0c0362b146720629b2f107eda36a49a481c5
7
- data.tar.gz: 41f9a8a64413d712c5d52e1fc627d9612d1458f1651ec6aed904fbb77ea798c2f0d72ab9b4df2defeefffb28cab6952164efc338ba9d8e669289ba9e06642829
6
+ metadata.gz: a1276ce1b38116288e0b31ad8ad48c05e652818b26c87afce55b12df8903cbcc928ce12840f65d6fe489666fb71ce6330fb6f69e616503002411e8a6a9ba9938
7
+ data.tar.gz: b7027b73390e6095ab852ddc24bc6eb399a4a4f41181c5e73a36dedd8d497167e308494f76c1fc0bdd2a762697559d47b1efa7e674d6cbdefae698b7a0f43636
@@ -57,7 +57,7 @@ module Dolar
57
57
  private
58
58
 
59
59
  def check_cotization dolar_type, date
60
- query = Dolar::Bna::DolarCotization.where(date: date.to_date, dolar_type: dolar_type).where("dolar_cotizations.created_at >= ?", Time.now - 1.hours).first
60
+ query = Dolar::Bna::DolarCotization.where(date: date.to_date, dolar_type: dolar_type).where("dolar_cotizations.created_at >= ?", Time.now - 1.hours).order("dolar_cotizations.created_at ASC").last
61
61
  ddolar = nil
62
62
  if query.nil?
63
63
  if dolar_type == "Divisa"
@@ -1,5 +1,5 @@
1
1
  module Dolar
2
2
  module Bna
3
- VERSION = "1.2.2"
3
+ VERSION = "1.2.3"
4
4
  end
5
5
  end
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.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezequiel Lorenzo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: factory_bot