legion-cache 0.2.1 → 1.0.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: 8af525a0967b0fd5cb1ac712c7e34a61d33328928713a89a1dbe2126e3100884
4
- data.tar.gz: e08cdd2f12067cb126d5060d1d9230b8460650c5e69825067c51bf2d16fe6588
3
+ metadata.gz: 9a0e98b3a109f9afe974174f40b6e881b1bc0fc44d8425170414cea1bd035f80
4
+ data.tar.gz: 533023b2a19842e481108e8954e4085cb7a38c6773fd4d87482257791bce90bb
5
5
  SHA512:
6
- metadata.gz: 9a91fd392e2d2eb6b02ae7e38d2dedc05841dc86f64cd829222c84b8c4a3d547e2db544fb57f93bbdd3fc2b121667e8fe27d5431b5bdd21182c82d190b9892da
7
- data.tar.gz: a35558df6bec660463bafa24093cd383b522d4436d4cd69f5b0d1b4287949df08c8ccefd4783535a98bfb086b91358498b936e23ef682459ac540ac830abc706
6
+ metadata.gz: 202568edde877bd7a9e2c0e5b245e4283f818dfbb8118a316e9fbf145ca853910c2e1da44145cc6c71698846d7d62d391495fa965708d30063bce304d4519263
7
+ data.tar.gz: fbf7bfaa69f0d5f79e11d56b877481220a267d94775aeb2bcb8d243ab0baa49ecc18c6d6715ac18f5933ff3d7553ef232492c42528af548ffc264ef2d64c0c46
@@ -1,11 +1,12 @@
1
1
  version: 2.1
2
2
  orbs:
3
3
  ruby: circleci/ruby@0.2.1
4
+ sonarcloud: sonarsource/sonarcloud@1.0.1
4
5
 
5
6
  jobs:
6
7
  "rubocop":
7
8
  docker:
8
- - image: circleci/ruby:2.5-node
9
+ - image: circleci/ruby:2.7-node
9
10
  steps:
10
11
  - checkout
11
12
  - ruby/load-cache
@@ -17,20 +18,28 @@ jobs:
17
18
  "ruby-two-five":
18
19
  docker:
19
20
  - image: circleci/ruby:2.5
21
+ - image: redis:alpine
20
22
  - image: memcached:1.5-alpine
21
23
  steps:
22
24
  - checkout
23
25
  - ruby/load-cache
26
+ - run:
27
+ name: update bundler
28
+ command: gem update bundler
24
29
  - ruby/install-deps
25
30
  - ruby/run-tests
26
31
  - ruby/save-cache
27
32
  "ruby-two-six":
28
33
  docker:
29
34
  - image: circleci/ruby:2.6
35
+ - image: redis:alpine
30
36
  - image: memcached:1.5-alpine
31
37
  steps:
32
38
  - checkout
33
39
  - ruby/load-cache
40
+ - run:
41
+ name: update bundler
42
+ command: gem update bundler
34
43
  - ruby/install-deps
35
44
  - ruby/run-tests
36
45
  - ruby/save-cache
@@ -38,12 +47,61 @@ jobs:
38
47
  docker:
39
48
  - image: circleci/ruby:2.7
40
49
  - image: memcached:1.5-alpine
50
+ - image: redis:alpine
41
51
  steps:
42
52
  - checkout
43
53
  - ruby/load-cache
44
54
  - ruby/install-deps
45
55
  - ruby/run-tests
46
56
  - ruby/save-cache
