legion-data 0.2.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rubocop-analysis.yml +28 -0
- data/.github/workflows/sourcehawk-scan.yml +20 -0
- data/.gitignore +4 -2
- data/.rubocop.yml +6 -14
- data/CHANGELOG.md +2 -9
- data/CODE_OF_CONDUCT.md +75 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +7 -1
- data/INDIVIDUAL_CONTRIBUTOR_LICENSE.md +30 -0
- data/LICENSE +201 -0
- data/NOTICE.txt +9 -0
- data/README.md +60 -23
- data/SECURITY.md +9 -0
- data/attribution.txt +1 -0
- data/legion-data.gemspec +22 -38
- data/lib/legion/data.rb +18 -21
- data/lib/legion/data/connection.rb +29 -26
- data/lib/legion/data/migration.rb +3 -3
- data/lib/legion/data/migrations/001_add_schema_columns.rb +1 -1
- data/lib/legion/data/migrations/002_add_nodes.rb +20 -0
- data/lib/legion/data/migrations/003_add_settings.rb +18 -0
- data/lib/legion/data/migrations/004_add_extensions.rb +25 -0
- data/lib/legion/data/migrations/005_add_runners.rb +21 -0
- data/lib/legion/data/migrations/006_add_functions.rb +23 -0
- data/lib/legion/data/migrations/007_add_default_extensions.rb +25 -0
- data/lib/legion/data/migrations/008_add_tasks.rb +29 -0
- data/lib/legion/data/model.rb +5 -2
- data/lib/legion/data/models/extension.rb +0 -2
- data/lib/legion/data/models/function.rb +2 -6
- data/lib/legion/data/models/node.rb +1 -3
- data/lib/legion/data/models/runner.rb +0 -2
- data/lib/legion/data/models/setting.rb +0 -0
- data/lib/legion/data/models/task.rb +0 -2
- data/lib/legion/data/models/task_log.rb +0 -0
- data/lib/legion/data/settings.rb +25 -19
- data/lib/legion/data/version.rb +1 -1
- data/sonar-project.properties +12 -0
- data/sourcehawk.yml +4 -0
- metadata +41 -189
- data/.circleci/config.yml +0 -148
- data/.rspec +0 -1
- data/Rakefile +0 -55
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/bitbucket-pipelines.yml +0 -26
- data/lib/legion/data/connections/base.rb +0 -61
- data/lib/legion/data/connections/jdbc.rb +0 -21
- data/lib/legion/data/connections/mysql.rb +0 -26
- data/lib/legion/data/connections/mysql2.rb +0 -11
- data/lib/legion/data/connections/mysql_base.rb +0 -19
- data/lib/legion/data/migrations/002_add_users.rb +0 -17
- data/lib/legion/data/migrations/003_add_groups.rb +0 -16
- data/lib/legion/data/migrations/004_add_chains.rb +0 -25
- data/lib/legion/data/migrations/005_add_envs.rb +0 -24
- data/lib/legion/data/migrations/006_add_dcs.rb +0 -24
- data/lib/legion/data/migrations/007_add_nodes.rb +0 -26
- data/lib/legion/data/migrations/008_add_settings.rb +0 -18
- data/lib/legion/data/migrations/009_add_extensions.rb +0 -25
- data/lib/legion/data/migrations/010_add_runners.rb +0 -21
- data/lib/legion/data/migrations/011_add_functions.rb +0 -29
- data/lib/legion/data/migrations/012_add_tasks.rb +0 -25
- data/lib/legion/data/migrations/013_add_task_logs.rb +0 -17
- data/lib/legion/data/migrations/014_add_relationships.rb +0 -27
- data/lib/legion/data/models/chain.rb +0 -13
- data/lib/legion/data/models/datacenter.rb +0 -13
- data/lib/legion/data/models/environment.rb +0 -13
- data/lib/legion/data/models/group.rb +0 -10
- data/lib/legion/data/models/namespace.rb +0 -14
- data/lib/legion/data/models/relationship.rb +0 -18
- data/lib/legion/data/models/user.rb +0 -10
@@ -0,0 +1,23 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
up do
|
3
|
+
run "CREATE TABLE `functions` (
|
4
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
5
|
+
`name` varchar(128) NOT NULL,
|
6
|
+
`active` tinyint(1) unsigned NOT NULL DEFAULT '1',
|
7
|
+
`runner_id` int(11) unsigned NOT NULL,
|
8
|
+
`args` text,
|
9
|
+
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
10
|
+
`updated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
11
|
+
PRIMARY KEY (`id`),
|
12
|
+
UNIQUE KEY `runner_id` (`runner_id`,`name`),
|
13
|
+
KEY `active` (`active`),
|
14
|
+
KEY `namespace` (`runner_id`),
|
15
|
+
KEY `name` (`name`),
|
16
|
+
CONSTRAINT `function_runner_id` FOREIGN KEY (`runner_id`) REFERENCES `runners` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
17
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
|
18
|
+
end
|
19
|
+
|
20
|
+
down do
|
21
|
+
drop_table :functions
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
up do
|
3
|
+
lex = from(:extensions).insert(namespace: 'Legion::Extensions::Lex', name: 'lex', exchange: 'lex', uri: 'lex')
|
4
|
+
[
|
5
|
+
{ extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Register', name: 'register', queue: 'register', uri: 'register' },
|
6
|
+
{ extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Function', name: 'function', queue: 'function', uri: 'function' },
|
7
|
+
{ extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Runner', name: 'runner', queue: 'runner', uri: 'runner' },
|
8
|
+
{ extension_id: lex, namespace: 'Legion::Extensions::Lex::Runners::Extension', name: 'extension', queue: 'extension', uri: 'extension' }
|
9
|
+
].each do |row|
|
10
|
+
from(:runners).insert row
|
11
|
+
end
|
12
|
+
|
13
|
+
lex = from(:extensions).insert(namespace: 'Legion::Extensions::Node', name: 'node', exchange: 'node', uri: 'node')
|
14
|
+
[
|
15
|
+
{ extension_id: lex, namespace: 'Legion::Extensions::Node::Runners::Crypt', name: 'crypt', queue: 'crypt', uri: 'crypt' }
|
16
|
+
].each do |row|
|
17
|
+
from(:runners).insert row
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
down do
|
22
|
+
from(:extensions).where(namespace: 'Legion::Extensions::Lex').delete
|
23
|
+
from(:extensions).where(namespace: 'Legion::Extensions::Node').delete
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
Sequel.migration do
|
2
|
+
up do
|
3
|
+
run "CREATE TABLE `tasks` (
|
4
|
+
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
5
|
+
`relationship_id` int(11) unsigned DEFAULT NULL,
|
6
|
+
`function_id` int(11) unsigned DEFAULT NULL,
|
7
|
+
`status` varchar(255) NOT NULL,
|
8
|
+
`parent_id` int(11) unsigned DEFAULT NULL,
|
9
|
+
`master_id` int(11) unsigned DEFAULT NULL,
|
10
|
+
`function_args` text,
|
11
|
+
`results` text,
|
12
|
+
`payload` text,
|
13
|
+
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
14
|
+
`updated` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
|
15
|
+
PRIMARY KEY (`id`),
|
16
|
+
KEY `status` (`status`),
|
17
|
+
KEY `parent_id` (`parent_id`),
|
18
|
+
KEY `master_id` (`master_id`),
|
19
|
+
KEY `relationship_id` (`relationship_id`),
|
20
|
+
KEY `function_id` (`function_id`),
|
21
|
+
CONSTRAINT `parent_id` FOREIGN KEY (`parent_id`) REFERENCES `tasks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE,
|
22
|
+
CONSTRAINT `master_id` FOREIGN KEY (`master_id`) REFERENCES `tasks` (`id`) ON DELETE SET NULL ON UPDATE CASCADE
|
23
|
+
) ENGINE=InnoDB DEFAULT CHARSET=utf8;"
|
24
|
+
end
|
25
|
+
|
26
|
+
down do
|
27
|
+
drop_table :tasks
|
28
|
+
end
|
29
|
+
end
|
data/lib/legion/data/model.rb
CHANGED
@@ -3,18 +3,20 @@ module Legion
|
|
3
3
|
module Models
|
4
4
|
class << self
|
5
5
|
attr_reader :loaded_models
|
6
|
+
|
6
7
|
def models
|
7
|
-
%w[
|
8
|
+
%w[extension function task runner node setting]
|
8
9
|
end
|
9
10
|
|
10
11
|
def load
|
11
12
|
Legion::Logging.info 'Loading Legion::Data::Models'
|
12
13
|
@loaded_models ||= []
|
13
14
|
require_sequel_models(models)
|
15
|
+
Legion::Settings[:data][:models][:loaded] = true
|
14
16
|
end
|
15
17
|
|
16
18
|
def require_sequel_models(files = models)
|
17
|
-
Dir[File.dirname(__FILE__)
|
19
|
+
# Dir["#{File.dirname(__FILE__)}models/*.rb"].each { |file| puts file }
|
18
20
|
files.each { |file| load_sequel_model(file) }
|
19
21
|
end
|
20
22
|
|
@@ -23,6 +25,7 @@ module Legion
|
|
23
25
|
require_relative "models/#{model}"
|
24
26
|
@loaded_models << model
|
25
27
|
Legion::Logging.debug("Successfully loaded #{model}")
|
28
|
+
model
|
26
29
|
rescue LoadError => e
|
27
30
|
Legion::Logging.fatal("Failed to load #{model}")
|
28
31
|
raise e unless Legion::Settings[:data][:models][:continue_on_fail]
|
@@ -1,16 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative 'relationship'
|
4
|
-
|
5
3
|
module Legion
|
6
4
|
module Data
|
7
5
|
module Model
|
8
6
|
class Function < Sequel::Model
|
9
7
|
many_to_one :runner
|
10
|
-
one_to_many :trigger_relationships, class: 'Legion::Data::Model::Relationship', key: :trigger_id
|
11
|
-
one_to_many :action_relationships, class: 'Legion::Data::Model::Relationship', key: :action_id
|
12
|
-
many_to_one :user_owner, class: Legion::Data::Model::User
|
13
|
-
many_to_one :group_owner, class: Legion::Data::Model::Group
|
8
|
+
# one_to_many :trigger_relationships, class: 'Legion::Data::Model::Relationship', key: :trigger_id
|
9
|
+
# one_to_many :action_relationships, class: 'Legion::Data::Model::Relationship', key: :action_id
|
14
10
|
end
|
15
11
|
end
|
16
12
|
end
|
File without changes
|
@@ -10,8 +10,6 @@ module Legion
|
|
10
10
|
one_to_many :children, key: :parent_id, class: self
|
11
11
|
many_to_one :master, class: self
|
12
12
|
one_to_many :slave, key: :master_id, class: self
|
13
|
-
many_to_one :user_owner, class: Legion::Data::Model::User
|
14
|
-
many_to_one :group_owner, class: Legion::Data::Model::Group
|
15
13
|
end
|
16
14
|
end
|
17
15
|
end
|
File without changes
|
data/lib/legion/data/settings.rb
CHANGED
@@ -3,39 +3,40 @@ module Legion
|
|
3
3
|
module Settings
|
4
4
|
def self.default
|
5
5
|
{
|
6
|
-
connected:
|
7
|
-
cache:
|
6
|
+
connected: false,
|
7
|
+
cache: cache,
|
8
8
|
connection: connection,
|
9
|
-
creds:
|
9
|
+
creds: creds,
|
10
10
|
migrations: migrations,
|
11
|
-
models:
|
12
|
-
|
11
|
+
models: models,
|
12
|
+
connect_on_start: true
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.models
|
17
17
|
{
|
18
18
|
continue_on_load_fail: false,
|
19
|
-
autoload:
|
19
|
+
autoload: true
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.migrations
|
24
24
|
{
|
25
25
|
continue_on_fail: false,
|
26
|
-
auto_migrate:
|
27
|
-
ran:
|
28
|
-
version:
|
26
|
+
auto_migrate: true,
|
27
|
+
ran: false,
|
28
|
+
version: nil
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
def self.connection
|
33
33
|
{
|
34
|
-
log:
|
34
|
+
log: false,
|
35
35
|
log_connection_info: false,
|
36
|
-
log_warn_duration:
|
37
|
-
sql_log_level:
|
38
|
-
max_connections:
|
36
|
+
log_warn_duration: 1,
|
37
|
+
sql_log_level: 'debug',
|
38
|
+
max_connections: 10,
|
39
|
+
preconnect: false
|
39
40
|
}
|
40
41
|
end
|
41
42
|
|
@@ -43,20 +44,25 @@ module Legion
|
|
43
44
|
{
|
44
45
|
username: 'legion',
|
45
46
|
password: 'legion',
|
46
|
-
database: '
|
47
|
-
host:
|
48
|
-
port:
|
49
|
-
debug: false
|
47
|
+
database: 'legionio',
|
48
|
+
host: '127.0.0.1',
|
49
|
+
port: 3306
|
50
50
|
}
|
51
51
|
end
|
52
52
|
|
53
53
|
def self.cache
|
54
54
|
{
|
55
|
-
connected:
|
55
|
+
connected: false,
|
56
56
|
auto_enable: Legion::Settings[:cache][:connected],
|
57
|
-
ttl:
|
57
|
+
ttl: 60
|
58
58
|
}
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
63
|
+
|
64
|
+
begin
|
65
|
+
Legion::Settings.merge_settings('data', Legion::Data::Settings.default) if Legion.const_defined?('Settings')
|
66
|
+
rescue StandardError => e
|
67
|
+
Legion::Logging.fatal(e.message) if Legion::Logging.method_defined?(:fatal)
|
68
|
+
end
|
data/lib/legion/data/version.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
sonar.projectKey=legion-io_legion-data
|
2
|
+
sonar.organization=legion-io
|
3
|
+
sonar.projectName=Legion::Data
|
4
|
+
sonar.sources=.
|
5
|
+
sonar.exclusions=vendor/**
|
6
|
+
sonar.coverage.exclusions=spec/**
|
7
|
+
sonar.ruby.coverage.reportPath=coverage/.resultset.json
|
8
|
+
sonar.ruby.file.suffixes=rb,ruby
|
9
|
+
sonar.ruby.coverage.framework=RSpec
|
10
|
+
sonar.ruby.rubocopConfig=.rubocop.yml
|
11
|
+
sonar.ruby.rubocop.reportPath=rubocop-result.json
|
12
|
+
sonar.ruby.rubocop.filePath=.
|
data/sourcehawk.yml
ADDED
metadata
CHANGED
@@ -1,155 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: legion-data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.2.0
|
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-06-09 00:00:00.000000000 Z
|
12
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: rspec_junit_formatter
|
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
|
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-md
|
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-performance
|
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
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rubocop-rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rubocop-sequel
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
13
|
- !ruby/object:Gem::Dependency
|
154
14
|
name: legion-logging
|
155
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,74 +66,66 @@ dependencies:
|
|
206
66
|
- - ">="
|
207
67
|
- !ruby/object:Gem::Version
|
208
68
|
version: '0'
|
209
|
-
description:
|
69
|
+
description: A LegionIO gem to connect to a persistent data store
|
210
70
|
email:
|
211
71
|
- matthewdiverson@gmail.com
|
72
|
+
- ruby@optum.com
|
212
73
|
executables: []
|
213
74
|
extensions: []
|
214
|
-
extra_rdoc_files:
|
75
|
+
extra_rdoc_files:
|
76
|
+
- README.md
|
77
|
+
- LICENSE
|
78
|
+
- CHANGELOG.md
|
215
79
|
files:
|
216
|
-
- ".
|
80
|
+
- ".github/workflows/rubocop-analysis.yml"
|
81
|
+
- ".github/workflows/sourcehawk-scan.yml"
|
217
82
|
- ".gitignore"
|
218
|
-
- ".rspec"
|
219
83
|
- ".rubocop.yml"
|
220
84
|
- CHANGELOG.md
|
85
|
+
- CODE_OF_CONDUCT.md
|
86
|
+
- CONTRIBUTING.md
|
221
87
|
- Gemfile
|
88
|
+
- INDIVIDUAL_CONTRIBUTOR_LICENSE.md
|
89
|
+
- LICENSE
|
90
|
+
- NOTICE.txt
|
222
91
|
- README.md
|
223
|
-
-
|
224
|
-
-
|
225
|
-
- bin/setup
|
226
|
-
- bitbucket-pipelines.yml
|
92
|
+
- SECURITY.md
|
93
|
+
- attribution.txt
|
227
94
|
- legion-data.gemspec
|
228
95
|
- lib/legion/data.rb
|
229
96
|
- lib/legion/data/connection.rb
|
230
|
-
- lib/legion/data/connections/base.rb
|
231
|
-
- lib/legion/data/connections/jdbc.rb
|
232
|
-
- lib/legion/data/connections/mysql.rb
|
233
|
-
- lib/legion/data/connections/mysql2.rb
|
234
|
-
- lib/legion/data/connections/mysql_base.rb
|
235
97
|
- lib/legion/data/migration.rb
|
236
98
|
- lib/legion/data/migrations/001_add_schema_columns.rb
|
237
|
-
- lib/legion/data/migrations/
|
238
|
-
- lib/legion/data/migrations/
|
239
|
-
- lib/legion/data/migrations/
|
240
|
-
- lib/legion/data/migrations/
|
241
|
-
- lib/legion/data/migrations/
|
242
|
-
- lib/legion/data/migrations/
|
243
|
-
- lib/legion/data/migrations/
|
244
|
-
- lib/legion/data/migrations/009_add_extensions.rb
|
245
|
-
- lib/legion/data/migrations/010_add_runners.rb
|
246
|
-
- lib/legion/data/migrations/011_add_functions.rb
|
247
|
-
- lib/legion/data/migrations/012_add_tasks.rb
|
248
|
-
- lib/legion/data/migrations/013_add_task_logs.rb
|
249
|
-
- lib/legion/data/migrations/014_add_relationships.rb
|
99
|
+
- lib/legion/data/migrations/002_add_nodes.rb
|
100
|
+
- lib/legion/data/migrations/003_add_settings.rb
|
101
|
+
- lib/legion/data/migrations/004_add_extensions.rb
|
102
|
+
- lib/legion/data/migrations/005_add_runners.rb
|
103
|
+
- lib/legion/data/migrations/006_add_functions.rb
|
104
|
+
- lib/legion/data/migrations/007_add_default_extensions.rb
|
105
|
+
- lib/legion/data/migrations/008_add_tasks.rb
|
250
106
|
- lib/legion/data/model.rb
|
251
|
-
- lib/legion/data/models/chain.rb
|
252
|
-
- lib/legion/data/models/datacenter.rb
|
253
|
-
- lib/legion/data/models/environment.rb
|
254
107
|
- lib/legion/data/models/extension.rb
|
255
108
|
- lib/legion/data/models/function.rb
|
256
|
-
- lib/legion/data/models/group.rb
|
257
|
-
- lib/legion/data/models/namespace.rb
|
258
109
|
- lib/legion/data/models/node.rb
|
259
|
-
- lib/legion/data/models/relationship.rb
|
260
110
|
- lib/legion/data/models/runner.rb
|
261
111
|
- lib/legion/data/models/setting.rb
|
262
112
|
- lib/legion/data/models/task.rb
|
263
113
|
- lib/legion/data/models/task_log.rb
|
264
|
-
- lib/legion/data/models/user.rb
|
265
114
|
- lib/legion/data/settings.rb
|
266
115
|
- lib/legion/data/version.rb
|
267
|
-
|
268
|
-
|
116
|
+
- sonar-project.properties
|
117
|
+
- sourcehawk.yml
|
118
|
+
homepage: https://github.com/Optum/legion-data
|
119
|
+
licenses:
|
120
|
+
- Apache-2.0
|
269
121
|
metadata:
|
270
|
-
bug_tracker_uri: https://
|
271
|
-
changelog_uri: https://
|
272
|
-
documentation_uri: https://
|
273
|
-
homepage_uri: https://
|
274
|
-
source_code_uri: https://
|
275
|
-
wiki_uri: https://
|
276
|
-
post_install_message:
|
122
|
+
bug_tracker_uri: https://github.com/Optum/legion-data/issues
|
123
|
+
changelog_uri: https://github.com/Optum/legion-data/src/main/CHANGELOG.md
|
124
|
+
documentation_uri: https://github.com/Optum/legion-data
|
125
|
+
homepage_uri: https://github.com/Optum/LegionIO
|
126
|
+
source_code_uri: https://github.com/Optum/legion-data
|
127
|
+
wiki_uri: https://github.com/Optum/legion-data/wiki
|
128
|
+
post_install_message:
|
277
129
|
rdoc_options: []
|
278
130
|
require_paths:
|
279
131
|
- lib
|
@@ -281,15 +133,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
133
|
requirements:
|
282
134
|
- - ">="
|
283
135
|
- !ruby/object:Gem::Version
|
284
|
-
version: '
|
136
|
+
version: '2.5'
|
285
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
138
|
requirements:
|
287
139
|
- - ">="
|
288
140
|
- !ruby/object:Gem::Version
|
289
141
|
version: '0'
|
290
142
|
requirements: []
|
291
|
-
rubygems_version: 3.
|
292
|
-
signing_key:
|
143
|
+
rubygems_version: 3.1.6
|
144
|
+
signing_key:
|
293
145
|
specification_version: 4
|
294
|
-
summary:
|
146
|
+
summary: Manages the connects to the backend database
|
295
147
|
test_files: []
|