legion-cache 1.1.1 → 1.3.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.
metadata CHANGED
@@ -1,93 +1,50 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2021-01-07 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '2'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '2'
27
- - !ruby/object:Gem::Dependency
28
- name: legion-logging
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: legion-settings
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
13
+ name: connection_pool
57
14
  requirement: !ruby/object:Gem::Requirement
58
15
  requirements:
59
16
  - - ">="
60
17
  - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
18
+ version: '2.4'
19
+ type: :runtime
63
20
  prerelease: false
64
21
  version_requirements: !ruby/object:Gem::Requirement
65
22
  requirements:
66
23
  - - ">="
67
24
  - !ruby/object:Gem::Version
68
- version: '0'
25
+ version: '2.4'
69
26
  - !ruby/object:Gem::Dependency
70
- name: rspec
27
+ name: dalli
71
28
  requirement: !ruby/object:Gem::Requirement
72
29
  requirements:
73
30
  - - ">="
74
31
  - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
32
+ version: '3.0'
33
+ type: :runtime
77
34
  prerelease: false
78
35
  version_requirements: !ruby/object:Gem::Requirement
79
36
  requirements:
80
37
  - - ">="
81
38
  - !ruby/object:Gem::Version
82
- version: '0'
39
+ version: '3.0'
83
40
  - !ruby/object:Gem::Dependency
84
- name: rspec_junit_formatter
41
+ name: legion-logging
85
42
  requirement: !ruby/object:Gem::Requirement
86
43
  requirements:
87
44
  - - ">="
88
45
  - !ruby/object:Gem::Version
89
46
  version: '0'
90
- type: :development
47
+ type: :runtime
91
48
  prerelease: false
92
49
  version_requirements: !ruby/object:Gem::Requirement
93
50
  requirements:
@@ -95,110 +52,72 @@ dependencies:
95
52
  - !ruby/object:Gem::Version
96
53
  version: '0'
97
54
  - !ruby/object:Gem::Dependency
98
- name: rubocop
55
+ name: legion-settings
99
56
  requirement: !ruby/object:Gem::Requirement
100
57
  requirements:
101
58
  - - ">="
102
59
  - !ruby/object:Gem::Version
103
60
  version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: simplecov
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "<"
116
- - !ruby/object:Gem::Version
117
- version: 0.18.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "<"
123
- - !ruby/object:Gem::Version
124
- version: 0.18.0
125
- - !ruby/object:Gem::Dependency
126
- name: connection_pool
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- version: 2.2.3
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: 2.2.3
139
- - !ruby/object:Gem::Dependency
140
- name: dalli
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - ">="
144
- - !ruby/object:Gem::Version
145
- version: '2.7'
146
61
  type: :runtime
147
62
  prerelease: false
148
63
  version_requirements: !ruby/object:Gem::Requirement
149
64
  requirements:
150
65
  - - ">="
151
66
  - !ruby/object:Gem::Version
152
- version: '2.7'
67
+ version: '0'
153
68
  - !ruby/object:Gem::Dependency
154
69
  name: redis
155
70
  requirement: !ruby/object:Gem::Requirement
156
71
  requirements:
157
72
  - - ">="
158
73
  - !ruby/object:Gem::Version
159
- version: '4.2'
74
+ version: '5.0'
160
75
  type: :runtime
161
76
  prerelease: false
162
77
  version_requirements: !ruby/object:Gem::Requirement
163
78
  requirements:
164
79
  - - ">="
165
80
  - !ruby/object:Gem::Version
166
- version: '4.2'
167
- description: Used to connect Legion with a cache service like memcached
81
+ version: '5.0'
82
+ description: A Wrapper class for the LegionIO framework to interface with both Memcached
83
+ and Redis for caching purposes
168
84
  email:
169
85
  - matthewdiverson@gmail.com
170
86
  executables: []
171
87
  extensions: []
172
- extra_rdoc_files: []
88
+ extra_rdoc_files:
89
+ - CHANGELOG.md
90
+ - LICENSE
91
+ - README.md
173
92
  files:
174
- - ".circleci/config.yml"
93
+ - ".github/workflows/ci.yml"
175
94
  - ".gitignore"
176
- - ".rspec"
177
95
  - ".rubocop.yml"
96
+ - CHANGELOG.md
97
+ - CLAUDE.md
178
98
  - Gemfile
179
- - Gemfile.lock
180
- - LICENSE.txt
99
+ - LICENSE
181
100
  - README.md
182
- - Rakefile
183
- - bitbucket-pipelines.yml
184
101
  - legion-cache.gemspec
