lex-scheduler 0.1.2 → 0.1.3
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 +9 -0
- data/Gemfile.lock +128 -0
- data/bitbucket-pipelines.yml +9 -7
- data/docker_deploy.rb +13 -0
- data/lex-scheduler.gemspec +1 -1
- data/lib/legion/extensions/scheduler.rb +4 -0
- data/lib/legion/extensions/scheduler/version.rb +1 -1
- metadata +23 -8
- data/bin/console +0 -15
- 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: 04eb06cbdfc67f8e33dba90d2f491d067fd72356ebc84de0968fe0ca5dfb1d8b
|
4
|
+
data.tar.gz: 8943579fcb0855ae53c8f69a96d5647083a9022be81c06906534ce5d77220d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b51b8f0051ecde12d1767cb009a26f5b565dedfbb6ae02c7b073729037c428ead4f0266ad90adcfd46674470c43b6c2e6b6334b6804120ab3c1c31f0b39a85a2
|
7
|
+
data.tar.gz: 0c3dbf65e28030c66f107f97e78e6becab2f348d7a0b044106bc190f1561b508ad9000461f43ac76ac40bf7579d640caf6b34fd497409c35580339b9a32024f6
|
data/.rubocop.yml
CHANGED
data/Dockerfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
FROM legionio/legion:latest
|
2
|
+
LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
|
3
|
+
|
4
|
+
RUN mkdir /etc/legionio
|
5
|
+
RUN apk update && apk add build-base tzdata postgresql-dev mysql-client mariadb-dev tzdata gcc git
|
6
|
+
|
7
|
+
COPY . ./
|
8
|
+
RUN gem install lex-scheduler legion-data --no-document --no-prerelease
|
9
|
+
CMD ruby --jit $(which legionio)
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
lex-scheduler (0.1.2)
|
5
|
+
fugit (>= 1.3.9)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
amq-protocol (2.3.2)
|
11
|
+
ast (2.4.2)
|
12
|
+
aws-eventstream (1.1.0)
|
13
|
+
aws-sigv4 (1.2.2)
|
14
|
+
aws-eventstream (~> 1, >= 1.0.2)
|
15
|
+
bunny (2.17.0)
|
16
|
+
amq-protocol (~> 2.3, >= 2.3.1)
|
17
|
+
concurrent-ruby (1.1.8)
|
18
|
+
concurrent-ruby-ext (1.1.8)
|
19
|
+
concurrent-ruby (= 1.1.8)
|
20
|
+
connection_pool (2.2.3)
|
21
|
+
daemons (1.3.1)
|
22
|
+
dalli (2.7.11)
|
23
|
+
diff-lcs (1.4.4)
|
24
|
+
docile (1.3.5)
|
25
|
+
et-orbi (1.2.4)
|
26
|
+
tzinfo
|
27
|
+
fugit (1.4.2)
|
28
|
+
et-orbi (~> 1.1, >= 1.1.8)
|
29
|
+
raabro (~> 1.4)
|
30
|
+
json_pure (2.5.1)
|
31
|
+
legion-cache (1.1.1)
|
32
|
+
connection_pool (>= 2.2.3)
|
33
|
+
dalli (>= 2.7)
|
34
|
+
redis (>= 4.2)
|
35
|
+
legion-crypt (0.3.0)
|
36
|
+
vault (>= 0.15.0)
|
37
|
+
legion-exceptions (1.1.5)
|
38
|
+
legion-json (1.1.4)
|
39
|
+
json_pure
|
40
|
+
legion-exceptions (>= 1.1.5)
|
41
|
+
multi_json
|
42
|
+
legion-logging (1.1.4)
|
43
|
+
rainbow (~> 3)
|
44
|
+
legion-settings (1.1.3)
|
45
|
+
legion-json
|
46
|
+
legion-logging
|
47
|
+
legion-transport (1.1.9)
|
48
|
+
bunny (>= 2.17.0)
|
49
|
+
concurrent-ruby (>= 1.1.7)
|
50
|
+
legion-json
|
51
|
+
legionio (0.4.3)
|
52
|
+
concurrent-ruby (>= 1.1.7)
|
53
|
+
concurrent-ruby-ext (>= 1.1.7)
|
54
|
+
daemons (>= 1.3.1)
|
55
|
+
legion-cache
|
56
|
+
legion-crypt (>= 0.2.0)
|
57
|
+
legion-exceptions
|
58
|
+
legion-json
|
59
|
+
legion-logging
|
60
|
+
legion-settings
|
61
|
+
legion-transport (>= 1.1.9)
|
62
|
+
lex-node
|
63
|
+
oj (>= 3.10)
|
64
|
+
thor (>= 1)
|
65
|
+
lex-node (0.1.7)
|
66
|
+
multi_json (1.15.0)
|
67
|
+
oj (3.11.2)
|
68
|
+
parallel (1.20.1)
|
69
|
+
parser (3.0.0.0)
|
70
|
+
ast (~> 2.4.1)
|
71
|
+
raabro (1.4.0)
|
72
|
+
rainbow (3.0.0)
|
73
|
+
rake (13.0.3)
|
74
|
+
redis (4.2.5)
|
75
|
+
regexp_parser (2.1.1)
|
76
|
+
rexml (3.2.4)
|
77
|
+
rspec (3.10.0)
|
78
|
+
rspec-core (~> 3.10.0)
|
79
|
+
rspec-expectations (~> 3.10.0)
|
80
|
+
rspec-mocks (~> 3.10.0)
|
81
|
+
rspec-core (3.10.1)
|
82
|
+
rspec-support (~> 3.10.0)
|
83
|
+
rspec-expectations (3.10.1)
|
84
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
85
|
+
rspec-support (~> 3.10.0)
|
86
|
+
rspec-mocks (3.10.2)
|
87
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
88
|
+
rspec-support (~> 3.10.0)
|
89
|
+
rspec-support (3.10.2)
|
90
|
+
rubocop (1.11.0)
|
91
|
+
parallel (~> 1.10)
|
92
|
+
parser (>= 3.0.0.0)
|
93
|
+
rainbow (>= 2.2.2, < 4.0)
|
94
|
+
regexp_parser (>= 1.8, < 3.0)
|
95
|
+
rexml
|
96
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
97
|
+
ruby-progressbar (~> 1.7)
|
98
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
99
|
+
rubocop-ast (1.4.1)
|
100
|
+
parser (>= 2.7.1.5)
|
101
|
+
ruby-progressbar (1.11.0)
|
102
|
+
simplecov (0.21.2)
|
103
|
+
docile (~> 1.1)
|
104
|
+
simplecov-html (~> 0.11)
|
105
|
+
simplecov_json_formatter (~> 0.1)
|
106
|
+
simplecov-html (0.12.3)
|
107
|
+
simplecov_json_formatter (0.1.2)
|
108
|
+
thor (1.1.0)
|
109
|
+
tzinfo (2.0.4)
|
110
|
+
concurrent-ruby (~> 1.0)
|
111
|
+
unicode-display_width (2.0.0)
|
112
|
+
vault (0.15.0)
|
113
|
+
aws-sigv4
|
114
|
+
|
115
|
+
PLATFORMS
|
116
|
+
ruby
|
117
|
+
|
118
|
+
DEPENDENCIES
|
119
|
+
bundler (>= 2)
|
120
|
+
legionio
|
121
|
+
lex-scheduler!
|
122
|
+
rake
|
123
|
+
rspec
|
124
|
+
rubocop
|
125
|
+
simplecov
|
126
|
+
|
127
|
+
BUNDLED WITH
|
128
|
+
2.1.4
|
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 = 'scheduler'
|
4
|
+
require "./lib/legion/extensions/#{name}/version"
|
5
|
+
version = Legion::Extensions::Scheduler::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'
|
data/lex-scheduler.gemspec
CHANGED
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
25
|
end
|
26
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
27
26
|
spec.require_paths = ['lib']
|
28
27
|
|
29
28
|
spec.add_dependency 'fugit', '>= 1.3.9'
|
30
29
|
|
30
|
+
spec.add_development_dependency 'bundler', '>= 2'
|
31
31
|
spec.add_development_dependency 'legionio'
|
32
32
|
spec.add_development_dependency 'rake'
|
33
33
|
spec.add_development_dependency 'rspec'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fugit
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.3.9
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: legionio
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -105,13 +119,14 @@ files:
|
|
105
119
|
- ".rspec"
|
106
120
|
- ".rubocop.yml"
|
107
121
|
- CODE_OF_CONDUCT.md
|
122
|
+
- Dockerfile
|
108
123
|
- Gemfile
|
124
|
+
- Gemfile.lock
|
109
125
|
- LICENSE.txt
|
110
126
|
- README.md
|
111
127
|
- Rakefile
|
112
|
-
- bin/console
|
113
|
-
- bin/setup
|
114
128
|
- bitbucket-pipelines.yml
|
129
|
+
- docker_deploy.rb
|
115
130
|
- lex-scheduler.gemspec
|
116
131
|
- lib/legion/extensions/scheduler.rb
|
117
132
|
- lib/legion/extensions/scheduler/actors/run_scheduler.rb
|
@@ -138,7 +153,7 @@ metadata:
|
|
138
153
|
documentation_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/612139049
|
139
154
|
changelog_uri: https://legionio.atlassian.net/wiki/spaces/LEX/pages/612171789
|
140
155
|
bug_tracker_uri: https://bitbucket.org/legion-io/lex-scheduler/issues
|
141
|
-
post_install_message:
|
156
|
+
post_install_message:
|
142
157
|
rdoc_options: []
|
143
158
|
require_paths:
|
144
159
|
- lib
|
@@ -153,8 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
168
|
- !ruby/object:Gem::Version
|
154
169
|
version: '0'
|
155
170
|
requirements: []
|
156
|
-
rubygems_version: 3.1.
|
157
|
-
signing_key:
|
171
|
+
rubygems_version: 3.1.4
|
172
|
+
signing_key:
|
158
173
|
specification_version: 4
|
159
174
|
summary: LEX::Scheduler
|
160
175
|
test_files: []
|
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'legion/extensions/scheduler'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|