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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a2948d5ad7f73fe45466f8e2394730883aa6516a380560416aae0ded89b7d12
4
- data.tar.gz: 0b12a07f49cd1f17e7b09e10ad5dece1e677572cf948c17b62b575084d93d5ab
3
+ metadata.gz: e0666c974d9ce06c57ee9b600f7d65878327f1d5e806e6d27a1856167f7f9610
4
+ data.tar.gz: 85b0476bed965b4c9aea6afa245fe054cb044cfef396ca960c2c66eb9dc363c9
5
5
  SHA512:
6
- metadata.gz: 65171ec77699e35c322cb8f372118bd92e908ceb86b61c8a6337cbd083a33973ad81aa5cbdeea86529b3bc63a3e664c90fd024b2b0dcf3b30b7acfedf2719b98
7
- data.tar.gz: 7dd6b733d0f7101db17d11e23b15c0be51910505e10cb074c01d24a933098a012553d6e4f743bfe2d5268bea90e2c663ef5ee41fa92c9f1136bae619d610e72f
6
+ metadata.gz: 2800dd3c7d31d133f11f0f3cad9a897ec63ad01016b23d195287fbf5965df7cebd203193de878cb7264293b557a202a63bec7e78f4f7ce0f9200a336f740d749
7
+ data.tar.gz: af82fae1cdc2d55dab73f7356f3e783e2e0352720175f2a6c50cff053092f34a4ef47f6fc34f318cf684aeb615097044c747a68342f6888f17f59a64a19b1ff5
@@ -20,6 +20,7 @@ Style/Documentation:
20
20
  AllCops:
21
21
  TargetRubyVersion: 2.5
22
22
  NewCops: enable
23
+ SuggestExtensions: false
23
24
  Style/FrozenStringLiteralComment:
24
25
  Enabled: false
25
26
  Naming/FileName:
@@ -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
@@ -1,58 +1,58 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lex-health (0.1.3)
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.12)
11
- json
12
- simplecov
10
+ codecov (0.2.15)
11
+ simplecov (>= 0.15, < 0.21)
13
12
  diff-lcs (1.4.4)
14
- docile (1.3.2)
15
- json (2.3.1)
16
- parallel (1.19.2)
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.1)
21
- regexp_parser (1.8.2)
18
+ rake (13.0.3)
19
+ regexp_parser (2.0.3)
22
20
  rexml (3.2.4)
23
- rspec (3.9.0)
24
- rspec-core (~> 3.9.0)
25
- rspec-expectations (~> 3.9.0)
26
- rspec-mocks (~> 3.9.0)
27
- rspec-core (3.9.3)
28
- rspec-support (~> 3.9.3)
29
- rspec-expectations (3.9.2)
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.9.0)
32
- rspec-mocks (3.9.1)
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.9.0)
35
- rspec-support (3.9.3)
36
- rubocop (0.93.1)
32
+ rspec-support (~> 3.10.0)
33
+ rspec-support (3.10.1)
34
+ rubocop (1.8.1)
37
35
  parallel (~> 1.10)
38
- parser (>= 2.7.1.5)
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 (>= 0.6.0)
40
+ rubocop-ast (>= 1.2.0, < 2.0)
43
41
  ruby-progressbar (~> 1.7)
44
- unicode-display_width (>= 1.4.0, < 2.0)
45
- rubocop-ast (1.0.0)
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.44.1)
48
- rubocop (~> 0.87)
49
- rubocop-ast (>= 0.7.1)
50
- ruby-progressbar (1.10.1)
51
- simplecov (0.19.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
- unicode-display_width (1.7.0)
54
+ simplecov_json_formatter (0.1.2)
55
+ unicode-display_width (2.0.0)
56
56
 
57
57
  PLATFORMS
58
58
  ruby
@@ -1,4 +1,4 @@
1
- image: ruby:2.7.0
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 bundler gem-release rake rspec
11
- - bundle install
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'
@@ -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'
@@ -8,6 +8,10 @@ module Legion
8
8
  def self.data_required?
9
9
  true
10
10
  end
11
+
12
+ def data_required?
13
+ true
14
+ end
11
15
  end
12
16
  end
13
17
  end
@@ -1,7 +1,7 @@
1
1
  module Legion
2
2
  module Extensions
3
3
  module Health
4
- VERSION = '0.1.3'.freeze
4
+ VERSION = '0.1.4'.freeze
5
5
  end
6
6
  end
7
7
  end
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.3
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: 2020-10-23 00:00:00.000000000 Z
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.2
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: []
@@ -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__)
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