guardship 0.0.52 → 0.0.101

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '021598878e1ede7419773f6ab1fe73058378f3104ae28277f1201a162ef8a5f7'
4
- data.tar.gz: 0cdb157d36113314bdbf7a221a74b4bddf819d8f322dfa00c9f91505fa6c952a
3
+ metadata.gz: 9b62ece2b32bb6cb9b3b63f9aa7e6f31a1df490b720bc2c036d3175c40b36216
4
+ data.tar.gz: f9c6919ef68bda638b989197c16154adc665e67b6700f90f0833463f86cf02ff
5
5
  SHA512:
6
- metadata.gz: 65901ef27cb4330c09b260917eaf065216b0e9cc1133b5684f8feab757fbe716ac1a6b0ff1f138d18b690c435e32a1e09c2e8b83e5e93d5749ddf0fcab0a0545
7
- data.tar.gz: c6316d37bda6c8fe6941f44f34af9f9ee6890c72ec007f5f3a198f2fb4b62b6633815c794e4e34adc95d59d668b351afe07b40f162f562e165a15d06f231449e
6
+ metadata.gz: 104a013de71d19245454211fac910ea9bda1ff88a7acba80150ec3990f557d289d0e7681da72a4d3dbb11d633921115e22d746cea2abda48302e72d02f54d7dc
7
+ data.tar.gz: a8e47736d0187dfc5d8e5d8e9c5993de6bd88af1fe8af6035db6d762642954bebc546bfef0a13417c5aaa83acb471bb9a77f45edb9557deaee6b49218f1232a9
data/README.md CHANGED
@@ -1,20 +1,59 @@
1
1
  # Guardship
2
2
 
3
- Precompiled binary distribution of [Mothership](https://github.com/seuros/mothership) - a process supervisor with HTTP exposure.
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
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 --help
28
+ mothership --config mothership.toml
15
29
  ```
16
30
 
17
- For full documentation, see the [main repository](https://github.com/seuros/mothership).
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, arm64
36
+ - macOS: x86_64 (Intel), ARM64 (Apple Silicon)
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
- require "rbconfig"
4
+ binary = File.expand_path("../libexec/mothership", __dir__)
5
5
 
6
- module Mothership
7
- class Launcher
8
- def self.run
9
- binary = detect_binary
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
- Mothership::Launcher.run
12
+ exec binary, *ARGV
metadata CHANGED
@@ -1,16 +1,30 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guardship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.101
5
5
  platform: ruby
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
- description: Process supervisor with HTTP exposure - wrap, monitor, and expose your
13
- fleet. This gem provides precompiled binaries.
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: Stub Ruby gem for Mothership. Platform-specific releases bundle the native
27
+ binary.
14
28
  email:
15
29
  - oss@seuros.com
16
30
  executables:
@@ -21,19 +35,13 @@ files:
21
35
  - LICENSE
22
36
  - README.md
23
37
  - exe/mothership
24
- - exe/mothership-darwin-arm64
25
- - exe/mothership-darwin-x86_64
26
- - exe/mothership-linux-aarch64
27
- - exe/mothership-linux-x86_64
28
- - lib/mothership.rb
29
- - lib/mothership/version.rb
30
38
  homepage: https://github.com/seuros/mothership
31
39
  licenses:
32
40
  - MIT
33
41
  metadata:
34
- homepage_uri: https://github.com/seuros/mothership
35
42
  source_code_uri: https://github.com/seuros/mothership
36
43
  changelog_uri: https://github.com/seuros/mothership/blob/master/CHANGELOG.md
44
+ rubygems_mfa_required: 'true'
37
45
  rdoc_options: []
38
46
  require_paths:
39
47
  - lib
@@ -41,14 +49,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
49
  requirements:
42
50
  - - ">="
43
51
  - !ruby/object:Gem::Version
44
- version: 3.0.0
52
+ version: '3.0'
45
53
  required_rubygems_version: !ruby/object:Gem::Requirement
46
54
  requirements:
47
55
  - - ">="
48
56
  - !ruby/object:Gem::Version
49
57
  version: '0'
50
58
  requirements: []
51
- rubygems_version: 4.0.1
59
+ rubygems_version: 4.0.3
52
60
  specification_version: 4
53
- summary: Process supervisor with HTTP exposure - precompiled binary distribution
61
+ summary: Mothership gem wrapper
54
62
  test_files: []
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Mothership
4
- VERSION = "0.0.52"
5
- end
data/lib/mothership.rb DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "mothership/version"
4
-
5
- module Mothership
6
- class Error < StandardError; end
7
-
8
- def self.executable_path
9
- File.expand_path("../../exe/mothership", __dir__)
10
- end
11
- end