guardship 0.0.52-x86_64-darwin

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: 1a3f392620b252ebc7b146d961c48cd3eef7d0f90a10e57650bc97ac5063c38a
4
+ data.tar.gz: 7fc927857beaba141e3c3dc6d62cd753ff7fb36f26231af090a1b063a98207bd
5
+ SHA512:
6
+ metadata.gz: db2bc014d04295c892455dd8f335cc16ea32e69a3e80333786ed758f0d6faab55f257a3660cb0b85c047cbd9c447f06f14ce603a3f060f68ac6b1c2b4eab0a87
7
+ data.tar.gz: bfa4b90a84a406bb6e66b025e755b43721496ac2c21ce64429060b5eb6e013ccf31c1665e0a99a98c4ffff4c8f63497aa729f8a2c3b6925a76c419e7cc2074f9
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
+ # Mothership Gem
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 mothership
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
@@ -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,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: guardship
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.52
5
+ platform: x86_64-darwin
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-x86_64
25
+ - lib/mothership.rb
26
+ - lib/mothership/version.rb
27
+ homepage: https://github.com/seuros/mothership
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://github.com/seuros/mothership
32
+ source_code_uri: https://github.com/seuros/mothership
33
+ changelog_uri: https://github.com/seuros/mothership/blob/master/CHANGELOG.md
34
+ rdoc_options: []
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: 3.0.0
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubygems_version: 4.0.1
49
+ specification_version: 4
50
+ summary: Process supervisor with HTTP exposure - precompiled binary distribution
51
+ test_files: []