redis-claim 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6ea44be69ee8f4352ec769076707c7a1e20409b233807a9aa4f71d14c12409d4
4
+ data.tar.gz: 64f294742923175f78e01574a696e7075d319dfee9e04f46113f247783f50146
5
+ SHA512:
6
+ metadata.gz: 5099e24651cc53685f86775385843f81e4c96a14e60287f034f77ec4ea80c538ca4a6c1b01bd1b5e710cc549d0a88f51e113ad66fb92737be8c58b2039e67b02
7
+ data.tar.gz: 4d08a439ed46bee33b40961dd9a0f69ec357be5c648820e3d1bcf13f6ba5f3634cf3308d969971f6523740a304250a0b1847b118e6dcc0e4abe48511264f609f
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.simplecov ADDED
@@ -0,0 +1 @@
1
+ SimpleCov.start if ENV["COVERAGE"]
data/.travis.yml ADDED
@@ -0,0 +1,32 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ services:
6
+ - redis-server
7
+
8
+ rvm:
9
+ - 2.5.1
10
+
11
+ before_install:
12
+ - gem update --system
13
+ - gem install bundler
14
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
15
+ - chmod +x ./cc-test-reporter
16
+ - ./cc-test-reporter before-build
17
+
18
+ install:
19
+ - bin/setup
20
+
21
+ script:
22
+ - COVERAGE=true bundle exec rspec
23
+ - gem build redis-claim
24
+
25
+ after_script:
26
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
27
+
28
+ deploy:
29
+ provider: rubygems
30
+ api_key: "$RUBY_GEMS_API_KEY"
31
+ on:
32
+ tags: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0]
4
+ ### Added
5
+ - Implemented functionality to verify that db claimed by current app, claim it or raise error
6
+ - Parameter to ignore redis connectivity errors
7
+
8
+ [Unreleased]: https://github.com/matic-insurance/redis-claim/compare/0.1.0...HEAD
9
+ [0.1.0]: https://github.com/matic-insurance/redis-claim/compare/master...0.1.0
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at volodymyr.m@matic.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in redis-claim.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ redis-claim (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.3)
10
+ docile (1.3.1)
11
+ json (2.2.0)
12
+ rake (10.5.0)
13
+ redis (4.1.0)
14
+ rspec (3.8.0)
15
+ rspec-core (~> 3.8.0)
16
+ rspec-expectations (~> 3.8.0)
17
+ rspec-mocks (~> 3.8.0)
18
+ rspec-core (3.8.0)
19
+ rspec-support (~> 3.8.0)
20
+ rspec-expectations (3.8.2)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.8.0)
23
+ rspec-mocks (3.8.0)
24
+ diff-lcs (>= 1.2.0, < 2.0)
25
+ rspec-support (~> 3.8.0)
26
+ rspec-support (3.8.0)
27
+ simplecov (0.16.1)
28
+ docile (~> 1.1)
29
+ json (>= 1.8, < 3)
30
+ simplecov-html (~> 0.10.0)
31
+ simplecov-html (0.10.2)
32
+
33
+ PLATFORMS
34
+ ruby
35
+
36
+ DEPENDENCIES
37
+ bundler (~> 2.0)
38
+ rake (~> 10.0)
39
+ redis (~> 4.1)
40
+ redis-claim!
41
+ rspec (~> 3.0)
42
+ simplecov (~> 0.16)
43
+
44
+ BUNDLED WITH
45
+ 2.0.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Volodymyr Mykhailyk
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/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # Redis::Claim
2
+
3
+ [![Build Status](https://travis-ci.org/matic-insurance/redis-claim.svg?branch=master)](https://travis-ci.org/matic-insurance/redis-claim)
4
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/489ff6577678a8d2a868/test_coverage)](https://codeclimate.com/github/matic-insurance/redis-claim/test_coverage)
5
+ [![Maintainability](https://api.codeclimate.com/v1/badges/489ff6577678a8d2a868/maintainability)](https://codeclimate.com/github/matic-insurance/redis-claim/maintainability)
6
+
7
+ Prevent conflicts of several apps using same Redis database or namespace.
8
+ Allows to check if db is already taken and claim ownership of the db.
9
+
10
+ Common use case for the gem is microservices that share single physical redis instance.
11
+ In such case it is common problem to make an error in redis url, or namespace.
12
+ When passing redis url to the app it is very to make mistake in redis database number.
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```ruby
19
+ gem 'redis-claim'
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ Assuming you have redis you want to claim
25
+ ```ruby
26
+ REDIS = Redis.new(url: "redis://redis-instance.aws.com:6379/12")
27
+ ```
28
+
29
+ On the start of your application execute following code.
30
+
31
+ ```ruby
32
+ Redis::Claim.verify do |config|
33
+ # Your redis instance you want to claim
34
+ config.redis = REDIS
35
+ # Application name to detect any other service that claimed db
36
+ config.app_name = 'my cool application'
37
+ end
38
+ ```
39
+
40
+ An `Redis::Claim::Error` will be raised in case of configuration or claim error
41
+
42
+ **NOTE** For rails you can add this code to custom initializer `redis_claim.rb` in `app/config/initializers`
43
+
44
+ ## Behaviour
45
+
46
+ Redis Claim has following execution steps
47
+
48
+ 1. Executed only once on start of the application.
49
+ 1. Sets lock key if it does not exist with `setnx` command
50
+ 1. Reads lock key if it exists
51
+ 1. Compare existing lock key is the same as `app_name`
52
+
53
+ **IMPORTANT** Redis claim will not detect db conflict if another application/service is not using it
54
+
55
+ ## Configuration options
56
+
57
+ When executing `Redis::Claim.verify` - passed block will receive configuraiton object with following properties:
58
+
59
+ | Parameter | Format | Required | Description |
60
+ |-------------------------|---------|----------|-----------------------------------------------------------------------------------------------------|
61
+ | redis | Object | true | Initialized Redis. Work with any object as long as it responds to `get` and `setnx` methods |
62
+ | app_name | String | true | Name of your application. Should be uniuq for every microservice. |
63
+ | ignore_connection_error | Boolean | false | Do not raise exception when cannot connect to Redis. Default: **false** |
64
+ | lock_key | String | false | Name of the redis key where lock identifier will be recorded. Default: **'redis-claim:app'** |
65
+
66
+ ## Development
67
+
68
+ 1. [Install Redis](https://redis.io//download)
69
+ 1. Run `bin/setup` to install dependencies
70
+ 1. Run tests `rspec`
71
+ 1. Add new test
72
+ 1. Add new code
73
+ 1. Go to step 3
74
+
75
+ ## Contributing
76
+
77
+ Bug reports and pull requests are welcome on GitHub at https://github.com/matic-insurance/redis-claim. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
78
+
79
+ ## License
80
+
81
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
82
+
83
+ ## Code of Conduct
84
+
85
+ Everyone interacting in the Redis::Claim project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/matic-insurance/redis-claim/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "redis/claim"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
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
@@ -0,0 +1,13 @@
1
+ require "redis/claim/version"
2
+ require "redis/claim/configuration"
3
+ require "redis/claim/actions"
4
+ require "redis/claim/errors"
5
+
6
+ class Redis
7
+ class Claim
8
+ def self.verify(&configurator)
9
+ config = Redis::Claim::Configuration.new.tap(&configurator)
10
+ Redis::Claim::Actions.claim_db!(config)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,65 @@
1
+ class Redis
2
+ class Claim
3
+ class Actions
4
+ extend Forwardable
5
+
6
+ attr_reader :config
7
+
8
+ delegate redis: :config, app_name: :config, lock_key: :config
9
+
10
+ def initialize(config)
11
+ @config = config
12
+ end
13
+
14
+ def self.claim_db!(config)
15
+ actions = self.new(config)
16
+ actions.verify_config!
17
+ actions.claim_db!
18
+ end
19
+
20
+ def verify_config!
21
+ check_config_values!
22
+ check_redis_functionality!
23
+
24
+ true
25
+ end
26
+
27
+ def claim_db!
28
+ current_lock = get_db_lock
29
+ if app_name == current_lock
30
+ true
31
+ else
32
+ raise Redis::Claim::DbAlreadyClaimed, "database already claimed by #{current_lock}"
33
+ end
34
+ end
35
+
36
+ protected
37
+
38
+ def check_config_values!
39
+ return raise_configuration_error('app name is missing') unless app_name
40
+ return raise_configuration_error('redis is missing') unless redis
41
+
42
+ true
43
+ end
44
+
45
+ def check_redis_functionality!
46
+ return raise_configuration_error('redis should respond to get') unless redis.respond_to?(:get)
47
+ return raise_configuration_error('redis should respond to setnx') unless redis.respond_to?(:setnx)
48
+
49
+ true
50
+ end
51
+
52
+ def get_db_lock
53
+ return app_name if redis.setnx(lock_key, app_name)
54
+ redis.get(lock_key)
55
+ rescue => e
56
+ return app_name if config.ignore_connection_error
57
+ raise e
58
+ end
59
+
60
+ def raise_configuration_error(message)
61
+ raise Redis::Claim::InvalidConfiguration, message
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,16 @@
1
+ class Redis
2
+ class Claim
3
+ class Configuration
4
+ LOCK_KEY_NAME = "redis-claim:app"
5
+ # Required attributes
6
+ attr_accessor :redis, :app_name
7
+ # Optional attributes
8
+ attr_accessor :ignore_connection_error, :lock_key
9
+
10
+ def initialize
11
+ self.lock_key = LOCK_KEY_NAME
12
+ self.ignore_connection_error = false
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,7 @@
1
+ class Redis
2
+ class Claim
3
+ class Error < StandardError; end
4
+ class InvalidConfiguration < Error; end
5
+ class DbAlreadyClaimed < Error; end
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ class Redis
2
+ class Claim
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,45 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "redis/claim/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "redis-claim"
8
+ spec.version = Redis::Claim::VERSION
9
+ spec.authors = ["Volodymyr Mykhailyk"]
10
+ spec.email = ["volodymyr.mykhailyk@gmail.com"]
11
+
12
+ spec.summary = %q{Gem to Claim ownership of Redis database/namespace}
13
+ spec.description = %q{Prevent conflicts of several apps using same redis database or namespace.
14
+ Allows to check if db is already taken and claim ownership of the db}
15
+ spec.homepage = "https://github.com/matic-insurance/redis-claim"
16
+ spec.license = "MIT"
17
+
18
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
19
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
20
+ if spec.respond_to?(:metadata)
21
+ spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
22
+
23
+ spec.metadata["homepage_uri"] = spec.homepage
24
+ spec.metadata["source_code_uri"] = "https://github.com/matic-insurance/redis-claim"
25
+ spec.metadata["changelog_uri"] = "https://github.com/matic-insurance/redis-claim/blob/master/CHANGELOG.md"
26
+ else
27
+ raise "RubyGems 2.0 or newer is required to protect against " \
28
+ "public gem pushes."
29
+ end
30
+
31
+ # Specify which files should be added to the gem when it is released.
32
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
33
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
34
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
35
+ end
36
+ spec.bindir = "exe"
37
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
38
+ spec.require_paths = ["lib"]
39
+
40
+ spec.add_development_dependency "bundler", "~> 2.0"
41
+ spec.add_development_dependency "rake", "~> 10.0"
42
+ spec.add_development_dependency "rspec", "~> 3.0"
43
+ spec.add_development_dependency "redis", "~> 4.1"
44
+ spec.add_development_dependency "simplecov", "~> 0.16"
45
+ end
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: redis-claim
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Volodymyr Mykhailyk
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-02-28 00:00:00.000000000 Z
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.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: redis
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: simplecov
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.16'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.16'
83
+ description: |-
84
+ Prevent conflicts of several apps using same redis database or namespace.
85
+ Allows to check if db is already taken and claim ownership of the db
86
+ email:
87
+ - volodymyr.mykhailyk@gmail.com
88
+ executables: []
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".simplecov"
95
+ - ".travis.yml"
96
+ - CHANGELOG.md
97
+ - CODE_OF_CONDUCT.md
98
+ - Gemfile
99
+ - Gemfile.lock
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - bin/console
104
+ - bin/setup
105
+ - lib/redis/claim.rb
106
+ - lib/redis/claim/actions.rb
107
+ - lib/redis/claim/configuration.rb
108
+ - lib/redis/claim/errors.rb
109
+ - lib/redis/claim/version.rb
110
+ - redis-claim.gemspec
111
+ homepage: https://github.com/matic-insurance/redis-claim
112
+ licenses:
113
+ - MIT
114
+ metadata:
115
+ allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
116
+ homepage_uri: https://github.com/matic-insurance/redis-claim
117
+ source_code_uri: https://github.com/matic-insurance/redis-claim
118
+ changelog_uri: https://github.com/matic-insurance/redis-claim/blob/master/CHANGELOG.md
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubygems_version: 3.0.2
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: Gem to Claim ownership of Redis database/namespace
138
+ test_files: []