short_circu_it 0.25.6 → 0.26.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/short_circu_it.rb +8 -3
- data/lib/short_circu_it/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b433de8d46b4527acab6b9984a0290f04c0121452650aa849da8dee7e16051cd
|
4
|
+
data.tar.gz: 775206eaa348ae6ace5b70ac1afccf2bf101fffe66ae9d7442b8a7ba54dab064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a86e2e5a46d0962b24693a0710bc7c15546c4c883495ce2a7ccd3eb87d93c02e0c1a9cad4a245012dc65ea19de43f8e450036658cd1b89480794130f307f6113
|
7
|
+
data.tar.gz: d711f2c913868f634087299f5b8f1394248eb1f076988fe5588b529a8db0e90e965e14daf2b2f970219d3115a13453094d071a27531eca4ce80b1accbca39260
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Memoize methods safely with parameter and dependency observation
|
4
4
|
|
5
|
-
[![Build Status](https://semaphoreci.com/api/v1/freshly/spicerack/branches/
|
5
|
+
[![Build Status](https://semaphoreci.com/api/v1/freshly/spicerack/branches/main/badge.svg)](https://semaphoreci.com/freshly/spicerack)
|
6
6
|
[![Maintainability](https://api.codeclimate.com/v1/badges/7e089c2617c530a85b17/maintainability)](https://codeclimate.com/github/Freshly/spicerack/maintainability)
|
7
7
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/7e089c2617c530a85b17/test_coverage)](https://codeclimate.com/github/Freshly/spicerack/test_coverage)
|
8
8
|
|
data/lib/short_circu_it.rb
CHANGED
@@ -79,9 +79,14 @@ module ShortCircuIt
|
|
79
79
|
around_method(
|
80
80
|
method_name,
|
81
81
|
prevent_double_wrapping_for: ShortCircuIt,
|
82
|
-
) do |*args|
|
83
|
-
memoization_store.memoize(method_name, args.hash) do
|
84
|
-
super(*args)
|
82
|
+
) do |*args, **opts|
|
83
|
+
memoization_store.memoize(method_name, (args + [ opts ]).hash) do
|
84
|
+
# TODO: replace with `super(*args, **opts)` when <= 2.6 support is dropped
|
85
|
+
if RUBY_VERSION < "2.7" && opts.blank?
|
86
|
+
super(*args)
|
87
|
+
else
|
88
|
+
super(*args, **opts)
|
89
|
+
end
|
85
90
|
end
|
86
91
|
end
|
87
92
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: short_circu_it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Allen Rettberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.26.0.3
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.26.0.3
|
41
41
|
description: Memoize methods safely with parameter and dependency observation
|
42
42
|
email:
|
43
43
|
- allen.rettberg@freshly.com
|
@@ -52,14 +52,14 @@ files:
|
|
52
52
|
- lib/short_circu_it/errors.rb
|
53
53
|
- lib/short_circu_it/memoization_store.rb
|
54
54
|
- lib/short_circu_it/version.rb
|
55
|
-
homepage: https://github.com/Freshly/spicerack/tree/
|
55
|
+
homepage: https://github.com/Freshly/spicerack/tree/main/short_circu_it
|
56
56
|
licenses:
|
57
57
|
- MIT
|
58
58
|
metadata:
|
59
|
-
homepage_uri: https://github.com/Freshly/spicerack/tree/
|
60
|
-
source_code_uri: https://github.com/Freshly/spicerack/tree/
|
61
|
-
changelog_uri: https://github.com/Freshly/spicerack/blob/
|
62
|
-
documentation_uri: https://www.rubydoc.info/gems/short_circu_it/0.
|
59
|
+
homepage_uri: https://github.com/Freshly/spicerack/tree/main/short_circu_it
|
60
|
+
source_code_uri: https://github.com/Freshly/spicerack/tree/main/short_circu_it
|
61
|
+
changelog_uri: https://github.com/Freshly/spicerack/blob/main/short_circu_it/CHANGELOG.md
|
62
|
+
documentation_uri: https://www.rubydoc.info/gems/short_circu_it/0.26.0.3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.1.
|
78
|
+
rubygems_version: 3.1.6
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: An intelligent and feature rich memoization gem
|