active_currency 1.4.0 → 1.4.1

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: dc61cac61fcc7b74bf7288a1145b89af079cb527f49dc3991dd7147ebe5b824a
4
- data.tar.gz: fc8da46d16ceae4822a6f6e3974c050bafa732122d5918276bc33b5fd09531ff
3
+ metadata.gz: 24899da573f1e315a78c1decba411086f3eac1d6a3c310ecef540ce335f1ae08
4
+ data.tar.gz: 63b96729eea58b10540d2001eea75cce8fe65200511343fd88b9c7ba0cc78dac
5
5
  SHA512:
6
- metadata.gz: 96554a896dd94c5b23d274c2805421dade360cec6f77eeba451f41f0be49783264f191dd23f555df0a54230c6eb387562577fb470580223af411b22211fbeaa2
7
- data.tar.gz: 0e2b4b110edede9724552d7ff36c35d8f6c80cd0d8449950092a84452d1fe5f64043116ccfb3f8aef1a2e7b9793973c09e47546c11d9afa31e3d98b3ce0abaa2
6
+ metadata.gz: b4ea44407954e21d74cbfd9da125fb6766e9e7411ae9b9eba3f7347c6c4c30d0454602e13ad8009d220740d9d5b9574b116cc5ec774efac3e795e919450a0fc7
7
+ data.tar.gz: d8752dfdb82685f9d11d59d91f1a00984712b7fa9d61717bea11a20588d4e12f008dce087c6db64c8a68b6953c233341ab700a68d1dcd80b321f35fd02e21ab0
@@ -9,7 +9,7 @@ module ActiveCurrency
9
9
  def get_rate(from, to, date = nil)
10
10
  return super if date
11
11
 
12
- Rails.cache.fetch(cache_key(from, to)) do
12
+ Rails.cache.fetch(cache_key(from, to), expires_in: 1.hour) do
13
13
  super
14
14
  end
15
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveCurrency
4
- VERSION = "1.4.0"
4
+ VERSION = "1.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_currency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails