legion-transport 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rubocop-analysis.yml +41 -0
  3. data/.github/workflows/sourcehawk-scan.yml +20 -0
  4. data/.gitignore +4 -2
  5. data/.rubocop.yml +7 -6
  6. data/CHANGELOG.md +2 -7
  7. data/CODE_OF_CONDUCT.md +75 -0
  8. data/CONTRIBUTING.md +55 -0
  9. data/Gemfile +7 -0
  10. data/INDIVIDUAL_CONTRIBUTOR_LICENSE.md +30 -0
  11. data/LICENSE +201 -0
  12. data/NOTICE.txt +9 -0
  13. data/README.md +90 -2
  14. data/SECURITY.md +9 -0
  15. data/attribution.txt +1 -0
  16. data/legion-transport.gemspec +23 -33
  17. data/lib/legion/transport.rb +25 -2
  18. data/lib/legion/transport/common.rb +3 -3
  19. data/lib/legion/transport/connection.rb +45 -18
  20. data/lib/legion/transport/connection/ssl.rb +35 -0
  21. data/lib/legion/transport/connection/vault.rb +9 -0
  22. data/lib/legion/transport/consumer.rb +0 -0
  23. data/lib/legion/transport/exchange.rb +15 -3
  24. data/lib/legion/transport/exchanges/crypt.rb +1 -1
  25. data/lib/legion/transport/exchanges/extensions.rb +11 -0
  26. data/lib/legion/transport/exchanges/lex.rb +1 -4
  27. data/lib/legion/transport/exchanges/node.rb +0 -0
  28. data/lib/legion/transport/exchanges/task.rb +0 -0
  29. data/lib/legion/transport/message.rb +53 -14
  30. data/lib/legion/transport/messages/check_subtask.rb +0 -0
  31. data/lib/legion/transport/messages/dynamic.rb +2 -1
  32. data/lib/legion/transport/messages/{node_health.rb → extension.rb} +4 -4
  33. data/lib/legion/transport/messages/lex_register.rb +3 -3
  34. data/lib/legion/transport/messages/request_cluster_secret.rb +0 -0
  35. data/lib/legion/transport/messages/subtask.rb +11 -0
  36. data/lib/legion/transport/messages/task.rb +41 -0
  37. data/lib/legion/transport/messages/task_log.rb +0 -0
  38. data/lib/legion/transport/messages/task_update.rb +7 -2
  39. data/lib/legion/transport/queue.rb +6 -6
  40. data/lib/legion/transport/queues/node.rb +0 -0
  41. data/lib/legion/transport/queues/node_crypt.rb +0 -0
  42. data/lib/legion/transport/queues/node_status.rb +0 -0
  43. data/lib/legion/transport/queues/task_log.rb +0 -0
  44. data/lib/legion/transport/queues/task_update.rb +0 -0
  45. data/lib/legion/transport/settings.rb +59 -35
  46. data/lib/legion/transport/version.rb +1 -1
  47. data/sonar-project.properties +1 -1
  48. data/sourcehawk.yml +4 -0
  49. metadata +44 -142
  50. data/.circleci/config.yml +0 -89
  51. data/.rspec +0 -1
  52. data/Rakefile +0 -6
  53. data/bin/console +0 -14
  54. data/bin/setup +0 -8
  55. data/bitbucket-pipelines.yml +0 -24
  56. data/settings/transport.json +0 -5
@@ -1,5 +1,5 @@
1
1
  module Legion
2
2
  module Transport
3
- VERSION = '1.1.4'.freeze
3
+ VERSION = '1.2.0'.freeze
4
4
  end
5
5
  end
@@ -9,4 +9,4 @@ sonar.ruby.file.suffixes=rb,ruby
9
9
  sonar.ruby.coverage.framework=RSpec
10
10
  sonar.ruby.rubocopConfig=.rubocop.yml
11
11
  sonar.ruby.rubocop.reportPath=rubocop-result.json
12
- sonar.ruby.rubocop.filePath=.
12
+ sonar.ruby.rubocop.filePath=.
data/sourcehawk.yml ADDED
@@ -0,0 +1,4 @@
1
+
2
+ config-locations:
3
+ - https://raw.githubusercontent.com/optum/.github/main/sourcehawk.yml
4
+
metadata CHANGED
@@ -1,157 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: legion-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esity
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
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: legion-logging
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: legion-settings
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: rake
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: rspec
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: rspec_junit_formatter
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
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: simplecov
14
+ name: bunny
127
15
  requirement: !ruby/object:Gem::Requirement
128
16
  requirements:
129
17
  - - ">="
130
18
  - !ruby/object:Gem::Version
131
- version: '0'
132
- type: :development
19
+ version: 2.17.0
20
+ type: :runtime
133
21
  prerelease: false
134
22
  version_requirements: !ruby/object:Gem::Requirement
135
23
  requirements:
136
24
  - - ">="
