sonezaki 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +5 -2
- data/.env +1 -0
- data/.rubocop.yml +2 -1
- data/.rubocop_todo.yml +15 -0
- data/Dockerfile +2 -2
- data/Gemfile +18 -0
- data/README.md +1 -1
- data/config/check_specs.yml +1 -1
- data/config/yardstick.yml +4 -2
- data/docker-compose.yml +7 -0
- data/lib/sonezaki/redis_accessor.rb +132 -0
- data/lib/sonezaki/version.rb +2 -2
- data/lib/sonezaki.rb +2 -1
- data/sonezaki.gemspec +2 -18
- data/sonezaki.png +0 -0
- data/spec/integration/yard/sonezaki/redis_accessor_spec.rb +15 -0
- data/spec/lib/sonezaki/redis_accessor_spec.rb +103 -0
- data/spec/lib/sonezaki_spec.rb +1 -2
- data/spec/spec_helper.rb +2 -1
- metadata +11 -230
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9c1351fab740192326bca143953adda763ba0dd7f6b26fb05317dc53d27d1b
|
4
|
+
data.tar.gz: e0855a20bce81102ad4de41f6d7a8535d04b0fe450d7ec400062cae9b44f2bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e4d9bd463bd3366a38a6588fe203b341f8aafdd77aa15610632b48b7ef5e78ce2d9c0593782b634aef9edfb318d6dd1fd26672505c8d8627883ec107e75fc3
|
7
|
+
data.tar.gz: '09807b4d59f0c0e3927b8b187ba5ed0a51ffb9d2df8f5ce1056f2b552d8e87ab045c1809f84b90093d95ddee0b39695298497506f336532dda98e02e73e47324'
|
data/.circleci/config.yml
CHANGED
@@ -18,9 +18,12 @@ workflows:
|
|
18
18
|
jobs:
|
19
19
|
test:
|
20
20
|
docker:
|
21
|
-
- image: darthjee/
|
21
|
+
- image: darthjee/circleci_ruby_331:1.0.1
|
22
22
|
environment:
|
23
23
|
PROJECT: sonezaki
|
24
|
+
REDIS_URL: redis://redis:6379/0
|
25
|
+
- image: circleci/redis:latest
|
26
|
+
name: redis
|
24
27
|
steps:
|
25
28
|
- checkout
|
26
29
|
- run:
|
@@ -52,7 +55,7 @@ jobs:
|
|
52
55
|
command: check_specs
|
53
56
|
build-and-release:
|
54
57
|
docker:
|
55
|
-
- image: darthjee/
|
58
|
+
- image: darthjee/circleci_ruby_331:1.0.1
|
56
59
|
environment:
|
57
60
|
PROJECT: sonezaki
|
58
61
|
steps:
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2024-05-29 22:01:31 UTC using RuboCop version 1.51.0.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: AllowedConstants.
|
11
|
+
Style/Documentation:
|
12
|
+
Exclude:
|
13
|
+
- 'spec/**/*'
|
14
|
+
- 'test/**/*'
|
15
|
+
- 'lib/sonezaki/redis_accessor.rb'
|
data/Dockerfile
CHANGED
data/Gemfile
CHANGED
@@ -3,3 +3,21 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
|
5
5
|
gemspec
|
6
|
+
|
7
|
+
gem 'bundler', '>= 2.5.11'
|
8
|
+
gem 'pry', '0.14.2'
|
9
|
+
gem 'pry-nav', '1.0.0'
|
10
|
+
gem 'rake', '13.1.0'
|
11
|
+
gem 'redis', '5.2.0'
|
12
|
+
gem 'reek', '6.1.4'
|
13
|
+
gem 'rspec', '3.12.0'
|
14
|
+
gem 'rspec-core', '3.12.2'
|
15
|
+
gem 'rspec-expectations', '3.12.3'
|
16
|
+
gem 'rspec-mocks', '3.12.5'
|
17
|
+
gem 'rspec-support', '3.12.0'
|
18
|
+
gem 'rubocop', '1.59.0'
|
19
|
+
gem 'rubocop-rspec', '2.29.2'
|
20
|
+
gem 'rubycritic', '4.9.1'
|
21
|
+
gem 'simplecov', '0.22.0'
|
22
|
+
gem 'yard', '0.9.36'
|
23
|
+
gem 'yardstick', '0.9.9'
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Sonezaki
|
|
8
8
|
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/9836de08612e46b889c7978be2b72a14)](https://www.codacy.com/manual/darthjee/sonezaki?utm_source=github.com&utm_medium=referral&utm_content=darthjee/sonezaki&utm_campaign=Badge_Grade)
|
9
9
|
[![Inline docs](http://inch-ci.org/github/darthjee/sonezaki.svg?branch=master)](http://inch-ci.org/github/darthjee/sonezaki)
|
10
10
|
|
11
|
-
![sonezaki](https://raw.githubusercontent.com/darthjee/sonezaki/master/sonezaki.
|
11
|
+
![sonezaki](https://raw.githubusercontent.com/darthjee/sonezaki/master/sonezaki.png)
|
12
12
|
|
13
13
|
Gem used for storing and accessing data during debugging sessions
|
14
14
|
|
data/config/check_specs.yml
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
ignore:
|
2
|
-
- lib/
|
2
|
+
- lib/sonezaki/version.rb
|
data/config/yardstick.yml
CHANGED
@@ -15,13 +15,15 @@ rules:
|
|
15
15
|
exclude: []
|
16
16
|
ExampleTag:
|
17
17
|
enabled: true
|
18
|
-
exclude:
|
18
|
+
exclude:
|
19
|
+
- Sonezaki::RedisAccessor#initialize
|
19
20
|
ReturnTag:
|
20
21
|
enabled: true
|
21
22
|
exclude: []
|
22
23
|
Summary::Presence:
|
23
24
|
enabled: true
|
24
|
-
exclude:
|
25
|
+
exclude:
|
26
|
+
- Sonezaki::RedisAccessor#initialize
|
25
27
|
Summary::Length:
|
26
28
|
enabled: true
|
27
29
|
exclude: []
|
data/docker-compose.yml
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
version: '3'
|
2
2
|
services:
|
3
|
+
sonezaki_redis:
|
4
|
+
image: redis:6.2.4
|
5
|
+
container_name: sonezaki_redis
|
6
|
+
|
3
7
|
base: &base
|
4
8
|
image: sonezaki
|
5
9
|
working_dir: /home/app/app
|
6
10
|
volumes:
|
7
11
|
- .:/home/app/app
|
12
|
+
links:
|
13
|
+
- sonezaki_redis:redis
|
8
14
|
|
9
15
|
base_build:
|
10
16
|
<<: *base
|
@@ -16,6 +22,7 @@ services:
|
|
16
22
|
container_name: sonezaki
|
17
23
|
depends_on: [base_build]
|
18
24
|
command: /bin/bash -c 'rspec'
|
25
|
+
env_file: .env
|
19
26
|
|
20
27
|
test_all:
|
21
28
|
<<: *base
|
@@ -0,0 +1,132 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Sonezaki
|
4
|
+
# @api public
|
5
|
+
# @author darthjee
|
6
|
+
#
|
7
|
+
# Accessor that readis and write values into Redis
|
8
|
+
#
|
9
|
+
# @example Simple usage
|
10
|
+
# accessor = Sonezaki::RedisAccessor.new('my_key', type: :integer)
|
11
|
+
#
|
12
|
+
# accessor.set('10.1')
|
13
|
+
#
|
14
|
+
# accessor.get # returns 10
|
15
|
+
class RedisAccessor
|
16
|
+
MONTH = 30 * 24 * 3600
|
17
|
+
|
18
|
+
# @param key [Symbol,String] Key used to save the data on redis
|
19
|
+
# @param type [Symbol] Type of convertion when retrieving the data
|
20
|
+
# @param ttl [Integer] Seconds the data will exist before expiration
|
21
|
+
def initialize(key, type: :string, ttl: MONTH)
|
22
|
+
@key = key
|
23
|
+
@type = type
|
24
|
+
@ttl = ttl
|
25
|
+
end
|
26
|
+
|
27
|
+
# Save the value into redis
|
28
|
+
#
|
29
|
+
# @param value [Object] Object to be saved
|
30
|
+
#
|
31
|
+
# Saving will convert the value as string
|
32
|
+
#
|
33
|
+
# @return [Object] the value itself as it is read from Redis
|
34
|
+
#
|
35
|
+
# @example (see RedisAccessor)
|
36
|
+
def set(value)
|
37
|
+
options = { ex: ttl }.compact
|
38
|
+
connection.set(key, value, **options)
|
39
|
+
get
|
40
|
+
end
|
41
|
+
|
42
|
+
# Fetch the value from redis
|
43
|
+
#
|
44
|
+
# The value is converted using {#type}
|
45
|
+
#
|
46
|
+
# @return [Object]
|
47
|
+
#
|
48
|
+
# @example (see RedisAccessor)
|
49
|
+
def get
|
50
|
+
value = connection.get(key)
|
51
|
+
return unless value
|
52
|
+
return value unless type
|
53
|
+
|
54
|
+
convert(value)
|
55
|
+
end
|
56
|
+
|
57
|
+
private
|
58
|
+
|
59
|
+
attr_reader :key, :type, :ttl
|
60
|
+
|
61
|
+
# @method key
|
62
|
+
# @private
|
63
|
+
# @api private
|
64
|
+
#
|
65
|
+
# Retrieve saving / reading key
|
66
|
+
#
|
67
|
+
# @return [Symbol, String]
|
68
|
+
|
69
|
+
# @method type
|
70
|
+
# @private
|
71
|
+
# @api private
|
72
|
+
#
|
73
|
+
# Type conversion when reading data
|
74
|
+
#
|
75
|
+
# @return [Symbol]
|
76
|
+
|
77
|
+
# @method ttl
|
78
|
+
# @private
|
79
|
+
# @api private
|
80
|
+
#
|
81
|
+
# Time until the value expires in Redis
|
82
|
+
#
|
83
|
+
# @return [Integer]
|
84
|
+
|
85
|
+
# @private
|
86
|
+
# @api private
|
87
|
+
#
|
88
|
+
# Convert the string read from Redis
|
89
|
+
#
|
90
|
+
# The value will be converted using {#type}
|
91
|
+
#
|
92
|
+
# @param value [String] The value read from redis
|
93
|
+
#
|
94
|
+
# @return [Object]
|
95
|
+
def convert(value)
|
96
|
+
case type
|
97
|
+
when :integer
|
98
|
+
return value.to_i
|
99
|
+
when :float
|
100
|
+
return value.to_f
|
101
|
+
end
|
102
|
+
value
|
103
|
+
end
|
104
|
+
|
105
|
+
# @private
|
106
|
+
# @api private
|
107
|
+
#
|
108
|
+
# Connection to redis
|
109
|
+
#
|
110
|
+
# @return [Redis]
|
111
|
+
def connection
|
112
|
+
@connection ||= build_connection
|
113
|
+
end
|
114
|
+
|
115
|
+
# @private
|
116
|
+
# @api private
|
117
|
+
#
|
118
|
+
# builds the connection to redis
|
119
|
+
#
|
120
|
+
# When this method is called is when redis is required.
|
121
|
+
#
|
122
|
+
# This is done so that projects can choose which accessor
|
123
|
+
# they want insted of use always Reds
|
124
|
+
#
|
125
|
+
# @return [Redis]
|
126
|
+
def build_connection
|
127
|
+
require 'redis'
|
128
|
+
|
129
|
+
Redis.new
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
data/lib/sonezaki/version.rb
CHANGED
data/lib/sonezaki.rb
CHANGED
data/sonezaki.gemspec
CHANGED
@@ -12,27 +12,11 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.homepage = 'https://github.com/darthjee/sonezaki'
|
13
13
|
gem.description = ''
|
14
14
|
gem.summary = gem.description
|
15
|
-
gem.required_ruby_version = '>=
|
15
|
+
gem.required_ruby_version = '>= 3.3.0'
|
16
16
|
|
17
17
|
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
18
|
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
gem.test_files = gem.files.grep(%r{^(test|gem|features)/})
|
20
19
|
gem.require_paths = ['lib']
|
21
20
|
|
22
|
-
gem.
|
23
|
-
gem.add_development_dependency 'pry', '0.14.1'
|
24
|
-
gem.add_development_dependency 'pry-nav', '1.0.0'
|
25
|
-
gem.add_development_dependency 'rake', '13.0.6'
|
26
|
-
gem.add_development_dependency 'reek', '6.0.3'
|
27
|
-
gem.add_development_dependency 'rspec', '3.11.0'
|
28
|
-
gem.add_development_dependency 'rspec-core', '3.11.0'
|
29
|
-
gem.add_development_dependency 'rspec-expectations', '3.11.0'
|
30
|
-
gem.add_development_dependency 'rspec-mocks', '3.11.1'
|
31
|
-
gem.add_development_dependency 'rspec-support', '3.11.0'
|
32
|
-
gem.add_development_dependency 'rubocop', '0.80.1'
|
33
|
-
gem.add_development_dependency 'rubocop-rspec', '1.38.1'
|
34
|
-
gem.add_development_dependency 'rubycritic', '4.7.0'
|
35
|
-
gem.add_development_dependency 'simplecov', '0.21.2'
|
36
|
-
gem.add_development_dependency 'yard', '0.9.27'
|
37
|
-
gem.add_development_dependency 'yardstick', '0.9.9'
|
21
|
+
gem.metadata['rubygems_mfa_required'] = 'true'
|
38
22
|
end
|
data/sonezaki.png
CHANGED
Binary file
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Sonezaki::RedisAccessor do
|
6
|
+
describe 'yard' do
|
7
|
+
it 'Simple usage' do
|
8
|
+
accessor = Sonezaki::RedisAccessor.new('my_key', type: :integer)
|
9
|
+
|
10
|
+
accessor.set('10.1')
|
11
|
+
|
12
|
+
expect(accessor.get).to eq(10)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
|
5
|
+
describe Sonezaki::RedisAccessor do
|
6
|
+
subject(:accessor) do
|
7
|
+
described_class.new(key, **options)
|
8
|
+
end
|
9
|
+
|
10
|
+
let(:key) do
|
11
|
+
"SomeKey_#{Random.rand(1000)}"
|
12
|
+
end
|
13
|
+
|
14
|
+
let(:options) { {} }
|
15
|
+
|
16
|
+
after do
|
17
|
+
Redis.new.del(key)
|
18
|
+
end
|
19
|
+
|
20
|
+
describe '#get' do
|
21
|
+
context 'when nothing has been set' do
|
22
|
+
it do
|
23
|
+
expect(accessor.get).to be_nil
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
context 'when a value has been set' do
|
28
|
+
let(:value) { Random.rand(1_000_000) / 100.0 }
|
29
|
+
|
30
|
+
before do
|
31
|
+
Redis.new.set(key, value)
|
32
|
+
end
|
33
|
+
|
34
|
+
context 'when type option is not given' do
|
35
|
+
it 'returns the string for the value' do
|
36
|
+
expect(accessor.get).to eq(value.to_s)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
context 'when type option is integer' do
|
41
|
+
let(:options) { { type: :integer } }
|
42
|
+
|
43
|
+
it 'returns the integer for the value' do
|
44
|
+
expect(accessor.get).to eq(value.to_i)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context 'when type option is float' do
|
49
|
+
let(:options) { { type: :float } }
|
50
|
+
|
51
|
+
it 'returns the float for the value' do
|
52
|
+
expect(accessor.get).to eq(value)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe '#set' do
|
59
|
+
let(:value) { Random.rand(100_000) / 10.0 }
|
60
|
+
|
61
|
+
context 'when type has not been defined' do
|
62
|
+
it 'returns the stored value' do
|
63
|
+
expect(accessor.set(value)).to eq(value.to_s)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'stores the value for future reading' do
|
67
|
+
expect { accessor.set(value) }
|
68
|
+
.to change(accessor, :get)
|
69
|
+
.from(nil)
|
70
|
+
.to(value.to_s)
|
71
|
+
end
|
72
|
+
|
73
|
+
it 'stores the value in redis' do
|
74
|
+
expect { accessor.set(value) }
|
75
|
+
.to change { Redis.new.get(key) }
|
76
|
+
.from(nil)
|
77
|
+
.to(value.to_s)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
context 'when type has been defined as integer' do
|
82
|
+
let(:options) { { type: :integer } }
|
83
|
+
|
84
|
+
it 'returns the stored value' do
|
85
|
+
expect(accessor.set(value)).to eq(value.to_i)
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'stores the value for future reading' do
|
89
|
+
expect { accessor.set(value) }
|
90
|
+
.to change(accessor, :get)
|
91
|
+
.from(nil)
|
92
|
+
.to(value.to_i)
|
93
|
+
end
|
94
|
+
|
95
|
+
it 'stores the value in redis' do
|
96
|
+
expect { accessor.set(value) }
|
97
|
+
.to change { Redis.new.get(key) }
|
98
|
+
.from(nil)
|
99
|
+
.to(value.to_s)
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
data/spec/lib/sonezaki_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -10,10 +10,11 @@ SimpleCov.start 'gem'
|
|
10
10
|
|
11
11
|
require 'sonezaki'
|
12
12
|
require 'pry-nav'
|
13
|
+
require 'redis'
|
13
14
|
|
14
15
|
support_files = File.expand_path('spec/support/**/*.rb')
|
15
16
|
|
16
|
-
Dir[support_files].
|
17
|
+
Dir[support_files].each { |file| require file }
|
17
18
|
|
18
19
|
RSpec.configure do |config|
|
19
20
|
config.run_all_when_everything_filtered = true
|
metadata
CHANGED
@@ -1,239 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sonezaki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DarthJee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - '='
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: 2.4.8
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - '='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 2.4.8
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: pry
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.14.1
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.14.1
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: pry-nav
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - '='
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - '='
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.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: 13.0.6
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 13.0.6
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: reek
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 6.0.3
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 6.0.3
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - '='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 3.11.0
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 3.11.0
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rspec-core
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - '='
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 3.11.0
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - '='
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 3.11.0
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec-expectations
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - '='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 3.11.0
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 3.11.0
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec-mocks
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 3.11.1
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - '='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 3.11.1
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-support
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - '='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 3.11.0
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - '='
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 3.11.0
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rubocop
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - '='
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: 0.80.1
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 0.80.1
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rubocop-rspec
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - '='
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: 1.38.1
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - '='
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 1.38.1
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: rubycritic
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - '='
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 4.7.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - '='
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 4.7.0
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: simplecov
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - '='
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 0.21.2
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - '='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 0.21.2
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: yard
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - '='
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: 0.9.27
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - '='
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.9.27
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: yardstick
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - '='
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 0.9.9
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - '='
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: 0.9.9
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
237
13
|
description: ''
|
238
14
|
email:
|
239
15
|
- darthjee@gmail.com
|
@@ -242,6 +18,7 @@ extensions: []
|
|
242
18
|
extra_rdoc_files: []
|
243
19
|
files:
|
244
20
|
- ".circleci/config.yml"
|
21
|
+
- ".env"
|
245
22
|
- ".gitignore"
|
246
23
|
- ".rspec"
|
247
24
|
- ".rubocop.yml"
|
@@ -257,18 +34,22 @@ files:
|
|
257
34
|
- config/yardstick.yml
|
258
35
|
- docker-compose.yml
|
259
36
|
- lib/sonezaki.rb
|
37
|
+
- lib/sonezaki/redis_accessor.rb
|
260
38
|
- lib/sonezaki/version.rb
|
261
39
|
- sonezaki.gemspec
|
262
40
|
- sonezaki.png
|
263
41
|
- spec/integration/readme/.keep
|
264
42
|
- spec/integration/yard/.keep
|
43
|
+
- spec/integration/yard/sonezaki/redis_accessor_spec.rb
|
44
|
+
- spec/lib/sonezaki/redis_accessor_spec.rb
|
265
45
|
- spec/lib/sonezaki_spec.rb
|
266
46
|
- spec/spec_helper.rb
|
267
47
|
- spec/support/models/.keep
|
268
48
|
- spec/support/shared_examples/.keep
|
269
49
|
homepage: https://github.com/darthjee/sonezaki
|
270
50
|
licenses: []
|
271
|
-
metadata:
|
51
|
+
metadata:
|
52
|
+
rubygems_mfa_required: 'true'
|
272
53
|
post_install_message:
|
273
54
|
rdoc_options: []
|
274
55
|
require_paths:
|
@@ -277,14 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
58
|
requirements:
|
278
59
|
- - ">="
|
279
60
|
- !ruby/object:Gem::Version
|
280
|
-
version:
|
61
|
+
version: 3.3.0
|
281
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
63
|
requirements:
|
283
64
|
- - ">="
|
284
65
|
- !ruby/object:Gem::Version
|
285
66
|
version: '0'
|
286
67
|
requirements: []
|
287
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.5.9
|
288
69
|
signing_key:
|
289
70
|
specification_version: 4
|
290
71
|
summary: ''
|