57
+ "jruby-nine-two":
58
+ docker:
59
+ - image: circleci/jruby:9.2-jre
60
+ - image: memcached:1.5-alpine
61
+ - image: redis:alpine
62
+ steps:
63
+ - checkout
64
+ - run:
65
+ name: Bundle Install
66
+ command: bundle install
67
+ - run:
68
+ name: Run RSpec
69
+ command: bundle exec rspec --format progress --format RspecJunitFormatter -o test-results/rspec/results.xml
70
+ when: always
71
+ - store_test_results:
72
+ path: test-results
73
+ - sonarcloud/scan
74
+ "jruby-nine-two-e":
75
+ docker:
76
+ - image: circleci/jruby:9.2.11-jre
77
+ - image: memcached:1.5-alpine
78
+ - 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
+ - image: memcached:1.5-alpine
94
+ - image: redis:alpine
95
+ steps:
96
+ - checkout
97
+ - ruby/load-cache
98
+ - ruby/install-deps
99
+ - ruby/run-tests
100
+ - run:
101
+ name: Run Rubocop
102
+ command: bundle exec rubocop --format=json --out=rubocop-result.json
103
+ - sonarcloud/scan
104
+ - ruby/save-cache
47
105
 
48
106
  workflows:
49
107
  version: 2
@@ -58,4 +116,8 @@ workflows:
58
116
  - ruby-two-five
59
117
  - ruby-two-seven:
60
118
  requires:
61
- - ruby-two-five
119
+ - ruby-two-five
120
+ - sonarcloud:
121
+ requires:
122
+ - ruby-two-seven
123
+ - ruby-two-six
@@ -15,8 +15,11 @@ Layout/HashAlignment:
15
15
  EnforcedColonStyle: table
16
16
  Style/Documentation:
17
17
  Enabled: false
18
+ Style/ModuleFunction:
19
+ Enabled: false
18
20
  AllCops:
19
21
  TargetRubyVersion: 2.5
22
+ NewCops: enable
20
23
  Style/FrozenStringLiteralComment:
21
24
  Enabled: false
22
25
  Naming/FileName:
@@ -0,0 +1,86 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ legion-cache (1.0.0)
5
+ connection_pool
6
+ dalli
7
+ redis
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.10)
15
+ diff-lcs (1.4.4)
16
+ docile (1.3.2)
17
+ json (2.3.1)
18
+ legion-json (1.1.0)
19
+ multi_json
20
+ legion-logging (1.1.0)
21
+ rainbow (~> 3)
22
+ legion-settings (1.1.0)
23
+ legion-json
24
+ legion-logging
25
+ multi_json (1.15.0)
26
+ parallel (1.19.2)
27
+ parser (2.7.1.4)
28
+ ast (~> 2.4.1)
29
+ rainbow (3.0.0)
30
+ rake (13.0.1)
31
+ redis (4.2.1)
32
+ regexp_parser (1.7.1)
33
+ rexml (3.2.4)
34
+ rspec (3.9.0)
35
+ rspec-core (~> 3.9.0)
36
+ rspec-expectations (~> 3.9.0)
37
+ rspec-mocks (~> 3.9.0)
38
+ rspec-core (3.9.2)
39
+ rspec-support (~> 3.9.3)
40
+ rspec-expectations (3.9.2)
41
+ diff-lcs (>= 1.2.0, < 2.0)
42
+ rspec-support (~> 3.9.0)
43
+ rspec-mocks (3.9.1)
44
+ diff-lcs (>= 1.2.0, < 2.0)
45
+ rspec-support (~> 3.9.0)
46
+ rspec-support (3.9.3)
47
+ rspec_junit_formatter (0.4.1)
48
+ rspec-core (>= 2, < 4, != 2.12.0)
49
+ rubocop (0.88.0)
50
+ parallel (~> 1.10)
51
+ parser (>= 2.7.1.1)
52
+ rainbow (>= 2.2.2, < 4.0)
53
+ regexp_parser (>= 1.7)
54
+ rexml
55
+ rubocop-ast (>= 0.1.0, < 1.0)
56
+ ruby-progressbar (~> 1.7)
57
+ unicode-display_width (>= 1.4.0, < 2.0)
58
+ rubocop-ast (0.2.0)
59
+ parser (>= 2.7.0.1)
60
+ rubocop-performance (1.7.1)
61
+ rubocop (>= 0.82.0)
62
+ ruby-progressbar (1.10.1)
63
+ simplecov (0.17.1)
64
+ docile (~> 1.1)
65
+ json (>= 1.8, < 3)
66
+ simplecov-html (~> 0.10.0)
67
+ simplecov-html (0.10.2)
68
+ unicode-display_width (1.7.0)
69
+
70
+ PLATFORMS
71
+ ruby
72
+
73
+ DEPENDENCIES
74
+ bundler
75
+ legion-cache!
76
+ legion-logging
77
+ legion-settings
78
+ rake
79
+ rspec
80
+ rspec_junit_formatter
81
+ rubocop
82
+ rubocop-performance
83
+ simplecov (< 0.18.0)
84
+
85
+ BUNDLED WITH
86
+ 2.1.4
@@ -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.bindir = 'exe'
27
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
27
  spec.require_paths = ['lib']
