sin_lru_redux 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a205e8ba667a41a33f3b7fdb9d86e6ab3cc5623aff0998a31e00899db3069535
4
- data.tar.gz: 6b3cad6832644bdc3c8ec26e821f7ff855f1591c99be6a127ba55b048943f1e2
3
+ metadata.gz: a98157264a62bd4929e337957dc19e3d6f26e3d6ecc1c402b1de85865c955ec2
4
+ data.tar.gz: 49c6811c455147dbc0434ee5aaf46238b11843a68820559ab260384c6589ed78
5
5
  SHA512:
6
- metadata.gz: 63f527c1469a8cc98b48be9c9248bd6406d75db63443930368e328106048d4aafaba3f9f560d63ab4e535c832d9485b90e69039c5b496999fd91535411116a1e
7
- data.tar.gz: f10d3bb3ec140660b562f8246eaa89acf1bbe6b497b5d283d5494b4ac57cce1621ab932fc4f55cc70dc995fd933ba12fa71d72311683e31c93a2bd37d184fe4b
6
+ metadata.gz: 7c6eece0bb96966e50dad496a9fc8961ea8df2770f2bfc3dbb8723ac2b570c703745268a71cbb951e4452758109d578a08afe4804a8726f634c208cf1c75a252
7
+ data.tar.gz: c1dc7f2a6ca4f2511e0245b1694e8a2f988b1efcf0dba24a629bf8d501240292382ea4f1561dd96d1d5cadc8286e107fa1e1467b6cc42c489adf2d9bd9810ecb
data/.rubocop.yml CHANGED
@@ -22,41 +22,23 @@ Layout/LineLength:
22
22
  Max: 150
23
23
  AllowURI: false
24
24
 
25
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingsuper
26
- Lint/MissingSuper:
27
- Enabled: true
28
- Exclude:
29
- - 'app/views/components/**/component.rb'
30
-
31
25
  # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsabcsize
32
26
  Metrics/AbcSize:
33
27
  Enabled: true
34
- Max: 30
28
+ Max: 25
35
29
 
36
30
  # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocklength
37
31
  Metrics/BlockLength:
38
32
  Enabled: true
39
33
  Max: 30
40
34
  Exclude:
41
- - 'config/routes.rb'
42
- - 'db/seeds.rb'
43
- - 'spec/**/*_spec.rb'
44
-
45
- # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsblocknesting
46
- Metrics/BlockNesting:
47
- Enabled: true
48
- Max: 3
35
+ - 'sin_lru_redux.gemspec'
49
36
 
50
37
  # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsclasslength
51
38
  Metrics/ClassLength:
52
39
  Enabled: true
53
40
  CountComments: false
54
- Max: 400
55
-
56
- # https://docs.rubocop.org/rubocop/cops_metrics.html#metricscyclomaticcomplexity
57
- Metrics/CyclomaticComplexity:
58
- Enabled: true
59
- Max: 20
41
+ Max: 200
60
42
 
61
43
  # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsmethodlength
62
44
  Metrics/MethodLength:
@@ -75,11 +57,6 @@ Metrics/ParameterLists:
75
57
  Max: 5
76
58
  CountKeywordArgs: true
77
59
 
78
- # https://docs.rubocop.org/rubocop/cops_metrics.html#metricsperceivedcomplexity
79
- Metrics/PerceivedComplexity:
80
- Enabled: true
81
- Max: 20
82
-
83
60
  # https://docs.rubocop.org/rubocop/cops_naming.html#namingaccessormethodname
84
61
  Naming/AccessorMethodName:
85
62
  Enabled: false
@@ -112,12 +89,6 @@ Style/ArgumentsForwarding:
112
89
  Style/AsciiComments:
113
90
  Enabled: false
114
91
 
115
- # https://docs.rubocop.org/rubocop/cops_style.html#styleblockcomments
116
- Style/BlockComments:
117
- Enabled: true
118
- Exclude:
119
- - 'spec/spec_helper.rb'
120
-
121
92
  # https://docs.rubocop.org/rubocop/cops_style.html#styleclassandmodulechildren
122
93
  Style/ClassAndModuleChildren:
123
94
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.4.0] - 2025-1-2
4
+
5
+ - New: Be able to require `sin_lru_redux` instead of `lru_redux`
6
+ - Other: Update .rubocop.yml
7
+ - Other: Add how to sponsor
8
+
3
9
  ## [2.3.0] - 2025-1-1
4
10
 
5
11
  - New: Add alias method `length` and `size` for `count`
data/README.md CHANGED
@@ -174,3 +174,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
174
174
  ## Code of Conduct
175
175
 
176
176
  Everyone interacting in the SinLruRedux project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cadenza-tech/sin_lru_redux/blob/main/CODE_OF_CONDUCT.md).
177
+
178
+ ## Sponsor
179
+
180
+ You can sponsor this project on [Patreon](https://patreon.com/CadenzaTech).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LruRedux
4
- VERSION = '2.3.0'
4
+ VERSION = '2.4.0'
5
5
  end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'lru_redux'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sin_lru_redux
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-01-01 00:00:00.000000000 Z
10
+ date: 2025-01-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  Efficient and thread-safe LRU cache.
@@ -33,15 +33,17 @@ files:
33
33
  - lib/lru_redux/util.rb
34
34
  - lib/lru_redux/util/safe_sync.rb
35
35
  - lib/lru_redux/version.rb
36
- homepage: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.3.0
36
+ - lib/sin_lru_redux.rb
37
+ homepage: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.4.0
37
38
  licenses:
38
39
  - MIT
39
40
  metadata:
40
- homepage_uri: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.3.0
41
- source_code_uri: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.3.0
42
- changelog_uri: https://github.com/cadenza-tech/sin_lru_redux/blob/v2.3.0/CHANGELOG.md
41
+ homepage_uri: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.4.0
42
+ source_code_uri: https://github.com/cadenza-tech/sin_lru_redux/tree/v2.4.0
43
+ changelog_uri: https://github.com/cadenza-tech/sin_lru_redux/blob/v2.4.0/CHANGELOG.md
43
44
  bug_tracker_uri: https://github.com/cadenza-tech/sin_lru_redux/issues
44
- documentation_uri: https://rubydoc.info/gems/sin_lru_redux/2.3.0
45
+ documentation_uri: https://rubydoc.info/gems/sin_lru_redux/2.4.0
46
+ funding_uri: https://patreon.com/CadenzaTech
45
47
  rubygems_mfa_required: 'true'
46
48
  rdoc_options: []
47
49
  require_paths: