lex-health 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/Dockerfile +10 -0
- data/Gemfile.lock +33 -33
- data/bitbucket-pipelines.yml +9 -7
- data/docker_deploy.rb +13 -0
- data/lib/legion/extensions/health.rb +4 -0
- data/lib/legion/extensions/health/version.rb +1 -1
- metadata +8 -8
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0666c974d9ce06c57ee9b600f7d65878327f1d5e806e6d27a1856167f7f9610
|
4
|
+
data.tar.gz: 85b0476bed965b4c9aea6afa245fe054cb044cfef396ca960c2c66eb9dc363c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2800dd3c7d31d133f11f0f3cad9a897ec63ad01016b23d195287fbf5965df7cebd203193de878cb7264293b557a202a63bec7e78f4f7ce0f9200a336f740d749
|
7
|
+
data.tar.gz: af82fae1cdc2d55dab73f7356f3e783e2e0352720175f2a6c50cff053092f34a4ef47f6fc34f318cf684aeb615097044c747a68342f6888f17f59a64a19b1ff5
|
data/.rubocop.yml
CHANGED
data/Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
FROM ruby:2.7-alpine
|
2
|
+
LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
|
3
|
+
|
4
|
+
RUN mkdir /etc/legionio
|
5
|
+
RUN apk update && apk add build-base postgresql-dev mysql-client mariadb-dev tzdata gcc git
|
6
|
+
|
7
|
+
COPY . ./
|
8
|
+
RUN gem install legionio legion-data mysql2 tzinfo-data tzinfo --no-document --no-prerelease
|
9
|
+
RUN gem install lex-health --no-document --no-prerelease
|
10
|
+
CMD legionio
|
data/Gemfile.lock
CHANGED
@@ -1,58 +1,58 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lex-health (0.1.
|
4
|
+
lex-health (0.1.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
9
|
ast (2.4.1)
|
10
|
-
codecov (0.2.
|
11
|
-
|
12
|
-
simplecov
|
10
|
+
codecov (0.2.15)
|
11
|
+
simplecov (>= 0.15, < 0.21)
|
13
12
|
diff-lcs (1.4.4)
|
14
|
-
docile (1.3.
|
15
|
-
|
16
|
-
|
17
|
-
parser (2.7.2.0)
|
13
|
+
docile (1.3.5)
|
14
|
+
parallel (1.20.1)
|
15
|
+
parser (3.0.0.0)
|
18
16
|
ast (~> 2.4.1)
|
19
17
|
rainbow (3.0.0)
|
20
|
-
rake (13.0.
|
21
|
-
regexp_parser (
|
18
|
+
rake (13.0.3)
|
19
|
+
regexp_parser (2.0.3)
|
22
20
|
rexml (3.2.4)
|
23
|
-
rspec (3.
|
24
|
-
rspec-core (~> 3.
|
25
|
-
rspec-expectations (~> 3.
|
26
|
-
rspec-mocks (~> 3.
|
27
|
-
rspec-core (3.
|
28
|
-
rspec-support (~> 3.
|
29
|
-
rspec-expectations (3.
|
21
|
+
rspec (3.10.0)
|
22
|
+
rspec-core (~> 3.10.0)
|
23
|
+
rspec-expectations (~> 3.10.0)
|
24
|
+
rspec-mocks (~> 3.10.0)
|
25
|
+
rspec-core (3.10.1)
|
26
|
+
rspec-support (~> 3.10.0)
|
27
|
+
rspec-expectations (3.10.1)
|
30
28
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-mocks (3.
|
29
|
+
rspec-support (~> 3.10.0)
|
30
|
+
rspec-mocks (3.10.1)
|
33
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-support (3.
|
36
|
-
rubocop (
|
32
|
+
rspec-support (~> 3.10.0)
|
33
|
+
rspec-support (3.10.1)
|
34
|
+
rubocop (1.8.1)
|
37
35
|
parallel (~> 1.10)
|
38
|
-
parser (>=
|
36
|
+
parser (>= 3.0.0.0)
|
39
37
|
rainbow (>= 2.2.2, < 4.0)
|
40
|
-
regexp_parser (>= 1.8)
|
38
|
+
regexp_parser (>= 1.8, < 3.0)
|
41
39
|
rexml
|
42
|
-
rubocop-ast (>=
|
40
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
43
41
|
ruby-progressbar (~> 1.7)
|
44
|
-
unicode-display_width (>= 1.4.0, <
|
45
|
-
rubocop-ast (1.
|
42
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
43
|
+
rubocop-ast (1.4.0)
|
46
44
|
parser (>= 2.7.1.5)
|
47
|
-
rubocop-rspec (1.
|
48
|
-
rubocop (~> 0
|
49
|
-
rubocop-ast (>=
|
50
|
-
ruby-progressbar (1.
|
51
|
-
simplecov (0.
|
45
|
+
rubocop-rspec (2.1.0)
|
46
|
+
rubocop (~> 1.0)
|
47
|
+
rubocop-ast (>= 1.1.0)
|
48
|
+
ruby-progressbar (1.11.0)
|
49
|
+
simplecov (0.20.0)
|
52
50
|
docile (~> 1.1)
|
53
51
|
simplecov-html (~> 0.11)
|
52
|
+
simplecov_json_formatter (~> 0.1)
|
54
53
|
simplecov-html (0.12.3)
|
55
|
-
|
54
|
+
simplecov_json_formatter (0.1.2)
|
55
|
+
unicode-display_width (2.0.0)
|
56
56
|
|
57
57
|
PLATFORMS
|
58
58
|
ruby
|
data/bitbucket-pipelines.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
image: ruby:2.7
|
1
|
+
image: ruby:2.7
|
2
2
|
|
3
3
|
pipelines:
|
4
4
|
tags:
|
@@ -7,11 +7,13 @@ pipelines:
|
|
7
7
|
name: Push to RubyGems
|
8
8
|
deployment: RubyGems
|
9
9
|
script:
|
10
|
-
- gem install
|
11
|
-
-
|
12
|
-
- rake build
|
13
|
-
- mkdir .gem
|
14
|
-
- (umask 077 ; echo $gem_creds | base64 --decode > .gem/credentials)
|
10
|
+
- gem install gem-release
|
11
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
15
12
|
- gem release
|
16
13
|
artifacts:
|
17
|
-
- pkg/**
|
14
|
+
- pkg/**
|
15
|
+
- step:
|
16
|
+
name: Push to Docker
|
17
|
+
deployment: Docker
|
18
|
+
script:
|
19
|
+
- './docker_deploy.rb'
|
data/docker_deploy.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
name = 'health'
|
4
|
+
require "./lib/legion/extensions/#{name}/version"
|
5
|
+
version = Legion::Extensions::Health::VERSION
|
6
|
+
|
7
|
+
puts "Building docker image for Legion v#{version}"
|
8
|
+
system("docker build --tag legionio/lex-#{name}:v#{version} .")
|
9
|
+
puts 'Pushing to hub.docker.com'
|
10
|
+
system("docker push legionio/lex-#{name}:v#{version}")
|
11
|
+
system("docker tag legionio/lex-#{name}:v#{version} legionio/lex-#{name}:latest")
|
12
|
+
system("docker push legionio/lex-#{name}:latest")
|
13
|
+
puts 'completed'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miverson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -105,14 +105,14 @@ files:
|
|
105
105
|
- ".gitignore"
|
106
106
|
- ".rspec"
|
107
107
|
- ".rubocop.yml"
|
108
|
+
- Dockerfile
|
108
109
|
- Gemfile
|
109
110
|
- Gemfile.lock
|
110
111
|
- LICENSE.txt
|
111
112
|
- README.md
|
112
113
|
- Rakefile
|
113
|
-
- bin/console
|
114
|
-
- bin/setup
|
115
114
|
- bitbucket-pipelines.yml
|
115
|
+
- docker_deploy.rb
|
116
116
|
- lex-health.gemspec
|
117
117
|
- lib/legion/extensions/health.rb
|
118
118
|
- lib/legion/extensions/health/actors/health.rb
|
@@ -132,7 +132,7 @@ metadata:
|
|
132
132
|
changelog_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/612270081/
|
133
133
|
documentation_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/612171777/LEX+Health
|
134
134
|
bug_tracker_uri: https://bitbucket.org/legion-io/lex-health/issues
|
135
|
-
post_install_message:
|
135
|
+
post_install_message:
|
136
136
|
rdoc_options: []
|
137
137
|
require_paths:
|
138
138
|
- lib
|
@@ -147,8 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
147
|
- !ruby/object:Gem::Version
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
|
-
rubygems_version: 3.1.
|
151
|
-
signing_key:
|
150
|
+
rubygems_version: 3.1.4
|
151
|
+
signing_key:
|
152
152
|
specification_version: 4
|
153
153
|
summary: Legion::Extensions::Health
|
154
154
|
test_files: []
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
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__)
|