ground_control-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.github/dependabot.yml +24 -0
- data/.github/workflows/ci.yml +59 -0
- data/.github/workflows/claude-code-review.yml +24 -0
- data/.github/workflows/claude.yml +38 -0
- data/.github/workflows/codeql-actions.yml +28 -0
- data/.github/workflows/release.yml +89 -0
- data/.lefthook/bundle-sync.sh +58 -0
- data/.lefthook/lib/git-upstream.sh +13 -0
- data/.lefthook/verify-signatures.sh +46 -0
- data/.lefthook/whitespace-check.sh +8 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +16 -0
- data/CLAUDE.md +78 -0
- data/MIT-LICENSE +20 -0
- data/README.md +130 -0
- data/Rakefile +8 -0
- data/app/controllers/concerns/ground_control/api/adapter_features.rb +36 -0
- data/app/controllers/concerns/ground_control/api/error_handling.rb +25 -0
- data/app/controllers/concerns/ground_control/api/job_filters.rb +42 -0
- data/app/controllers/ground_control/api/application_controller.rb +24 -0
- data/app/controllers/ground_control/api/applications_controller.rb +13 -0
- data/app/controllers/ground_control/api/bulk_discards_controller.rb +21 -0
- data/app/controllers/ground_control/api/bulk_retries_controller.rb +15 -0
- data/app/controllers/ground_control/api/discards_controller.rb +14 -0
- data/app/controllers/ground_control/api/dispatches_controller.rb +14 -0
- data/app/controllers/ground_control/api/features_controller.rb +11 -0
- data/app/controllers/ground_control/api/jobs_controller.rb +37 -0
- data/app/controllers/ground_control/api/queues/pauses_controller.rb +29 -0
- data/app/controllers/ground_control/api/queues_controller.rb +26 -0
- data/app/controllers/ground_control/api/recurring_tasks_controller.rb +40 -0
- data/app/controllers/ground_control/api/retries_controller.rb +14 -0
- data/app/controllers/ground_control/api/workers_controller.rb +33 -0
- data/app/resources/ground_control/api/application_resource.rb +12 -0
- data/app/resources/ground_control/api/base_resource.rb +13 -0
- data/app/resources/ground_control/api/job_resource.rb +46 -0
- data/app/resources/ground_control/api/page_resource.rb +47 -0
- data/app/resources/ground_control/api/queue_resource.rb +22 -0
- data/app/resources/ground_control/api/recurring_task_resource.rb +17 -0
- data/app/resources/ground_control/api/server_resource.rb +10 -0
- data/app/resources/ground_control/api/worker_resource.rb +14 -0
- data/config/routes.rb +27 -0
- data/lefthook.yml +17 -0
- data/lib/ground_control/api/engine.rb +18 -0
- data/lib/ground_control/api/version.rb +7 -0
- data/lib/ground_control/api.rb +15 -0
- data/sig/ground_control/api.rbs +6 -0
- data/spec/spec_helper.rb +15 -0
- metadata +136 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "mission_control/jobs"
|
|
4
|
+
|
|
5
|
+
require_relative "api/version"
|
|
6
|
+
require_relative "api/engine"
|
|
7
|
+
|
|
8
|
+
module GroundControl
|
|
9
|
+
module Api
|
|
10
|
+
class Error < StandardError; end
|
|
11
|
+
|
|
12
|
+
mattr_accessor :authenticate_with
|
|
13
|
+
mattr_accessor :page_size, default: 10
|
|
14
|
+
end
|
|
15
|
+
end
|
data/spec/spec_helper.rb
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
RSpec.configure do |config|
|
|
4
|
+
config.expect_with :rspec do |expectations|
|
|
5
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
config.mock_with :rspec do |mocks|
|
|
9
|
+
mocks.verify_partial_doubles = true
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
|
13
|
+
config.order = :random
|
|
14
|
+
Kernel.srand config.seed
|
|
15
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ground_control-api
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Jaryl Sim
|
|
8
|
+
bindir: exe
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: alba
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: mission_control-jobs
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.6'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.6'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: rails
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '7.1'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '7.1'
|
|
54
|
+
description: A Rails engine providing a JSON API layer on top of mission_control-jobs.
|
|
55
|
+
Use standalone or as the foundation for ground_control-inertia.
|
|
56
|
+
email:
|
|
57
|
+
- code@jaryl.dev
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".github/dependabot.yml"
|
|
63
|
+
- ".github/workflows/ci.yml"
|
|
64
|
+
- ".github/workflows/claude-code-review.yml"
|
|
65
|
+
- ".github/workflows/claude.yml"
|
|
66
|
+
- ".github/workflows/codeql-actions.yml"
|
|
67
|
+
- ".github/workflows/release.yml"
|
|
68
|
+
- ".lefthook/bundle-sync.sh"
|
|
69
|
+
- ".lefthook/lib/git-upstream.sh"
|
|
70
|
+
- ".lefthook/verify-signatures.sh"
|
|
71
|
+
- ".lefthook/whitespace-check.sh"
|
|
72
|
+
- ".rspec"
|
|
73
|
+
- ".ruby-version"
|
|
74
|
+
- CHANGELOG.md
|
|
75
|
+
- CLAUDE.md
|
|
76
|
+
- MIT-LICENSE
|
|
77
|
+
- README.md
|
|
78
|
+
- Rakefile
|
|
79
|
+
- app/controllers/concerns/ground_control/api/adapter_features.rb
|
|
80
|
+
- app/controllers/concerns/ground_control/api/error_handling.rb
|
|
81
|
+
- app/controllers/concerns/ground_control/api/job_filters.rb
|
|
82
|
+
- app/controllers/ground_control/api/application_controller.rb
|
|
83
|
+
- app/controllers/ground_control/api/applications_controller.rb
|
|
84
|
+
- app/controllers/ground_control/api/bulk_discards_controller.rb
|
|
85
|
+
- app/controllers/ground_control/api/bulk_retries_controller.rb
|
|
86
|
+
- app/controllers/ground_control/api/discards_controller.rb
|
|
87
|
+
- app/controllers/ground_control/api/dispatches_controller.rb
|
|
88
|
+
- app/controllers/ground_control/api/features_controller.rb
|
|
89
|
+
- app/controllers/ground_control/api/jobs_controller.rb
|
|
90
|
+
- app/controllers/ground_control/api/queues/pauses_controller.rb
|
|
91
|
+
- app/controllers/ground_control/api/queues_controller.rb
|
|
92
|
+
- app/controllers/ground_control/api/recurring_tasks_controller.rb
|
|
93
|
+
- app/controllers/ground_control/api/retries_controller.rb
|
|
94
|
+
- app/controllers/ground_control/api/workers_controller.rb
|
|
95
|
+
- app/resources/ground_control/api/application_resource.rb
|
|
96
|
+
- app/resources/ground_control/api/base_resource.rb
|
|
97
|
+
- app/resources/ground_control/api/job_resource.rb
|
|
98
|
+
- app/resources/ground_control/api/page_resource.rb
|
|
99
|
+
- app/resources/ground_control/api/queue_resource.rb
|
|
100
|
+
- app/resources/ground_control/api/recurring_task_resource.rb
|
|
101
|
+
- app/resources/ground_control/api/server_resource.rb
|
|
102
|
+
- app/resources/ground_control/api/worker_resource.rb
|
|
103
|
+
- config/routes.rb
|
|
104
|
+
- lefthook.yml
|
|
105
|
+
- lib/ground_control/api.rb
|
|
106
|
+
- lib/ground_control/api/engine.rb
|
|
107
|
+
- lib/ground_control/api/version.rb
|
|
108
|
+
- sig/ground_control/api.rbs
|
|
109
|
+
- spec/spec_helper.rb
|
|
110
|
+
homepage: https://github.com/rarebit-one/ground-control-api
|
|
111
|
+
licenses:
|
|
112
|
+
- MIT
|
|
113
|
+
metadata:
|
|
114
|
+
homepage_uri: https://github.com/rarebit-one/ground-control-api
|
|
115
|
+
source_code_uri: https://github.com/rarebit-one/ground-control-api
|
|
116
|
+
changelog_uri: https://github.com/rarebit-one/ground-control-api/blob/main/CHANGELOG.md
|
|
117
|
+
bug_tracker_uri: https://github.com/rarebit-one/ground-control-api/issues
|
|
118
|
+
rdoc_options: []
|
|
119
|
+
require_paths:
|
|
120
|
+
- lib
|
|
121
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
|
+
requirements:
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: 3.2.0
|
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
|
+
requirements:
|
|
128
|
+
- - ">="
|
|
129
|
+
- !ruby/object:Gem::Version
|
|
130
|
+
version: '0'
|
|
131
|
+
requirements: []
|
|
132
|
+
rubygems_version: 3.6.7
|
|
133
|
+
specification_version: 4
|
|
134
|
+
summary: Headless JSON API for managing Active Job queues, jobs, workers, and recurring
|
|
135
|
+
tasks
|
|
136
|
+
test_files: []
|