29
28
 
@@ -34,7 +33,8 @@ Gem::Specification.new do |spec|
34
33
  spec.add_development_dependency 'rspec'
35
34
  spec.add_development_dependency 'rspec_junit_formatter'
36
35
  spec.add_development_dependency 'rubocop'
37
- spec.add_development_dependency 'simplecov'
36
+ spec.add_development_dependency 'rubocop-performance'
37
+ spec.add_development_dependency 'simplecov', '< 0.18.0'
38
38
 
39
39
  spec.add_dependency 'connection_pool'
40
40
  spec.add_dependency 'dalli'
@@ -7,15 +7,9 @@ require_relative 'cache/redis'
7
7
  module Legion
8
8
  module Cache
9
9
  class << self
10
- attr_reader :client
11
10
  include Legion::Cache::Memcached if Legion::Settings[:cache][:driver] == 'dalli'
12
11
  include Legion::Cache::Redis if Legion::Settings[:cache][:driver] == 'redis'
13
12
 
14
- def setup
15
- connect
16
- Legion::Logging.info 'Legion::Cache connected and enabled'
17
- end
18
-
19
13
  def shutdown
20
14
  Legion::Logging.info 'Shutting down Legion::Cache'
21
15
  close
@@ -3,42 +3,49 @@ require 'dalli'
3
3
  module Legion
4
4
  module Cache
5
5
  module Memcached
6
- def connect
7
- Legion::Logging.debug 'Using Memcached module for Legion::Cache'
6
+ extend self
7
+
8
+ def client(servers: Legion::Settings[:cache][:servers], **opts)
9
+ return @client unless @client.nil?
8
10
 
9
11
  Dalli.logger = Legion::Logging
10
- @client = Dalli::Client.new(Legion::Settings[:cache][:servers], Legion::Settings[:cache])
11
- Legion::Logging.debug "Legion::Cache successfully connected to #{Legion::Settings[:cache][:servers]}"
12
- Legion::Settings[:cache][:connected] = true
12
+ @client = Dalli::Client.new(servers, Legion::Settings[:cache].merge(opts))
13
+ @connected = true
14
+ @client
15
+ end
16
+
17
+ def connected?
18
+ @connected ||= false
13
19
  end
14
20
 
15
21
  def close
16
- @client.close
22
+ client.close
17
23
  end
18
24
 
19
25
  def restart
20
26
  close
21
- connect
27
+ @client = nil
28
+ client
22
29
  end
23
30
 
24
31
  def get(key)
25
- @client.get(key)
32
+ client.get(key)
26
33
  end
27
34
 
28
35
  def fetch(key, ttl = nil)
29
- @client.fetch(key, ttl)
36
+ client.fetch(key, ttl)
30
37
  end
31
38
 
32
39
  def set(key, value, ttl = 180)
33
- @client.set(key, value, ttl).positive?
40
+ client.set(key, value, ttl).positive?
34
41
  end
35
42
 
36
43
  def delete(key)
37
- @client.delete(key) == true
44
+ client.delete(key) == true
38
45
  end
39
46
 
40
47
  def flush(delay = 0)
41
- @client.flush(delay).first
48
+ client.flush(delay).first
42
49
  end
43
50
  end
44
51
  end
@@ -3,36 +3,47 @@ require 'redis'
3
3
  module Legion
4
4
  module Cache
5
5
  module Redis
