lex-health 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.circleci/config.yml +61 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.rubocop.yml +26 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +77 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/legion-extensions-health.gemspec +36 -0
- data/lib/legion/extensions/health.rb +10 -0
- data/lib/legion/extensions/health/actors/health.rb +9 -0
- data/lib/legion/extensions/health/actors/watchdog.rb +21 -0
- data/lib/legion/extensions/health/runners/health.rb +38 -0
- data/lib/legion/extensions/health/runners/watchdog.rb +26 -0
- data/lib/legion/extensions/health/transport/exchanges/node.rb +10 -0
- data/lib/legion/extensions/health/transport/messages/watchdog.rb +23 -0
- data/lib/legion/extensions/health/transport/queues/health.rb +15 -0
- data/lib/legion/extensions/health/version.rb +7 -0
- metadata +179 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4ce775857c216326a67307d19fbbdbd7b728b3f528041f60026310d3f1b57f59
|
4
|
+
data.tar.gz: 89a62746f34936499b4d4a4fbfa4be4db00e3eba5f037cbe1356b48007854ab7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 418817d7bed99e8dd710600a98bdde35ee5d19d494ed7c77fa561f685b6d4f9bf5dbd4be77c3b5b5bc61b41bf6bb819a8e167dda3ee1efca741e2fcd330ee434
|
7
|
+
data.tar.gz: de7d737ec53ca7ede4a0eb0530e23719fc029b32669a7d7c1d477f8ca8305ad4b79631c01d1e7c9c10635e035a1eec9fdba86dd5d346794849c89c48ceba7f5e
|
@@ -0,0 +1,61 @@
|
|
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/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
Layout/LineLength:
|
2
|
+
Max: 120
|
3
|
+
Metrics/MethodLength:
|
4
|
+
Max: 30
|
5
|
+
Metrics/ClassLength:
|
6
|
+
Max: 1500
|
7
|
+
Metrics/BlockLength:
|
8
|
+
Max: 50
|
9
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
10
|
+
EnforcedStyle: space
|
11
|
+
Style/SymbolArray:
|
12
|
+
Enabled: true
|
13
|
+
Layout/HashAlignment:
|
14
|
+
EnforcedHashRocketStyle: table
|
15
|
+
EnforcedColonStyle: table
|
16
|
+
Style/Documentation:
|
17
|
+
Enabled: false
|
18
|
+
AllCops:
|
19
|
+
TargetRubyVersion: 2.5
|
20
|
+
NewCops: enable
|
21
|
+
Style/FrozenStringLiteralComment:
|
22
|
+
Enabled: false
|
23
|
+
Naming/FileName:
|
24
|
+
Enabled: false
|
25
|
+
Style/ClassAndModuleChildren:
|
26
|
+
Enabled: false
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
lex-health (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.1)
|
10
|
+
codecov (0.2.2)
|
11
|
+
colorize
|
12
|
+
json
|
13
|
+
simplecov
|
14
|
+
colorize (0.8.1)
|
15
|
+
diff-lcs (1.4.4)
|
16
|
+
docile (1.3.2)
|
17
|
+
json (2.3.1)
|
18
|
+
parallel (1.19.2)
|
19
|
+
parser (2.7.1.4)
|
20
|
+
ast (~> 2.4.1)
|
21
|
+
rainbow (3.0.0)
|
22
|
+
rake (13.0.1)
|
23
|
+
regexp_parser (1.7.1)
|
24
|
+
rexml (3.2.4)
|
25
|
+
rspec (3.9.0)
|
26
|
+
rspec-core (~> 3.9.0)
|
27
|
+
rspec-expectations (~> 3.9.0)
|
28
|
+
rspec-mocks (~> 3.9.0)
|
29
|
+
rspec-core (3.9.2)
|
30
|
+
rspec-support (~> 3.9.3)
|
31
|
+
rspec-expectations (3.9.2)
|
32
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
+
rspec-support (~> 3.9.0)
|
34
|
+
rspec-mocks (3.9.1)
|
35
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
36
|
+
rspec-support (~> 3.9.0)
|
37
|
+
rspec-support (3.9.3)
|
38
|
+
rubocop (0.88.0)
|
39
|
+
parallel (~> 1.10)
|
40
|
+
parser (>= 2.7.1.1)
|
41
|
+
rainbow (>= 2.2.2, < 4.0)
|
42
|
+
regexp_parser (>= 1.7)
|
43
|
+
rexml
|
44
|
+
rubocop-ast (>= 0.1.0, < 1.0)
|
45
|
+
ruby-progressbar (~> 1.7)
|
46
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
47
|
+
rubocop-ast (0.2.0)
|
48
|
+
parser (>= 2.7.0.1)
|
49
|
+
rubocop-md (0.4.0)
|
50
|
+
rubocop (~> 0.60)
|
51
|
+
rubocop-performance (1.7.1)
|
52
|
+
rubocop (>= 0.82.0)
|
53
|
+
rubocop-rspec (1.42.0)
|
54
|
+
rubocop (>= 0.87.0)
|
55
|
+
ruby-progressbar (1.10.1)
|
56
|
+
simplecov (0.18.5)
|
57
|
+
docile (~> 1.1)
|
58
|
+
simplecov-html (~> 0.11)
|
59
|
+
simplecov-html (0.12.2)
|
60
|
+
unicode-display_width (1.7.0)
|
61
|
+
|
62
|
+
PLATFORMS
|
63
|
+
ruby
|
64
|
+
|
65
|
+
DEPENDENCIES
|
66
|
+
bundler
|
67
|
+
codecov
|
68
|
+
lex-health!
|
69
|
+
rake
|
70
|
+
rspec
|
71
|
+
rubocop
|
72
|
+
rubocop-md
|
73
|
+
rubocop-performance
|
74
|
+
rubocop-rspec
|
75
|
+
|
76
|
+
BUNDLED WITH
|
77
|
+
2.1.4
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 miverso2
|
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,39 @@
|
|
1
|
+
# Legion::Extensions::Health
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/legion/extensions/health`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'legion-extensions-health'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install legion-extensions-health
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/legion-extensions-health.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'legion/extensions/health'
|
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,36 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'legion/extensions/health/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'lex-health'
|
7
|
+
spec.version = Legion::Extensions::Health::VERSION
|
8
|
+
spec.authors = ['Miverson']
|
9
|
+
spec.email = ['matthewdiverson@gmail.com']
|
10
|
+
|
11
|
+
spec.summary = 'Legion::Extensions::Health'
|
12
|
+
spec.description = 'Used to read heartbeats and update the db'
|
13
|
+
spec.homepage = 'https://bitbucket.org/legion-io/lex-health'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
17
|
+
spec.metadata['source_code_uri'] = 'https://bitbucket.org/legion-io/lex-heartbeat'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://bitbucket.org/legion-io/lex-heartbeat/CHANGELOG.md'
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
23
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
|
+
end
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
+
spec.require_paths = ['lib']
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler'
|
29
|
+
spec.add_development_dependency 'codecov'
|
30
|
+
spec.add_development_dependency 'rake'
|
31
|
+
spec.add_development_dependency 'rspec'
|
32
|
+
spec.add_development_dependency 'rubocop'
|
33
|
+
spec.add_development_dependency 'rubocop-md'
|
34
|
+
spec.add_development_dependency 'rubocop-performance'
|
35
|
+
spec.add_development_dependency 'rubocop-rspec'
|
36
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'legion/extensions/actors/every'
|
2
|
+
|
3
|
+
module Legion::Extensions::Health::Actor
|
4
|
+
class Watchdog < Legion::Extensions::Actors::Every
|
5
|
+
def runner_function
|
6
|
+
'expire'
|
7
|
+
end
|
8
|
+
|
9
|
+
def time
|
10
|
+
5
|
11
|
+
end
|
12
|
+
|
13
|
+
def run_now?
|
14
|
+
true
|
15
|
+
end
|
16
|
+
|
17
|
+
def use_runner?
|
18
|
+
false
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Legion::Extensions::Health
|
2
|
+
module Runners
|
3
|
+
module Health
|
4
|
+
include Legion::Extensions::Helpers::Lex
|
5
|
+
|
6
|
+
def self.update(hostname:, **opts)
|
7
|
+
item = Legion::Data::Model::Node.where(name: hostname).first
|
8
|
+
|
9
|
+
return { success: insert(hostname: hostname, **opts), hostname: hostname, **opts } if item.nil?
|
10
|
+
|
11
|
+
if opts.key?(:timestamp) && !item.values[:updated].nil? && item.values[:updated] > Time.parse(opts[:timestamp])
|
12
|
+
return { success: false,
|
13
|
+
reason: 'entry already updated',
|
14
|
+
hostname: hostname,
|
15
|
+
db_updated: item.values[:updated],
|
16
|
+
**opts }
|
17
|
+
end
|
18
|
+
|
19
|
+
{ success: item.update(active: 1, status: opts[:status], name: hostname), hostname: hostname, **opts }
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.insert(hostname:, status: 'unknown', **opts)
|
23
|
+
insert = { active: 1, status: status, name: hostname }
|
24
|
+
insert[:datacenter_id] = opts[:datacenter_id] if opts.key? :datacenter_id
|
25
|
+
insert[:environment_id] = opts[:environment_id] if opts.key? :environment_id
|
26
|
+
insert[:active] = opts[:active] if opts.key? :active
|
27
|
+
|
28
|
+
{ success: true, hostname: hostname, node_id: Legion::Data::Model::Node.insert(insert), **insert }
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.delete(node_id:, **_opts)
|
32
|
+
# Legion::Data::Model::Node.where(payload[:key].to_sym == payload[:value]).delete
|
33
|
+
Legion::Data::Model::Node[node_id].delete
|
34
|
+
{ success: true, node_id: node_id }
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'legion/transport/messages/node_health'
|
2
|
+
|
3
|
+
module Legion::Extensions::Health
|
4
|
+
module Runners
|
5
|
+
module Watchdog
|
6
|
+
include Legion::Extensions::Helpers::Lex
|
7
|
+
|
8
|
+
def expire(**_opts)
|
9
|
+
nodes = []
|
10
|
+
Legion::Data::Model::Node
|
11
|
+
.where(status: 'healthy')
|
12
|
+
.where(Sequel.lit('updated <= DATE_SUB(SYSDATE(), INTERVAL 60 SECOND)'))
|
13
|
+
.where(active: true)
|
14
|
+
.each do |node|
|
15
|
+
Legion::Transport::Messages::NodeHealth.new(status: 'unknown',
|
16
|
+
node_id: node.values[:id],
|
17
|
+
hostname: node.values[:name],
|
18
|
+
timestamp: node.values[:updated]).publish
|
19
|
+
nodes.push(node.values[:id])
|
20
|
+
end
|
21
|
+
log.debug("count: #{nodes.count}")
|
22
|
+
{ success: true, count: nodes.count, nodes: nodes }
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Legion::Extensions::Health::Transport::Messages
|
2
|
+
class Watchdog < Legion::Transport::Message
|
3
|
+
def routing_key
|
4
|
+
'health'
|
5
|
+
end
|
6
|
+
|
7
|
+
def expiration
|
8
|
+
5000
|
9
|
+
end
|
10
|
+
|
11
|
+
# def message
|
12
|
+
# hash = { hostname: Socket.gethostname, pid: Process.pid, timestamp: Time.now }
|
13
|
+
# hash[:status] = @options[:status].nil? ? 'healthy' : @options[:status]
|
14
|
+
# hash
|
15
|
+
# end
|
16
|
+
|
17
|
+
def validate
|
18
|
+
raise 'status should be a string' unless @options[:status].is_a?(String) || @options[:status].nil?
|
19
|
+
|
20
|
+
@valid = true
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Legion::Extensions::Health
|
2
|
+
module Transport
|
3
|
+
module Queues
|
4
|
+
class Health < Legion::Transport::Queue
|
5
|
+
def queue_name
|
6
|
+
'node.health'
|
7
|
+
end
|
8
|
+
|
9
|
+
def queue_options
|
10
|
+
{ arguments: { 'x-single-active-consumer': true, 'x-dead-letter-exchange': 'node.dlx' }, auto_delete: false }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,179 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: lex-health
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Miverson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-07-21 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: '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: codecov
|
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: rake
|
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: rspec
|
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: rubocop
|
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: rubocop-md
|
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-performance
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec
|
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
|
+
description: Used to read heartbeats and update the db
|
126
|
+
email:
|
127
|
+
- matthewdiverson@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".circleci/config.yml"
|
133
|
+
- ".gitignore"
|
134
|
+
- ".rspec"
|
135
|
+
- ".rubocop.yml"
|
136
|
+
- Gemfile
|
137
|
+
- Gemfile.lock
|
138
|
+
- LICENSE.txt
|
139
|
+
- README.md
|
140
|
+
- Rakefile
|
141
|
+
- bin/console
|
142
|
+
- bin/setup
|
143
|
+
- legion-extensions-health.gemspec
|
144
|
+
- lib/legion/extensions/health.rb
|
145
|
+
- lib/legion/extensions/health/actors/health.rb
|
146
|
+
- lib/legion/extensions/health/actors/watchdog.rb
|
147
|
+
- lib/legion/extensions/health/runners/health.rb
|
148
|
+
- lib/legion/extensions/health/runners/watchdog.rb
|
149
|
+
- lib/legion/extensions/health/transport/exchanges/node.rb
|
150
|
+
- lib/legion/extensions/health/transport/messages/watchdog.rb
|
151
|
+
- lib/legion/extensions/health/transport/queues/health.rb
|
152
|
+
- lib/legion/extensions/health/version.rb
|
153
|
+
homepage: https://bitbucket.org/legion-io/lex-health
|
154
|
+
licenses:
|
155
|
+
- MIT
|
156
|
+
metadata:
|
157
|
+
homepage_uri: https://bitbucket.org/legion-io/lex-health
|
158
|
+
source_code_uri: https://bitbucket.org/legion-io/lex-heartbeat
|
159
|
+
changelog_uri: https://bitbucket.org/legion-io/lex-heartbeat/CHANGELOG.md
|
160
|
+
post_install_message:
|
161
|
+
rdoc_options: []
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: '0'
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubygems_version: 3.1.2
|
176
|
+
signing_key:
|
177
|
+
specification_version: 4
|
178
|
+
summary: Legion::Extensions::Health
|
179
|
+
test_files: []
|