185
102
  - lib/legion/cache.rb
103
+ - lib/legion/cache/local.rb
186
104
  - lib/legion/cache/memcached.rb
187
105
  - lib/legion/cache/pool.rb
188
106
  - lib/legion/cache/redis.rb
189
107
  - lib/legion/cache/settings.rb
190
108
  - lib/legion/cache/version.rb
191
109
  - sonar-project.properties
192
- homepage: https://bitbucket.org/legion-io/legion-cache
110
+ homepage: https://github.com/LegionIO/legion-cache
193
111
  licenses:
194
- - MIT
112
+ - Apache-2.0
195
113
  metadata:
196
- homepage_uri: https://bitbucket.org/legion-io/legion-cache
197
- source_code_uri: https://bitbucket.org/legion-io/legion-cache/src
198
- changelog_uri: https://bitbucket.org/legion-io/legion-cache/src/master/CHANGELOG.md
199
- wiki_uri: https://bitbucket.org/legion-io/legion-cache/wiki
200
- bug_tracker_uri: https://bitbucket.org/legion-io/legion-cache/issues
201
- post_install_message:
114
+ bug_tracker_uri: https://github.com/LegionIO/legion-cache/issues
115
+ changelog_uri: https://github.com/LegionIO/legion-cache/blob/main/CHANGELOG.md
116
+ documentation_uri: https://github.com/LegionIO/legion-cache
117
+ homepage_uri: https://github.com/LegionIO/LegionIO
118
+ source_code_uri: https://github.com/LegionIO/legion-cache
119
+ wiki_uri: https://github.com/LegionIO/legion-cache/wiki
120
+ rubygems_mfa_required: 'true'
202
121
  rdoc_options: []
203
122
  require_paths:
204
123
  - lib
@@ -206,15 +125,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
125
  requirements:
207
126
  - - ">="
208
127
  - !ruby/object:Gem::Version
209
- version: 2.5.0
128
+ version: '3.4'
210
129
  required_rubygems_version: !ruby/object:Gem::Requirement
211
130
  requirements:
212
131
  - - ">="
213
132
  - !ruby/object:Gem::Version
214
133
  version: '0'
215
134
  requirements: []
216
- rubygems_version: 3.1.4
217
- signing_key:
135
+ rubygems_version: 3.6.9
218
136
  specification_version: 4