6
- def connect
6
+ extend self
7
+
8
+ def client
9
+ return @client unless @client.nil?
10
+
7
11
  @client = ::Redis.new
12
+ @connected = true
13
+ @client
14
+ end
15
+
16
+ def connected?
17
+ @connected ||= false
8
18
  end
9
19
 
10
20
  def close
11
- @client.close
21
+ client.close
12
22
  end
13
23
 
14
24
  def restart
15
25
  close
16
- connect
26
+ @client = nil
27
+ client
17
28
  end
18
29
 
19
30
  def get(key)
20
- @client.get(key)
31
+ client.get(key)
21
32
  end
22
33
  alias fetch get
23
34
 
24
35
  def set(key, value, ttl: nil)
25
36
  args = {}
26
37
  args[:ex] = ttl unless ttl.nil?
27
- @client.set(key, value, **args) == 'OK'
38
+ client.set(key, value, **args) == 'OK'
28
39
  end
29
40
 
30
41
  def delete(key)
31
- @client.del(key) == 1
42
+ client.del(key) == 1
32
43
  end
33
44
 
34
45
  def flush
35
- @client.flushdb == 'OK'
46
+ client.flushdb == 'OK'
36
47
  end
37
48
  end
38
49
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Legion
4
4
  module Cache
5
- VERSION = '0.2.1'
5
+ VERSION = '1.0.0'
6
6
  end
7
7
  end
