business_flow 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/business_flow/cacheable.rb +6 -2
- data/lib/business_flow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6d31c1153f385fb6581857f81324b432890ad95
|
4
|
+
data.tar.gz: 73c6b7c4e893e13815fac24b440a792057f37844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0619c1dc22b3e755b0cb65a385e0fc2388d242692ce41a9b9ac15b2672ce5ab276967ed4d4f609bbf88cd944f76793e0d0809bca88a1b41f79dfa1c959c969a4
|
7
|
+
data.tar.gz: a73dd14cced41702e1f092761b55ee4af23920498dd2762b7d660b518447c8c3d9940346621ac9c2498277a05c3a445c202cdee5f248d0d88b239fdffd705a7e
|
data/Gemfile.lock
CHANGED
@@ -37,8 +37,12 @@ module BusinessFlow
|
|
37
37
|
|
38
38
|
# TODO: Make this some kind of private helper
|
39
39
|
def cache_options
|
40
|
-
|
41
|
-
|
40
|
+
# compact is not available in Ruby <2.4 or ActiveSupport < 4, so
|
41
|
+
# we can't use it here.
|
42
|
+
options = {}
|
43
|
+
ttl = cache_ttl
|
44
|
+
options[:expires_in] = ttl if ttl
|
45
|
+
options
|
42
46
|
end
|
43
47
|
|
44
48
|
def call(*args)
|