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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85e43bcbae90d26315e96c34809283cdd3d005e7
4
- data.tar.gz: 60b353898bd32fe341670da5d73b119740c7adee
3
+ metadata.gz: b6d31c1153f385fb6581857f81324b432890ad95
4
+ data.tar.gz: 73c6b7c4e893e13815fac24b440a792057f37844
5
5
  SHA512:
6
- metadata.gz: 2d644ba4832a34c0f4358ded721396b1933242d074286ae626a7254003dfc2c034c6477ce57b78d963a8c8eb8d21bd3461ad2b7ad44d1a64d4875b784369e2c6
7
- data.tar.gz: 8b221f9908a6935b60a4e8f95f982af448bab16996d133baefb68ff8094d0b483c622bba5a1d0fe9e2e8cfd42513c7a89e88a3b3c59b4c50579b860651c2e1ab
6
+ metadata.gz: 0619c1dc22b3e755b0cb65a385e0fc2388d242692ce41a9b9ac15b2672ce5ab276967ed4d4f609bbf88cd944f76793e0d0809bca88a1b41f79dfa1c959c969a4
7
+ data.tar.gz: a73dd14cced41702e1f092761b55ee4af23920498dd2762b7d660b518447c8c3d9940346621ac9c2498277a05c3a445c202cdee5f248d0d88b239fdffd705a7e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- business_flow (0.5.0)
4
+ business_flow (0.5.1)
5
5
  activemodel (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
 
@@ -37,8 +37,12 @@ module BusinessFlow
37
37
 
38
38
  # TODO: Make this some kind of private helper
39
39
  def cache_options
40
- options = { expires_in: cache_ttl }
41
- options.tap(&:compact!)
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)
@@ -1,3 +1,3 @@
1
1
  module BusinessFlow
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: business_flow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Scarborough