guardship 0.0.52

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '021598878e1ede7419773f6ab1fe73058378f3104ae28277f1201a162ef8a5f7'
4
+ data.tar.gz: 0cdb157d36113314bdbf7a221a74b4bddf819d8f322dfa00c9f91505fa6c952a
5
+ SHA512:
6
+ metadata.gz: 65901ef27cb4330c09b260917eaf065216b0e9cc1133b5684f8feab757fbe716ac1a6b0ff1f138d18b690c435e32a1e09c2e8b83e5e93d5749ddf0fcab0a0545
7
+ data.tar.gz: c6316d37bda6c8fe6941f44f34af9f9ee6890c72ec007f5f3a198f2fb4b62b6633815c794e4e34adc95d59d668b351afe07b40f162f562e165a15d06f231449e
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Abdelkader Boudih
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Guardship
2
+
3
+ Precompiled binary distribution of [Mothership](https://github.com/seuros/mothership) - a process supervisor with HTTP exposure.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ gem install guardship
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```bash
14
+ mothership --help
15
+ ```
16
+
17
+ For full documentation, see the [main repository](https://github.com/seuros/mothership).
18
+
19
+ ## License
20
+
21
+ MIT
data/exe/mothership ADDED
@@ -0,0 +1,44 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "rbconfig"
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
42
+ end
43
+
44
+ Mothership::Launcher.run
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Mothership
4
+ VERSION = "0.0.52"
5
+ end
data/lib/mothership.rb ADDED
@@ -0,0 +1,11 @@
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
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guardship
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.52
5
+ platform: ruby
6
+ authors:
7
+ - Abdelkader Boudih
8
+ bindir: exe
9
+ cert_chain: []
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.
14
+ email:
15
+ - oss@seuros.com
16
+ executables:
17
+ - mothership
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - LICENSE
22
+ - README.md
23
+ - 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
+ homepage: https://github.com/seuros/mothership
31
+ licenses:
32
+ - MIT
33
+ metadata:
34
+ homepage_uri: https://github.com/seuros/mothership
35
+ source_code_uri: https://github.com/seuros/mothership
36
+ changelog_uri: https://github.com/seuros/mothership/blob/master/CHANGELOG.md
37
+ rdoc_options: []
38
+ require_paths:
39
+ - lib
40
+ required_ruby_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 3.0.0
45
+ required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ requirements: []
51
+ rubygems_version: 4.0.1
52
+ specification_version: 4
53
+ summary: Process supervisor with HTTP exposure - precompiled binary distribution
54
+ test_files: []