legion-cache 0.2.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop-analysis.yml +28 -0
- data/.github/workflows/sourcehawk-scan.yml +20 -0
- data/.gitignore +5 -1
- data/.rubocop.yml +13 -10
- data/CHANGELOG.md +4 -0
- data/CODE_OF_CONDUCT.md +75 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +7 -5
- data/INDIVIDUAL_CONTRIBUTOR_LICENSE.md +30 -0
- data/LICENSE +201 -0
- data/NOTICE.txt +9 -0
- data/README.md +45 -24
- data/SECURITY.md +9 -0
- data/attribution.txt +1 -0
- data/legion-cache.gemspec +23 -31
- data/lib/legion/cache.rb +16 -10
- data/lib/legion/cache/memcached.rb +20 -22
- data/lib/legion/cache/pool.rb +43 -0
- data/lib/legion/cache/redis.rb +21 -14
- data/lib/legion/cache/settings.rb +22 -13
- data/lib/legion/cache/version.rb +1 -1
- data/sonar-project.properties +13 -0
- data/sourcehawk.yml +4 -0
- metadata +50 -120
- data/.circleci/config.yml +0 -61
- data/.rspec +0 -3
- data/LICENSE.txt +0 -21
- data/Rakefile +0 -8
- data/bin/console +0 -15
- data/bin/setup +0 -8
data/sourcehawk.yml
ADDED
metadata
CHANGED
@@ -1,129 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
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
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec_junit_formatter
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop
|
14
|
+
name: connection_pool
|
99
15
|
requirement: !ruby/object:Gem::Requirement
|
100
16
|
requirements:
|
101
17
|
- - ">="
|
102
18
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
104
|
-
type: :
|
19
|
+
version: 2.2.3
|
20
|
+
type: :runtime
|
105
21
|
prerelease: false
|
106
22
|
version_requirements: !ruby/object:Gem::Requirement
|
107
23
|
requirements:
|
108
24
|
- - ">="
|
109
25
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
26
|
+
version: 2.2.3
|
111
27
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
28
|
+
name: dalli
|
113
29
|
requirement: !ruby/object:Gem::Requirement
|
114
30
|
requirements:
|
115
31
|
- - ">="
|
116
32
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
118
|
-
type: :
|
33
|
+
version: '2.7'
|
34
|
+
type: :runtime
|
119
35
|
prerelease: false
|
120
36
|
version_requirements: !ruby/object:Gem::Requirement
|
121
37
|
requirements:
|
122
38
|
- - ">="
|
123
39
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
40
|
+
version: '2.7'
|
125
41
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
42
|
+
name: legion-logging
|
127
43
|
requirement: !ruby/object:Gem::Requirement
|
128
44
|
requirements:
|
129
45
|
- - ">="
|
@@ -137,7 +53,7 @@ dependencies:
|
|
137
53
|
- !ruby/object:Gem::Version
|
138
54
|
version: '0'
|
139
55
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
56
|
+
name: legion-settings
|
141
57
|
requirement: !ruby/object:Gem::Requirement
|
142
58
|
requirements:
|
143
59
|
- - ">="
|
@@ -156,47 +72,60 @@ dependencies:
|
|
156
72
|
requirements:
|
157
73
|
- - ">="
|
158
74
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
75
|
+
version: '4.2'
|
160
76
|
type: :runtime
|
161
77
|
prerelease: false
|
162
78
|
version_requirements: !ruby/object:Gem::Requirement
|
163
79
|
requirements:
|
164
80
|
- - ">="
|
165
81
|
- !ruby/object:Gem::Version
|
166
|
-
version: '
|
167
|
-
description:
|
82
|
+
version: '4.2'
|
83
|
+
description: A Wrapper class for the LegionIO framework to interface with both Memcached
|
84
|
+
and Redis for caching purposes
|
168
85
|
email:
|
169
86
|
- matthewdiverson@gmail.com
|
87
|
+
- ruby@optum.com
|
170
88
|
executables: []
|
171
89
|
extensions: []
|
172
|
-
extra_rdoc_files:
|
90
|
+
extra_rdoc_files:
|
91
|
+
- README.md
|
92
|
+
- LICENSE
|
93
|
+
- CHANGELOG.md
|
173
94
|
files:
|
174
|
-
- ".
|
95
|
+
- ".github/workflows/rubocop-analysis.yml"
|
96
|
+
- ".github/workflows/sourcehawk-scan.yml"
|
175
97
|
- ".gitignore"
|
176
|
-
- ".rspec"
|
177
98
|
- ".rubocop.yml"
|
99
|
+
- CHANGELOG.md
|
100
|
+
- CODE_OF_CONDUCT.md
|
101
|
+
- CONTRIBUTING.md
|
178
102
|
- Gemfile
|
179
|
-
-
|
103
|
+
- INDIVIDUAL_CONTRIBUTOR_LICENSE.md
|
104
|
+
- LICENSE
|
105
|
+
- NOTICE.txt
|
180
106
|
- README.md
|
181
|
-
-
|
182
|
-
-
|
183
|
-
- bin/setup
|
107
|
+
- SECURITY.md
|
108
|
+
- attribution.txt
|
184
109
|
- legion-cache.gemspec
|
185
110
|
- lib/legion/cache.rb
|
186
111
|
- lib/legion/cache/memcached.rb
|
112
|
+
- lib/legion/cache/pool.rb
|
187
113
|
- lib/legion/cache/redis.rb
|
188
114
|
- lib/legion/cache/settings.rb
|
189
115
|
- lib/legion/cache/version.rb
|
190
|
-
|
116
|
+
- sonar-project.properties
|
117
|
+
- sourcehawk.yml
|
118
|
+
homepage: https://github.com/Optum/legion-cache
|
191
119
|
licenses:
|
192
|
-
-
|
120
|
+
- Apache-2.0
|
193
121
|
metadata:
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
122
|
+
bug_tracker_uri: https://github.com/Optum/legion-cache/issues
|
123
|
+
changelog_uri: https://github.com/Optum/legion-cache/src/main/CHANGELOG.md
|
124
|
+
documentation_uri: https://github.com/Optum/legion-cache
|
125
|
+
homepage_uri: https://github.com/Optum/LegionIO
|
126
|
+
source_code_uri: https://github.com/Optum/legion-cache
|
127
|
+
wiki_uri: https://github.com/Optum/legion-cache/wiki
|
128
|
+
post_install_message:
|
200
129
|
rdoc_options: []
|
201
130
|
require_paths:
|
202
131
|
- lib
|
@@ -204,15 +133,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
204
133
|
requirements:
|
205
134
|
- - ">="
|
206
135
|
- !ruby/object:Gem::Version
|
207
|
-
version: 2.
|
136
|
+
version: '2.4'
|
208
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
138
|
requirements:
|
210
139
|
- - ">="
|
211
140
|
- !ruby/object:Gem::Version
|
212
141
|
version: '0'
|
213
142
|
requirements: []
|
214
|
-
rubygems_version: 3.
|
215
|
-
signing_key:
|
143
|
+
rubygems_version: 3.1.6
|
144
|
+
signing_key:
|
216
145
|
specification_version: 4
|
217
|
-
summary:
|
146
|
+
summary: Wraps both the redis and dalli gems to make a consistent interface for accessing
|
147
|
+
cached objects
|
218
148
|
test_files: []
|
data/.circleci/config.yml
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
version: 2.1
|
2
|
-
orbs:
|
3
|
-
ruby: circleci/ruby@0.2.1
|
4
|
-
|
5
|
-
jobs:
|
6
|
-
"rubocop":
|
7
|
-
docker:
|
8
|
-
- image: circleci/ruby:2.5-node
|
9
|
-
steps:
|
10
|
-
- checkout
|
11
|
-
- ruby/load-cache
|
12
|
-
- ruby/install-deps
|
13
|
-
- run:
|
14
|
-
name: Run Rubocop
|
15
|
-
command: bundle exec rubocop
|
16
|
-
- ruby/save-cache
|
17
|
-
"ruby-two-five":
|
18
|
-
docker:
|
19
|
-
- image: circleci/ruby:2.5
|
20
|
-
- image: memcached:1.5-alpine
|
21
|
-
steps:
|
22
|
-
- checkout
|
23
|
-
- ruby/load-cache
|
24
|
-
- ruby/install-deps
|
25
|
-
- ruby/run-tests
|
26
|
-
- ruby/save-cache
|
27
|
-
"ruby-two-six":
|
28
|
-
docker:
|
29
|
-
- image: circleci/ruby:2.6
|
30
|
-
- image: memcached:1.5-alpine
|
31
|
-
steps:
|
32
|
-
- checkout
|
33
|
-
- ruby/load-cache
|
34
|
-
- ruby/install-deps
|
35
|
-
- ruby/run-tests
|
36
|
-
- ruby/save-cache
|
37
|
-
"ruby-two-seven":
|
38
|
-
docker:
|
39
|
-
- image: circleci/ruby:2.7
|
40
|
-
- image: memcached:1.5-alpine
|
41
|
-
steps:
|
42
|
-
- checkout
|
43
|
-
- ruby/load-cache
|
44
|
-
- ruby/install-deps
|
45
|
-
- ruby/run-tests
|
46
|
-
- ruby/save-cache
|
47
|
-
|
48
|
-
workflows:
|
49
|
-
version: 2
|
50
|
-
rubocop-rspec:
|
51
|
-
jobs:
|
52
|
-
- rubocop
|
53
|
-
- ruby-two-five:
|
54
|
-
requires:
|
55
|
-
- rubocop
|
56
|
-
- ruby-two-six:
|
57
|
-
requires:
|
58
|
-
- ruby-two-five
|
59
|
-
- ruby-two-seven:
|
60
|
-
requires:
|
61
|
-
- ruby-two-five
|
data/.rspec
DELETED
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
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'legion/cache'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|