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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf4d62436b951d3ef6f3b8e69524743fca52627191d553fc8bcb5933aee61d8c
4
- data.tar.gz: 0f235f5b1323f82407315a39eda823b44338e1eccf52703e267282fe5c3a580f
3
+ metadata.gz: b433de8d46b4527acab6b9984a0290f04c0121452650aa849da8dee7e16051cd
4
+ data.tar.gz: 775206eaa348ae6ace5b70ac1afccf2bf101fffe66ae9d7442b8a7ba54dab064
5
5
  SHA512:
6
- metadata.gz: 5387858ae9665ab2a5bc9a359981cc6ce60de1be82f9d937ea50c2aa7d29abb858e2b1db62018fc284b1885e47b9568a0583e1a86b7f42d30cac4bab7f588018
7
- data.tar.gz: 3b3130908c231702a5df26d2e3caffdb787697cfac90db0f566941ffc00e77c296d7ed916712ca77ef61babe64dab7acb229e9a1a459fb5157c3491e2b384224
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/master/badge.svg)](https://semaphoreci.com/freshly/spicerack)
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
 
@@ -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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ShortCircuIt
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.25.6"
5
+ VERSION = "0.26.0.3"
6
6
  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.25.6
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-02-24 00:00:00.000000000 Z
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.25.6
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.25.6
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/master/short_circu_it
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/master/short_circu_it
60
- source_code_uri: https://github.com/Freshly/spicerack/tree/master/short_circu_it
61
- changelog_uri: https://github.com/Freshly/spicerack/blob/master/short_circu_it/CHANGELOG.md
62
- documentation_uri: https://www.rubydoc.info/gems/short_circu_it/0.25.6
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.4
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