@@ -0,0 +1,13 @@
1
+ sonar.projectKey=legion-io_legion-cache
2
+ sonar.organization=legion-io
3
+ sonar.projectName=Legion::Cache
4
+ sonar.sources=.
5
+ sonar.exclusions=vendor/**
6
+ sonar.coverage.exclusions=spec/**
7
+ sonar.cpd.exclusions=spec/**
8
+ sonar.ruby.coverage.reportPath=coverage/.resultset.json
9
+ sonar.ruby.file.suffixes=rb,ruby
10
+ sonar.ruby.coverage.framework=RSpec
11
+ sonar.ruby.rubocopConfig=.rubocop.yml
12
+ sonar.ruby.rubocop.reportPath=rubocop-result.json
13
+ sonar.ruby.rubocop.filePath=.
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: 0.2.1
4
+ version: 1.0.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-03-08 00:00:00.000000000 Z
11
+ date: 2020-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ dependencies:
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: simplecov
112
+ name: rubocop-performance
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "<"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.18.0
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "<"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.18.0
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: connection_pool
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -173,26 +187,20 @@ extra_rdoc_files: []
173
187
  files:
174
188
  - ".circleci/config.yml"
175
189
  - ".gitignore"
176
- - ".idea/.rakeTasks"
177
- - ".idea/legion-cache.iml"
178
- - ".idea/misc.xml"
179
- - ".idea/modules.xml"
180
- - ".idea/vagrant.xml"
181
- - ".idea/workspace.xml"
182
190
  - ".rspec"
183
191
  - ".rubocop.yml"
184
192
  - Gemfile
193
+ - Gemfile.lock
185
194
  - LICENSE.txt
186
195
  - README.md
187
196
  - Rakefile
188
- - bin/console
189
- - bin/setup
190
197
  - legion-cache.gemspec
191
198
  - lib/legion/cache.rb
192
199
  - lib/legion/cache/memcached.rb
193
200
  - lib/legion/cache/redis.rb
194
201
  - lib/legion/cache/settings.rb
195
202
  - lib/legion/cache/version.rb
203
+ - sonar-project.properties
196
204
  homepage: https://bitbucket.org/legion-io/legion-cache
197
205
  licenses:
198
206
  - MIT
@@ -202,7 +210,7 @@ metadata:
202
210
  changelog_uri: https://bitbucket.org/legion-io/legion-cache/src/master/CHANGELOG.md
203
211
  wiki_uri: https://bitbucket.org/legion-io/legion-cache/wiki
204
212
  bug_tracker_uri: https://bitbucket.org/legion-io/legion-cache/issues
205
- post_install_message:
213
+ post_install_message:
206
214
  rdoc_options: []
207
215
  require_paths:
208
216
  - lib
@@ -217,8 +225,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
225
  - !ruby/object:Gem::Version
218
226
  version: '0'
219
227
  requirements: []
220
- rubygems_version: 3.0.8
221
- signing_key:
228
+ rubygems_version: 3.1.2
229
+ signing_key:
222
230
  specification_version: 4
223
231
  summary: Legion::Cache integration
224
232
  test_files: []
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build legion-cache-0.2.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install legion-cache-0.2.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install legion-cache-0.2.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.2.0 and build and push legion-cache-0.2.0.gem to rubygems.org" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="ModuleRunConfigurationManager">
4
- <shared />
5
- </component>
6
- <component name="NewModuleRootManager">
7
- <content url="file://$MODULE_DIR$" />
8
- <orderEntry type="inheritedJdk" />
9
- <orderEntry type="sourceFolder" forTests="false" />
10
- <orderEntry type="library" scope="PROVIDED" name="ast (v2.4.0, RVM: ruby-2.6.3) [gem]" level="application" />
11
- <orderEntry type="library" scope="PROVIDED" name="bundler (v2.1.4, RVM: ruby-2.6.3) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="connection_pool (v2.2.2, RVM: ruby-2.6.3) [gem]" level="application" />
13
- <orderEntry type="library" scope="PROVIDED" name="dalli (v2.7.10, RVM: ruby-2.6.3) [gem]" level="application" />
14
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, RVM: ruby-2.6.3) [gem]" level="application" />
15
- <orderEntry type="library" scope="PROVIDED" name="docile (v1.3.2, RVM: ruby-2.6.3) [gem]" level="application" />
16
- <orderEntry type="library" scope="PROVIDED" name="jaro_winkler (v1.5.4, RVM: ruby-2.6.3) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="legion-logging (v0.2.0, RVM: ruby-2.6.3) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="parallel (v1.19.1, RVM: ruby-2.6.3) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="parser (v2.7.0.4, RVM: ruby-2.6.3) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v3.0.0, RVM: ruby-2.6.3) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="rake (v13.0.1, RVM: ruby-2.6.3) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="redis (v4.1.3, RVM: ruby-2.6.3) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.4, RVM: ruby-2.6.3) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.9.0, RVM: ruby-2.6.3) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.9.1, RVM: ruby-2.6.3) [gem]" level="application" />
28
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.9.2, RVM: ruby-2.6.3) [gem]" level="application" />
29
- <orderEntry type="library" scope="PROVIDED" name="rspec_junit_formatter (v0.4.1, RVM: ruby-2.6.3) [gem]" level="application" />
30
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v0.80.1, RVM: ruby-2.6.3) [gem]" level="application" />
31
- <orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.1, RVM: ruby-2.6.3) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="simplecov (v0.18.5, RVM: ruby-2.6.3) [gem]" level="application" />
33
- <orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.2, RVM: ruby-2.6.3) [gem]" level="application" />
34
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.6.1, RVM: ruby-2.6.3) [gem]" level="application" />
35
- </component>
36
- </module>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptSettings">
4
- <option name="languageLevel" value="ES6" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.6.3" project-jdk-type="RUBY_SDK" />
7
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/legion-cache.iml" filepath="$PROJECT_DIR$/.idea/legion-cache.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VagrantProjectSettings">
4
- <option name="instanceFolder" value="" />
5
- <option name="provider" value="" />
6
- </component>
7
- </project>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="CoverageOptionsProvider">
4
- <option name="myAddOrReplace" value="0" />
5
- </component>
6
- <component name="Git.Settings">
7
- <option name="PUSH_AUTO_UPDATE" value="true" />
8
- <option name="ROOT_SYNC" value="DONT_SYNC" />
9
- </component>
10
- <component name="ProjectId" id="1Yl3LLXb9c4jt3mof9hHMP78fdY" />
11
- <component name="PropertiesComponent">
12
- <property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.vagrant" />
13
- </component>
14
- </project>
@@ -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