legion-cache 1.1.0 → 1.1.1
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 +4 -4
- data/.circleci/config.yml +62 -72
- data/.rubocop.yml +1 -10
- data/Gemfile.lock +26 -28
- data/README.md +0 -7
- data/bitbucket-pipelines.yml +1 -2
- data/legion-cache.gemspec +0 -2
- data/lib/legion/cache/settings.rb +9 -9
- data/lib/legion/cache/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c050e7160e26e315c48878858bc601d3763810bf588b9a7fc2b69176af27dd99
|
|
4
|
+
data.tar.gz: b62155d7c2e3b31181ebba0c52070c223acfdde9b3a65a6ba8614398a5303ea8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98f87b3aaeb685da109ff7104c8af961861e5b73c31e6da3cd738c86ae48192c0b2713bc17f0d8669fe5e303c2a3b6038525b4170d559339b225262d62239b19
|
|
7
|
+
data.tar.gz: 477f913ff8dcfcb0389ea47a44c6389a374099272d4261b627c1f757297f7c350a01fd3035564763a2d07bbad863eeface105f9fdf7dda70474a9130699050c6
|
data/.circleci/config.yml
CHANGED
|
@@ -1,107 +1,98 @@
|
|
|
1
1
|
version: 2.1
|
|
2
2
|
orbs:
|
|
3
|
-
ruby: circleci/ruby@
|
|
4
|
-
sonarcloud: sonarsource/sonarcloud@1.0.
|
|
3
|
+
ruby: circleci/ruby@1.1.2
|
|
4
|
+
sonarcloud: sonarsource/sonarcloud@1.0.2
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
"rubocop":
|
|
8
8
|
docker:
|
|
9
|
-
- image:
|
|
9
|
+
- image: cimg/ruby:2.7
|
|
10
10
|
steps:
|
|
11
11
|
- checkout
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
- run:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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"
|
|
18
24
|
"ruby-two-five":
|
|
19
25
|
docker:
|
|
20
|
-
- image:
|
|
26
|
+
- image: cimg/ruby:2.5
|
|
21
27
|
- image: redis:alpine
|
|
22
28
|
- image: memcached:1.5-alpine
|
|
23
29
|
steps:
|
|
24
30
|
- checkout
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
|
32
42
|
"ruby-two-six":
|
|
33
43
|
docker:
|
|
34
|
-
- image:
|
|
44
|
+
- image: cimg/ruby:2.6
|
|
35
45
|
- image: redis:alpine
|
|
36
46
|
- image: memcached:1.5-alpine
|
|
37
47
|
steps:
|
|
38
48
|
- checkout
|
|
39
|
-
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
46
60
|
"ruby-two-seven":
|
|
47
61
|
docker:
|
|
48
62
|
- image: circleci/ruby:2.7
|
|
49
|
-
- image: memcached:1.5-alpine
|
|
50
63
|
- image: redis:alpine
|
|
51
|
-
steps:
|
|
52
|
-
- checkout
|
|
53
|
-
- ruby/load-cache
|
|
54
|
-
- ruby/install-deps
|
|
55
|
-
- ruby/run-tests
|
|
56
|
-
- ruby/save-cache
|
|
57
|
-
"jruby-nine-two":
|
|
58
|
-
docker:
|
|
59
|
-
- image: circleci/jruby:9.2-jre
|
|
60
64
|
- image: memcached:1.5-alpine
|
|
61
|
-
- image: redis:alpine
|
|
62
65
|
steps:
|
|
63
66
|
- checkout
|
|
64
|
-
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
|
71
75
|
- store_test_results:
|
|
72
|
-
path:
|
|
76
|
+
path: rspec-results.xml
|
|
73
77
|
- sonarcloud/scan
|
|
74
|
-
"
|
|
78
|
+
"ruby-three":
|
|
75
79
|
docker:
|
|
76
|
-
- image: circleci/
|
|
77
|
-
- image: memcached:1.5-alpine
|
|
80
|
+
- image: circleci/ruby:3
|
|
78
81
|
- image: redis:alpine
|
|
79
|
-
steps:
|
|
80
|
-
- checkout
|
|
81
|
-
- run:
|
|
82
|
-
name: Bundle Install
|
|
83
|
-
command: bundle install
|
|
84
|
-
- run:
|
|
85
|
-
name: Run RSpec
|
|
86
|
-
command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
|
|
87
|
-
when: always
|
|
88
|
-
- store_test_results:
|
|
89
|
-
path: test-results
|
|
90
|
-
"sonarcloud":
|
|
91
|
-
docker:
|
|
92
|
-
- image: circleci/ruby:2.7
|
|
93
82
|
- image: memcached:1.5-alpine
|
|
94
|
-
- image: redis:alpine
|
|
95
83
|
steps:
|
|
96
84
|
- checkout
|
|
97
|
-
-
|
|
98
|
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
103
95
|
- sonarcloud/scan
|
|
104
|
-
- ruby/save-cache
|
|
105
96
|
|
|
106
97
|
workflows:
|
|
107
98
|
version: 2
|
|
@@ -117,7 +108,6 @@ workflows:
|
|
|
117
108
|
- ruby-two-seven:
|
|
118
109
|
requires:
|
|
119
110
|
- ruby-two-five
|
|
120
|
-
-
|
|
111
|
+
- ruby-three:
|
|
121
112
|
requires:
|
|
122
|
-
- ruby-two-
|
|
123
|
-
- ruby-two-six
|
|
113
|
+
- ruby-two-five
|
data/.rubocop.yml
CHANGED
|
@@ -9,14 +9,7 @@ Metrics/BlockLength:
|
|
|
9
9
|
Exclude:
|
|
10
10
|
- 'spec/*/**.rb'
|
|
11
11
|
Metrics/AbcSize:
|
|
12
|
-
Max:
|
|
13
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
|
14
|
-
EnforcedStyle: space
|
|
15
|
-
Style/SymbolArray:
|
|
16
|
-
Enabled: true
|
|
17
|
-
Layout/HashAlignment:
|
|
18
|
-
EnforcedHashRocketStyle: table
|
|
19
|
-
EnforcedColonStyle: table
|
|
12
|
+
Max: 18
|
|
20
13
|
Style/Documentation:
|
|
21
14
|
Enabled: false
|
|
22
15
|
Style/ModuleFunction:
|
|
@@ -26,5 +19,3 @@ AllCops:
|
|
|
26
19
|
NewCops: enable
|
|
27
20
|
Style/FrozenStringLiteralComment:
|
|
28
21
|
Enabled: false
|
|
29
|
-
Naming/FileName:
|
|
30
|
-
Enabled: false
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
legion-cache (1.1.
|
|
4
|
+
legion-cache (1.1.1)
|
|
5
5
|
connection_pool (>= 2.2.3)
|
|
6
6
|
dalli (>= 2.7)
|
|
7
7
|
redis (>= 4.2)
|
|
@@ -13,62 +13,61 @@ GEM
|
|
|
13
13
|
connection_pool (2.2.3)
|
|
14
14
|
dalli (2.7.11)
|
|
15
15
|
diff-lcs (1.4.4)
|
|
16
|
-
docile (1.3.
|
|
17
|
-
json (2.
|
|
18
|
-
json_pure (2.
|
|
19
|
-
legion-
|
|
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)
|
|
20
21
|
json_pure
|
|
22
|
+
legion-exceptions (>= 1.1.5)
|
|
21
23
|
multi_json
|
|
22
24
|
legion-logging (1.1.3)
|
|
23
25
|
rainbow (~> 3)
|
|
24
|
-
legion-settings (1.1.
|
|
26
|
+
legion-settings (1.1.3)
|
|
25
27
|
legion-json
|
|
26
28
|
legion-logging
|
|
27
29
|
multi_json (1.15.0)
|
|
28
|
-
parallel (1.
|
|
29
|
-
parser (
|
|
30
|
+
parallel (1.20.1)
|
|
31
|
+
parser (3.0.0.0)
|
|
30
32
|
ast (~> 2.4.1)
|
|
31
33
|
rainbow (3.0.0)
|
|
32
|
-
rake (13.0.
|
|
33
|
-
redis (4.2.
|
|
34
|
-
regexp_parser (
|
|
34
|
+
rake (13.0.3)
|
|
35
|
+
redis (4.2.5)
|
|
36
|
+
regexp_parser (2.0.3)
|
|
35
37
|
rexml (3.2.4)
|
|
36
38
|
rspec (3.10.0)
|
|
37
39
|
rspec-core (~> 3.10.0)
|
|
38
40
|
rspec-expectations (~> 3.10.0)
|
|
39
41
|
rspec-mocks (~> 3.10.0)
|
|
40
|
-
rspec-core (3.10.
|
|
42
|
+
rspec-core (3.10.1)
|
|
41
43
|
rspec-support (~> 3.10.0)
|
|
42
|
-
rspec-expectations (3.10.
|
|
44
|
+
rspec-expectations (3.10.1)
|
|
43
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
46
|
rspec-support (~> 3.10.0)
|
|
45
|
-
rspec-mocks (3.10.
|
|
47
|
+
rspec-mocks (3.10.1)
|
|
46
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
49
|
rspec-support (~> 3.10.0)
|
|
48
|
-
rspec-support (3.10.
|
|
50
|
+
rspec-support (3.10.1)
|
|
49
51
|
rspec_junit_formatter (0.4.1)
|
|
50
52
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
51
|
-
rubocop (1.
|
|
53
|
+
rubocop (1.8.0)
|
|
52
54
|
parallel (~> 1.10)
|
|
53
|
-
parser (>=
|
|
55
|
+
parser (>= 3.0.0.0)
|
|
54
56
|
rainbow (>= 2.2.2, < 4.0)
|
|
55
|
-
regexp_parser (>= 1.8)
|
|
57
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
56
58
|
rexml
|
|
57
|
-
rubocop-ast (>= 1.0.
|
|
59
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
|
58
60
|
ruby-progressbar (~> 1.7)
|
|
59
|
-
unicode-display_width (>= 1.4.0, <
|
|
60
|
-
rubocop-ast (1.
|
|
61
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
62
|
+
rubocop-ast (1.4.0)
|
|
61
63
|
parser (>= 2.7.1.5)
|
|
62
|
-
|
|
63
|
-
rubocop (>= 0.87.0)
|
|
64
|
-
rubocop-ast (>= 0.4.0)
|
|
65
|
-
ruby-progressbar (1.10.1)
|
|
64
|
+
ruby-progressbar (1.11.0)
|
|
66
65
|
simplecov (0.17.1)
|
|
67
66
|
docile (~> 1.1)
|
|
68
67
|
json (>= 1.8, < 3)
|
|
69
68
|
simplecov-html (~> 0.10.0)
|
|
70
69
|
simplecov-html (0.10.2)
|
|
71
|
-
unicode-display_width (
|
|
70
|
+
unicode-display_width (2.0.0)
|
|
72
71
|
|
|
73
72
|
PLATFORMS
|
|
74
73
|
ruby
|
|
@@ -82,8 +81,7 @@ DEPENDENCIES
|
|
|
82
81
|
rspec
|
|
83
82
|
rspec_junit_formatter
|
|
84
83
|
rubocop
|
|
85
|
-
rubocop-performance
|
|
86
84
|
simplecov (< 0.18.0)
|
|
87
85
|
|
|
88
86
|
BUNDLED WITH
|
|
89
|
-
2.
|
|
87
|
+
2.2.4
|
data/README.md
CHANGED
|
@@ -21,13 +21,6 @@ Or install it yourself as:
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
## Development
|
|
26
|
-
|
|
27
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
28
|
-
|
|
29
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
30
|
-
|
|
31
24
|
## Contributing
|
|
32
25
|
|
|
33
26
|
Bug reports and pull requests are welcome on GitHub at https://bitbucket.org/legion-io/legion-cache/issues
|
data/bitbucket-pipelines.yml
CHANGED
|
@@ -7,8 +7,7 @@ pipelines:
|
|
|
7
7
|
name: Push to RubyGems
|
|
8
8
|
deployment: RubyGems
|
|
9
9
|
script:
|
|
10
|
-
- gem install
|
|
11
|
-
- bundle install
|
|
10
|
+
- gem install gem-release
|
|
12
11
|
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
|
13
12
|
- gem release
|
|
14
13
|
artifacts:
|
data/legion-cache.gemspec
CHANGED
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
25
25
|
end
|
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
27
26
|
spec.require_paths = ['lib']
|
|
28
27
|
|
|
29
28
|
spec.add_development_dependency 'bundler', '>= 2'
|
|
@@ -33,7 +32,6 @@ Gem::Specification.new do |spec|
|
|
|
33
32
|
spec.add_development_dependency 'rspec'
|
|
34
33
|
spec.add_development_dependency 'rspec_junit_formatter'
|
|
35
34
|
spec.add_development_dependency 'rubocop'
|
|
36
|
-
spec.add_development_dependency 'rubocop-performance'
|
|
37
35
|
spec.add_development_dependency 'simplecov', '< 0.18.0'
|
|
38
36
|
|
|
39
37
|
spec.add_dependency 'connection_pool', '>= 2.2.3'
|
|
@@ -4,18 +4,18 @@ module Legion
|
|
|
4
4
|
Legion::Settings.merge_settings(:cache, default) if Legion::Settings.method_defined? :merge_settings
|
|
5
5
|
def self.default
|
|
6
6
|
{
|
|
7
|
-
driver:
|
|
8
|
-
servers:
|
|
9
|
-
connected:
|
|
10
|
-
enabled:
|
|
11
|
-
namespace:
|
|
12
|
-
compress:
|
|
13
|
-
failover:
|
|
7
|
+
driver: driver,
|
|
8
|
+
servers: ['127.0.0.1:11211'],
|
|
9
|
+
connected: false,
|
|
10
|
+
enabled: true,
|
|
11
|
+
namespace: 'legion',
|
|
12
|
+
compress: false,
|
|
13
|
+
failover: true,
|
|
14
14
|
threadsafe: true,
|
|
15
15
|
expires_in: 0,
|
|
16
16
|
cache_nils: false,
|
|
17
|
-
pool_size:
|
|
18
|
-
timeout:
|
|
17
|
+
pool_size: 10,
|
|
18
|
+
timeout: 5,
|
|
19
19
|
serializer: Legion::JSON
|
|
20
20
|
}
|
|
21
21
|
end
|
data/lib/legion/cache/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: legion-cache
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Esity
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -108,20 +108,6 @@ dependencies:
|
|
|
108
108
|
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: rubocop-performance
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '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'
|
|
125
111
|
- !ruby/object:Gem::Dependency
|
|
126
112
|
name: simplecov
|
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|