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.
data/sourcehawk.yml ADDED
@@ -0,0 +1,4 @@
1
+
2
+ config-locations:
3
+ - https://raw.githubusercontent.com/optum/.github/main/sourcehawk.yml
4
+
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: 0.2.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-27 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
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: '0'
104
- type: :development
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: '0'
26
+ version: 2.2.3
111
27
  - !ruby/object:Gem::Dependency
112
- name: simplecov
28
+ name: dalli
113
29
  requirement: !ruby/object:Gem::Requirement
114
30
  requirements:
115
31
  - - ">="
116
32
  - !ruby/object:Gem::Version
117
- version: '0'
118
- type: :development
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: '0'
40
+ version: '2.7'
125
41
  - !ruby/object:Gem::Dependency
126
- name: connection_pool
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: dalli
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: '0'
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: '0'
167
- description: Used to connect Legion with a cache service like memcached
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
- - ".circleci/config.yml"
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
- - LICENSE.txt
103
+ - INDIVIDUAL_CONTRIBUTOR_LICENSE.md
104
+ - LICENSE
105
+ - NOTICE.txt
180
106
  - README.md
181
- - Rakefile
182
- - bin/console
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
- homepage: https://bitbucket.org/legion-io/legion-cache
116
+ - sonar-project.properties
117
+ - sourcehawk.yml
118
+ homepage: https://github.com/Optum/legion-cache
191
119
  licenses:
192
- - MIT
120
+ - Apache-2.0
193
121
  metadata:
194
- homepage_uri: https://bitbucket.org/legion-io/legion-cache
195
- source_code_uri: https://bitbucket.org/legion-io/legion-cache/src
196
- changelog_uri: https://bitbucket.org/legion-io/legion-cache/src/master/CHANGELOG.md
197
- wiki_uri: https://bitbucket.org/legion-io/legion-cache/wiki
198
- bug_tracker_uri: https://bitbucket.org/legion-io/legion-cache/issues
199
- post_install_message:
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.5.0
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.0.3
215
- signing_key:
143
+ rubygems_version: 3.1.6
144
+ signing_key:
216
145
  specification_version: 4
217
- summary: Legion::Cache integration
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
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
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
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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here