137
25
  - !ruby/object:Gem::Version
138
- version: '0'
26
+ version: 2.17.0
139
27
  - !ruby/object:Gem::Dependency
140
- name: bunny
28
+ name: concurrent-ruby
141
29
  requirement: !ruby/object:Gem::Requirement
142
30
  requirements:
143
31
  - - ">="
144
32
  - !ruby/object:Gem::Version
145
- version: '0'
33
+ version: 1.1.7
146
34
  type: :runtime
147
35
  prerelease: false
148
36
  version_requirements: !ruby/object:Gem::Requirement
149
37
  requirements:
150
38
  - - ">="
151
39
  - !ruby/object:Gem::Version
152
- version: '0'
40
+ version: 1.1.7
153
41
  - !ruby/object:Gem::Dependency
154
- name: concurrent-ruby
42
+ name: legion-json
155
43
  requirement: !ruby/object:Gem::Requirement
156
44
  requirements:
157
45
  - - ">="
@@ -165,7 +53,7 @@ dependencies:
165
53
  - !ruby/object:Gem::Version
166
54
  version: '0'
167
55
  - !ruby/object:Gem::Dependency
168
- name: legion-json
56
+ name: legion-settings
169
57
  requirement: !ruby/object:Gem::Requirement
170
58
  requirements:
171
59
  - - ">="
@@ -178,41 +66,52 @@ dependencies:
178
66
  - - ">="
179
67
  - !ruby/object:Gem::Version
180
68
  version: '0'
181
- description: The Legion transport gem
69
+ description: The Gem to connect LegionIO and it's extensions to the transport tier
182
70
  email:
183
71
  - matthewdiverson@gmail.com
72
+ - ruby@optum.com
184
73
  executables: []
185
74
  extensions: []
186
- extra_rdoc_files: []
75
+ extra_rdoc_files:
76
+ - README.md
77
+ - LICENSE
78
+ - CHANGELOG.md
187
79
  files:
188
- - ".circleci/config.yml"
80
+ - ".github/workflows/rubocop-analysis.yml"
81
+ - ".github/workflows/sourcehawk-scan.yml"
189
82
  - ".gitignore"
190
- - ".rspec"
191
83
  - ".rubocop.yml"
192
84
  - CHANGELOG.md
85
+ - CODE_OF_CONDUCT.md
86
+ - CONTRIBUTING.md
193
87
  - Gemfile
88
+ - INDIVIDUAL_CONTRIBUTOR_LICENSE.md
89
+ - LICENSE
90
+ - NOTICE.txt
194
91
  - README.md
195
- - Rakefile
196
- - bin/console
197
- - bin/setup
198
- - bitbucket-pipelines.yml
92
+ - SECURITY.md
93
+ - attribution.txt
199
94
  - legion-transport.gemspec
200
95
  - lib/legion/transport.rb
201
96
  - lib/legion/transport/common.rb
202
97
  - lib/legion/transport/connection.rb
98
+ - lib/legion/transport/connection/ssl.rb
99
+ - lib/legion/transport/connection/vault.rb
203
100
  - lib/legion/transport/consumer.rb
204
101
  - lib/legion/transport/exchange.rb
205
102
  - lib/legion/transport/exchanges/crypt.rb
103
+ - lib/legion/transport/exchanges/extensions.rb
206
104
  - lib/legion/transport/exchanges/lex.rb
207
105
  - lib/legion/transport/exchanges/node.rb
208
106
  - lib/legion/transport/exchanges/task.rb
209
107
  - lib/legion/transport/message.rb
210
108
  - lib/legion/transport/messages/check_subtask.rb
211
109
  - lib/legion/transport/messages/dynamic.rb
110
+ - lib/legion/transport/messages/extension.rb
212
111
  - lib/legion/transport/messages/lex_register.rb
213
- - lib/legion/transport/messages/node_health.rb
214
112
  - lib/legion/transport/messages/request_cluster_secret.rb
215
113
  - lib/legion/transport/messages/subtask.rb
114
+ - lib/legion/transport/messages/task.rb
216
115
  - lib/legion/transport/messages/task_log.rb
217
116
  - lib/legion/transport/messages/task_update.rb
218
117
  - lib/legion/transport/queue.rb
@@ -223,15 +122,18 @@ files:
223
122
  - lib/legion/transport/queues/task_update.rb
224
123
  - lib/legion/transport/settings.rb
225
124
  - lib/legion/transport/version.rb
226
- - settings/transport.json
227
125
  - sonar-project.properties
228
- homepage: https://bitbucket.org/legion-io/legion-transport
229
- licenses: []
126
+ - sourcehawk.yml
127
+ homepage: https://github.com/Optum/legion-transport
128
+ licenses:
129
+ - Apache-2.0
230
130
  metadata:
231
- bug_tracker_uri: https://legionio.atlassian.net/projects/TRANSPORT/issues
232
- changelog_uri: https://bitbucket.org/legion-io/legion-transport/src/master/CHANGELOG.md
233
- homepage_uri: https://bitbucket.org/legion-io/legion-transport
234
- wiki_uri: https://bitbucket.org/legion-io/legion-transport/wiki/Home
131
+ bug_tracker_uri: https://github.com/Optum/legion-transport/issues
132
+ changelog_uri: https://github.com/Optum/legion-transport/src/main/CHANGELOG.md
133
+ documentation_uri: https://github.com/Optum/legion-transport
134
+ homepage_uri: https://github.com/Optum/LegionIO
135
+ source_code_uri: https://github.com/Optum/legion-transport
136
+ wiki_uri: https://github.com/Optum/legion-transport/wiki
235
137
  post_install_message:
236
138
  rdoc_options: []
237
139
  require_paths:
@@ -240,15 +142,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
240
142
  requirements:
241
143
  - - ">="
242
144
  - !ruby/object:Gem::Version
243
- version: 2.5.0
145
+ version: '2.5'
244
146
  required_rubygems_version: !ruby/object:Gem::Requirement
245
147
  requirements:
246
148
  - - ">="
247
149
  - !ruby/object:Gem::Version
248
150
  version: '0'
249
151
  requirements: []
250
- rubygems_version: 3.1.2
152
+ rubygems_version: 3.1.6
251
153
  signing_key:
252
154
  specification_version: 4
253
- summary: Used by Legion to connect with RabbitMQ
155
+ summary: Manages the connection to the transport tier(RabbitMQ)
254
156
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,89 +0,0 @@
1
- version: 2.1
2
- orbs:
3
- ruby: circleci/ruby@0.2.1
4
- sonarcloud: sonarsource/sonarcloud@1.0.1
5
-
6
- jobs:
7
- "rubocop":
8
- docker:
9
- - image: circleci/ruby:2.7-node
10
- steps:
11
- - checkout
12
- - ruby/load-cache
13
- - ruby/install-deps
14
- - run:
15
- name: Run Rubocop
16
- command: bundle exec rubocop
17
- - ruby/save-cache
18
- "ruby-two-five":
19
- docker:
20
- - image: circleci/ruby:2.5
21
- - image: rabbitmq:3.7
22
- steps:
23
- - checkout
24
- - ruby/load-cache
25
- - run:
26
- name: update bundler
27
- command: gem update bundler
28
- - ruby/install-deps
29
- - ruby/run-tests
30
- - ruby/save-cache
31
- "ruby-two-six":
32
- docker:
33
- - image: circleci/ruby:2.6
34
- - image: rabbitmq:3.7
35
- steps:
36
- - checkout
37
- - ruby/load-cache
38
- - run:
39
- name: update bundler
40
- command: gem update bundler
41
- - ruby/install-deps
42
- - ruby/run-tests
43
- - ruby/save-cache
44
- "ruby-two-seven":
45
- docker:
46
- - image: circleci/ruby:2.7
47
- - image: rabbitmq:3.7
48
- steps:
49
- - checkout
50
- - ruby/load-cache
51
- - run:
52
- name: update bundler
53
- command: gem update bundler
54
- - ruby/install-deps
55
- - ruby/run-tests
56
- - ruby/save-cache
57
- "sonarcloud":
58
- docker:
59
- - image: circleci/ruby:2.7
60
- - image: rabbitmq:3.7
61
- steps:
62
- - checkout
63
- - ruby/load-cache
64
- - ruby/install-deps
65
- - ruby/run-tests
66
- - run:
67
- name: Run Rubocop
68
- command: bundle exec rubocop --format=json --out=rubocop-result.json
69
- - sonarcloud/scan
70
- - ruby/save-cache
71
-
72
- workflows:
73
- version: 2
74
- rubocop-rspec:
75
- jobs:
76
- - rubocop
77
- - ruby-two-five:
78
- requires:
79
- - rubocop
80
- - ruby-two-six:
81
- requires:
82
- - ruby-two-five
83
- - ruby-two-seven:
84
- requires:
85
- - ruby-two-five
86
- - sonarcloud:
87
- requires:
88
- - ruby-two-seven
89
- - ruby-two-six
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --color
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
data/bin/console DELETED
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'bundler/setup'
4
- require 'legion/transport'
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
@@ -1,24 +0,0 @@
1
- image: ruby:2.5.0
2
-
3
- pipelines:
4
- branches:
5
- master:
6
- - step:
7
- caches:
8
- - bundler
9
- script:
10
- - gem install bundle rubocop
11
- - bundle install
12
- - rubocop
13
- - rake
14
- services:
15
- - broker
16
- definitions:
17
- caches:
18
- bundler: vendor/bundle
19
- services:
20
- broker:
21
- image: rabbitmq:3
22
- environment:
23
- RABBITMQ_DEFAULT_USER: guest
24
- RABBITMQ_DEFAULT_PASS: guest