219
- summary: Legion::Cache integration
137
+ summary: Wraps both the redis and dalli gems to make a consistent interface for accessing
138
+ cached objects
220
139
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,113 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@1.1.2
4
- sonarcloud: sonarsource/sonarcloud@1.0.2
5
-
6
- jobs:
7
- "rubocop":
8
- docker:
9
- - image: cimg/ruby:2.7
10
- steps:
11
- - checkout
12
- - restore_cache:
13
- key: "bundler cache mri"
14
- - run: bundle update
15
- - run: bundle exec rubocop --format=json --out=rubocop-result.json
16
- - store_test_results:
17
- path: rubocop-result.json
18
- - sonarcloud/scan
19
- - run: bundle exec rubocop
20
- - save_cache:
21
- key: "bundler cache mri"
22
- paths:
23
- - "/usr/local/bundle"
24
- "ruby-two-five":
25
- docker:
26
- - image: cimg/ruby:2.5
27
- - image: redis:alpine
28
- - image: memcached:1.5-alpine
29
- steps:
30
- - checkout
31
- - restore_cache:
32
- key: "bundler cache mri"
33
- - run: bundle update
34
- - save_cache:
35
- key: "bundler cache mri"
36
- paths:
37
- - "/usr/local/bundle"
38
- - run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
39
- - store_test_results:
40
- path: rspec-results.xml
41
- - sonarcloud/scan
42
- "ruby-two-six":
43
- docker:
44
- - image: cimg/ruby:2.6
45
- - image: redis:alpine
46
- - image: memcached:1.5-alpine
47
- steps:
48
- - checkout
49
- - restore_cache:
50
- key: "bundler cache mri"
51
- - run: bundle update
52
- - save_cache:
53
- key: "bundler cache mri"
54
- paths:
55
- - "/usr/local/bundle"
56
- - run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
57
- - store_test_results:
58
- path: rspec-results.xml
59
- - sonarcloud/scan
60
- "ruby-two-seven":
61
- docker:
62
- - image: circleci/ruby:2.7
63
- - image: redis:alpine
64
- - image: memcached:1.5-alpine
65
- steps:
66
- - checkout
67
- - restore_cache:
68
- key: "bundler cache mri"
69
- - run: bundle update
70
- - save_cache:
71
- key: "bundler cache mri"
72
- paths:
73
- - "/usr/local/bundle"
74
- - run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
75
- - store_test_results:
76
- path: rspec-results.xml
77
- - sonarcloud/scan
78
- "ruby-three":
79
- docker:
80
- - image: circleci/ruby:3
81
- - image: redis:alpine
82
- - image: memcached:1.5-alpine
83
- steps:
84
- - checkout
85
- - restore_cache:
86
- key: "bundler cache mri"
87
- - run: bundle update
88
- - save_cache:
89
- key: "bundler cache mri"
90
- paths:
91
- - "/usr/local/bundle"
92
- - run: bundle exec rspec --format progress --format RspecJunitFormatter -o rspec-results.xml
93
- - store_test_results:
94
- path: rspec-results.xml
95
- - sonarcloud/scan
96
-
97
- workflows:
98
- version: 2
99
- rubocop-rspec:
100
- jobs:
101
- - rubocop
102
- - ruby-two-five:
103
- requires:
104
- - rubocop
105
- - ruby-two-six:
106
- requires:
107
- - ruby-two-five
108
- - ruby-two-seven:
109
- requires:
110
- - ruby-two-five
111
- - ruby-three:
112
- requires:
113
- - ruby-two-five
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/Gemfile.lock DELETED
@@ -1,87 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- legion-cache (1.1.1)
5
- connection_pool (>= 2.2.3)
6
- dalli (>= 2.7)
7
- redis (>= 4.2)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- ast (2.4.1)
13
- connection_pool (2.2.3)
14
- dalli (2.7.11)
15
- diff-lcs (1.4.4)
16
- docile (1.3.4)
17
- json (2.5.1)
18
- json_pure (2.5.1)
19
- legion-exceptions (1.1.5)
20
- legion-json (1.1.4)
21
- json_pure
22
- legion-exceptions (>= 1.1.5)
23
- multi_json
24
- legion-logging (1.1.3)
25
- rainbow (~> 3)
26
- legion-settings (1.1.3)
27
- legion-json
28
- legion-logging
29
- multi_json (1.15.0)
30
- parallel (1.20.1)
31
- parser (3.0.0.0)
32
- ast (~> 2.4.1)
33
- rainbow (3.0.0)
34
- rake (13.0.3)
35
- redis (4.2.5)
36
- regexp_parser (2.0.3)
37
- rexml (3.2.4)
38
- rspec (3.10.0)
39
- rspec-core (~> 3.10.0)
40
- rspec-expectations (~> 3.10.0)
41
- rspec-mocks (~> 3.10.0)
42
- rspec-core (3.10.1)
43
- rspec-support (~> 3.10.0)
44
- rspec-expectations (3.10.1)
45
- diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.1)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.1)
51
- rspec_junit_formatter (0.4.1)
52
- rspec-core (>= 2, < 4, != 2.12.0)
53
- rubocop (1.8.0)
54
- parallel (~> 1.10)
55
- parser (>= 3.0.0.0)
56
- rainbow (>= 2.2.2, < 4.0)
57
- regexp_parser (>= 1.8, < 3.0)
58
- rexml
59
- rubocop-ast (>= 1.2.0, < 2.0)
60
- ruby-progressbar (~> 1.7)
61
- unicode-display_width (>= 1.4.0, < 3.0)
62
- rubocop-ast (1.4.0)
63
- parser (>= 2.7.1.5)
64
- ruby-progressbar (1.11.0)
65
- simplecov (0.17.1)
66
- docile (~> 1.1)
67
- json (>= 1.8, < 3)
68
- simplecov-html (~> 0.10.0)
69
- simplecov-html (0.10.2)
70
- unicode-display_width (2.0.0)
71
-
72
- PLATFORMS
73
- ruby
74
-
75
- DEPENDENCIES
76
- bundler (>= 2)
77
- legion-cache!
78
- legion-logging
79
- legion-settings
80
- rake
81
- rspec
82
- rspec_junit_formatter
83
- rubocop
84
- simplecov (< 0.18.0)
85
-
86
- BUNDLED WITH
87
- 2.2.4
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2020 Esity
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/Rakefile DELETED
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
@@ -1,17 +0,0 @@
1
- image: ruby:2.7
2
-
3
- pipelines:
4
- tags:
5
- "v*":
6
- - step:
7
- name: Push to RubyGems
8
- deployment: RubyGems
9
- script:
10
- - gem install gem-release
11
- - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
12
- - gem release
13
- artifacts:
14
- - pkg/**
15
- definitions:
16
- caches:
17
- bundler: /usr/local/bundle