guardship 0.0.52-aarch64-linux → 0.0.102-aarch64-linux
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 +4 -4
- data/README.md +44 -5
- data/exe/mothership +6 -38
- data/libexec/mothership +0 -0
- metadata +22 -11
- data/exe/mothership-linux-aarch64 +0 -0
- data/lib/mothership/version.rb +0 -5
- data/lib/mothership.rb +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd6e72d9e22c88048be72da58f926c501700a4caa8ac02dc08ced69de8f9f653
|
|
4
|
+
data.tar.gz: eb44a9a2fa1d9b874a43529af8fcd14e95999cab618b057f1ee8dd34a9246c24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83d30ea343fd9d1a6b4364bc885232a210fdbe40e802c51c8b3891c80473bcb270d7d86e837ae3c5f5219722ef42e15c255ec39566232b75266b43ac1ff3d909
|
|
7
|
+
data.tar.gz: d48b83b46a30b48526f4a4e22002a63bb4b7e2e68713e282307261ecd469936c2ac5eed75ac78ae09ff09a04eaac18d224511c7300bf6fc0a336490971f8d205
|
data/README.md
CHANGED
|
@@ -1,20 +1,59 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Guardship
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ruby wrapper and release packaging for [Mothership](https://github.com/seuros/mothership), the process supervisor with HTTP exposure.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
+
RubyGems should resolve the matching platform gem automatically on supported targets:
|
|
8
|
+
|
|
7
9
|
```bash
|
|
8
|
-
gem install
|
|
10
|
+
gem install guardship
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
The generic `guardship` gem is a stub. Platform-specific releases carry the bundled native `mothership` binary.
|
|
14
|
+
|
|
15
|
+
## What Is Included
|
|
16
|
+
|
|
17
|
+
- Stub gem:
|
|
18
|
+
- Ruby launcher only
|
|
19
|
+
- no bundled native binary
|
|
20
|
+
- Platform gems:
|
|
21
|
+
- `mothership` native binary under `libexec/`
|
|
22
|
+
- `tokio-postgres` support for flagship PostgreSQL coordination
|
|
23
|
+
- `wasmtime` support for WASM request/response modules
|
|
24
|
+
|
|
11
25
|
## Usage
|
|
12
26
|
|
|
13
27
|
```bash
|
|
14
|
-
mothership --
|
|
28
|
+
mothership --config mothership.toml
|
|
15
29
|
```
|
|
16
30
|
|
|
17
|
-
|
|
31
|
+
If you install the stub gem directly on a platform without a matching packaged binary, the launcher will tell you that no bundled binary is present.
|
|
32
|
+
|
|
33
|
+
## Supported Platforms
|
|
34
|
+
|
|
35
|
+
- Linux: `x86_64-linux`, `aarch64-linux`
|
|
36
|
+
- macOS: `x86_64-darwin`, `arm64-darwin`
|
|
37
|
+
|
|
38
|
+
All packaged binaries are precompiled. No local Rust toolchain is required to run the gem.
|
|
39
|
+
|
|
40
|
+
## Release Workflow
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
cd mothership/gem
|
|
44
|
+
bundle exec rake gem:build
|
|
45
|
+
bundle exec rake gem:build_current_platform
|
|
46
|
+
bundle exec rake gem:build_platforms
|
|
47
|
+
bundle exec rake gem:push
|
|
48
|
+
# or
|
|
49
|
+
bundle exec rake gem:push_all
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Documentation
|
|
53
|
+
|
|
54
|
+
- [Main Repository](https://github.com/seuros/mothership)
|
|
55
|
+
- [Configuration Guide](https://github.com/seuros/mothership#configuration)
|
|
56
|
+
- [API Documentation](https://docs.rs/mothership)
|
|
18
57
|
|
|
19
58
|
## License
|
|
20
59
|
|
data/exe/mothership
CHANGED
|
@@ -1,44 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
binary = File.expand_path("../libexec/mothership", __dir__)
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exec(binary, *ARGV)
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def self.detect_binary
|
|
14
|
-
os = RbConfig::CONFIG["host_os"]
|
|
15
|
-
arch = RbConfig::CONFIG["host_cpu"]
|
|
16
|
-
|
|
17
|
-
platform_os = case os
|
|
18
|
-
when /darwin/i then "darwin"
|
|
19
|
-
when /linux/i then "linux"
|
|
20
|
-
else
|
|
21
|
-
abort "Unsupported OS: #{os}"
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
platform_arch = case arch
|
|
25
|
-
when /x86_64|amd64/i then "x86_64"
|
|
26
|
-
when /aarch64|arm64/i then "arm64"
|
|
27
|
-
else
|
|
28
|
-
abort "Unsupported architecture: #{arch}"
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
exe_dir = File.expand_path(__dir__)
|
|
32
|
-
binary_name = "mothership-#{platform_os}-#{platform_arch}"
|
|
33
|
-
binary_path = File.join(exe_dir, binary_name)
|
|
34
|
-
|
|
35
|
-
unless File.exist?(binary_path)
|
|
36
|
-
abort "Binary not found for #{platform_os}-#{platform_arch}: #{binary_path}"
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
binary_path
|
|
40
|
-
end
|
|
41
|
-
end
|
|
6
|
+
unless File.file?(binary)
|
|
7
|
+
warn "guardship stub gem installed: no bundled mothership binary was found at #{binary}."
|
|
8
|
+
warn "Install a platform-specific guardship gem release, or use cargo install mothership."
|
|
9
|
+
exit 1
|
|
42
10
|
end
|
|
43
11
|
|
|
44
|
-
|
|
12
|
+
exec binary, *ARGV
|
data/libexec/mothership
ADDED
|
Binary file
|
metadata
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: guardship
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.102
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- Abdelkader Boudih
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
-
dependencies:
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rake
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '13.0'
|
|
19
|
+
type: :development
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '13.0'
|
|
26
|
+
description: Platform-specific Mothership gem with a bundled native binary.
|
|
14
27
|
email:
|
|
15
28
|
- oss@seuros.com
|
|
16
29
|
executables:
|
|
@@ -21,16 +34,14 @@ files:
|
|
|
21
34
|
- LICENSE
|
|
22
35
|
- README.md
|
|
23
36
|
- exe/mothership
|
|
24
|
-
-
|
|
25
|
-
- lib/mothership.rb
|
|
26
|
-
- lib/mothership/version.rb
|
|
37
|
+
- libexec/mothership
|
|
27
38
|
homepage: https://github.com/seuros/mothership
|
|
28
39
|
licenses:
|
|
29
40
|
- MIT
|
|
30
41
|
metadata:
|
|
31
|
-
homepage_uri: https://github.com/seuros/mothership
|
|
32
42
|
source_code_uri: https://github.com/seuros/mothership
|
|
33
43
|
changelog_uri: https://github.com/seuros/mothership/blob/master/CHANGELOG.md
|
|
44
|
+
rubygems_mfa_required: 'true'
|
|
34
45
|
rdoc_options: []
|
|
35
46
|
require_paths:
|
|
36
47
|
- lib
|
|
@@ -38,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
38
49
|
requirements:
|
|
39
50
|
- - ">="
|
|
40
51
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: 3.0
|
|
52
|
+
version: '3.0'
|
|
42
53
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
54
|
requirements:
|
|
44
55
|
- - ">="
|
|
45
56
|
- !ruby/object:Gem::Version
|
|
46
57
|
version: '0'
|
|
47
58
|
requirements: []
|
|
48
|
-
rubygems_version:
|
|
59
|
+
rubygems_version: 3.6.9
|
|
49
60
|
specification_version: 4
|
|
50
|
-
summary:
|
|
61
|
+
summary: Mothership gem wrapper
|
|
51
62
|
test_files: []
|
|
Binary file
|
data/lib/mothership/version.rb
DELETED