legionio 0.4.3 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +45 -0
  3. data/.github/workflows/rubocop.yml +28 -0
  4. data/.github/workflows/sourcehawk-scan.yml +20 -0
  5. data/.gitignore +0 -0
  6. data/.rubocop.yml +2 -6
  7. data/CHANGELOG.md +2 -45
  8. data/CODE_OF_CONDUCT.md +75 -0
  9. data/CONTRIBUTING.md +55 -0
  10. data/Gemfile +7 -0
  11. data/INDIVIDUAL_CONTRIBUTOR_LICENSE.md +30 -0
  12. data/LICENSE +201 -0
  13. data/NOTICE.txt +9 -0
  14. data/README.md +13 -12
  15. data/SECURITY.md +9 -0
  16. data/attribution.txt +1 -0
  17. data/legionio.gemspec +19 -30
  18. data/lib/legion.rb +0 -1
  19. data/lib/legion/cli.rb +0 -0
  20. data/lib/legion/cli/chain.rb +0 -0
  21. data/lib/legion/cli/cohort.rb +0 -0
  22. data/lib/legion/cli/function.rb +0 -0
  23. data/lib/legion/cli/lex/actor.rb +0 -0
  24. data/lib/legion/cli/lex/exchange.rb +0 -0
  25. data/lib/legion/cli/lex/message.rb +0 -0
  26. data/lib/legion/cli/lex/queue.rb +0 -0
  27. data/lib/legion/cli/lex/runner.rb +0 -0
  28. data/lib/legion/cli/lex/templates/actor.erb +0 -0
  29. data/lib/legion/cli/lex/templates/actor_spec.erb +0 -0
  30. data/lib/legion/cli/lex/templates/base/bitbucket.yml.erb +0 -0
  31. data/lib/legion/cli/lex/templates/base/gemfile.erb +0 -0
  32. data/lib/legion/cli/lex/templates/base/gemspec.erb +0 -0
  33. data/lib/legion/cli/lex/templates/base/gitignore.erb +0 -0
  34. data/lib/legion/cli/lex/templates/base/lex.erb +0 -0
  35. data/lib/legion/cli/lex/templates/base/lex_spec.erb +0 -0
  36. data/lib/legion/cli/lex/templates/base/lic.erb +0 -0
  37. data/lib/legion/cli/lex/templates/base/rakefile.erb +0 -0
  38. data/lib/legion/cli/lex/templates/base/readme.md.erb +0 -0
  39. data/lib/legion/cli/lex/templates/base/rubocop.yml.erb +0 -0
  40. data/lib/legion/cli/lex/templates/base/spec_helper.rb.erb +0 -0
  41. data/lib/legion/cli/lex/templates/base/version.erb +0 -0
  42. data/lib/legion/cli/lex/templates/exchange.erb +0 -0
  43. data/lib/legion/cli/lex/templates/exchange_spec.erb +0 -0
  44. data/lib/legion/cli/lex/templates/message.erb +0 -0
  45. data/lib/legion/cli/lex/templates/message_spec.erb +0 -0
  46. data/lib/legion/cli/lex/templates/queue.erb +0 -0
  47. data/lib/legion/cli/lex/templates/queue_helper.erb +0 -0
  48. data/lib/legion/cli/lex/templates/queue_spec.erb +0 -0
  49. data/lib/legion/cli/lex/templates/runner.erb +0 -0
  50. data/lib/legion/cli/lex/templates/runner_spec.erb +0 -0
  51. data/lib/legion/cli/relationship.rb +0 -0
  52. data/lib/legion/cli/task.rb +0 -0
  53. data/lib/legion/cli/trigger.rb +2 -2
  54. data/lib/legion/cli/version.rb +0 -0
  55. data/lib/legion/extensions.rb +11 -1
  56. data/lib/legion/extensions/actors/base.rb +0 -0
  57. data/lib/legion/extensions/actors/defaults.rb +0 -0
  58. data/lib/legion/extensions/actors/every.rb +0 -0
  59. data/lib/legion/extensions/actors/loop.rb +0 -0
  60. data/lib/legion/extensions/actors/nothing.rb +0 -0
  61. data/lib/legion/extensions/actors/once.rb +2 -2
  62. data/lib/legion/extensions/actors/poll.rb +0 -0
  63. data/lib/legion/extensions/actors/subscription.rb +0 -0
  64. data/lib/legion/extensions/builders/actors.rb +0 -0
  65. data/lib/legion/extensions/builders/base.rb +0 -0
  66. data/lib/legion/extensions/builders/helpers.rb +0 -0
  67. data/lib/legion/extensions/builders/runners.rb +4 -0
  68. data/lib/legion/extensions/core.rb +1 -1
  69. data/lib/legion/extensions/data.rb +4 -1
  70. data/lib/legion/extensions/data/migrator.rb +6 -1
  71. data/lib/legion/extensions/data/model.rb +0 -0
  72. data/lib/legion/extensions/helpers/base.rb +0 -0
  73. data/lib/legion/extensions/helpers/cache.rb +0 -0
  74. data/lib/legion/extensions/helpers/core.rb +0 -0
  75. data/lib/legion/extensions/helpers/data.rb +0 -0
  76. data/lib/legion/extensions/helpers/lex.rb +0 -0
  77. data/lib/legion/extensions/helpers/logger.rb +0 -0
  78. data/lib/legion/extensions/helpers/task.rb +0 -0
  79. data/lib/legion/extensions/helpers/transport.rb +0 -0
  80. data/lib/legion/extensions/transport.rb +0 -0
  81. data/lib/legion/lex.rb +0 -0
  82. data/lib/legion/runner.rb +8 -6
  83. data/lib/legion/runner/log.rb +0 -0
  84. data/lib/legion/runner/status.rb +0 -0
  85. data/lib/legion/version.rb +1 -1
  86. data/sourcehawk.yml +4 -0
  87. metadata +36 -264
  88. data/.circleci/config.yml +0 -136
  89. data/.rspec +0 -2
  90. data/LICENSE.txt +0 -21
  91. data/Rakefile +0 -32
  92. data/bitbucket-pipelines.yml +0 -19
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format documentation
2
- --color
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2017 BuildTools
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
data/Rakefile DELETED
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
9
-
10
- task test: :rubocop
11
- task test: :spec
12
- task test: :start
13
-
14
- task :rubocop do
15
- sh 'rubocop'
16
- end
17
-
18
- task :start do
19
- sh 'bin/legion start -d'
20
- sh 'bin/legion stop'
21
- end
22
-
23
- namespace :deploy do
24
- require 'legion/version'
25
- desc 'Deploy alpha/test'
26
- task :test do
27
- Gem.yank_gem('legion', "#{Legion::VERSION}a")
28
- puts Gem.query('legion-transport').inspect
29
- puts Gem.methods(false)
30
- puts Legion::VERSION
31
- end
32
- end
@@ -1,19 +0,0 @@
1
- image: ruby:2.7
2
-
3
- pipelines:
4
- tags:
5
- "v*":
6
- - step:
7
- name: Push to RubyGems
8
- deployment: RubyGems
9
- script:
10
- - gem install gem-release
11
- - (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
12
- - gem release
13
- artifacts:
14
- - pkg/**
15
- - step:
16
- name: Push to Docker
17
- deployment: Docker
18
- script:
19
- - './docker_deploy.rb'