rbs-sentinel 0.2.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/bin/sentinel +31 -0
- data/exe/sentinel-aarch64-darwin +0 -0
- data/exe/sentinel-aarch64-linux +0 -0
- data/exe/sentinel-x86_64-darwin +0 -0
- data/exe/sentinel-x86_64-linux +0 -0
- data/lib/sentinel.rb +3 -0
- metadata +53 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 63e1ed3c23af5cfca25c09d750843f64e53049c51259f44c7c60a450fdd8c19a
|
|
4
|
+
data.tar.gz: 82ffc838eda39a71dffbf9336e490decf1df648ea619ceab4b285be8ebb8aadb
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 50559ac066328ea1f6041a59e6382bf639ebb4719e19e5f20bdbfbc2995a6fcb60782e703ea935d7a3801e5b626dbfed08cc99321ac9e816dd39cbe3fbc88546
|
|
7
|
+
data.tar.gz: 75e98e865e76f390e550ee169e919af1503583e2b21cebf01e9cda3cd40299a0e95c83c1cf30f2b9e59764ce019428833493b72f73ddce72194fd31cdcaeca9d
|
data/bin/sentinel
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
require "rbconfig"
|
|
3
|
+
|
|
4
|
+
# Detect OS
|
|
5
|
+
host_os = RbConfig::CONFIG['host_os']
|
|
6
|
+
os = case host_os
|
|
7
|
+
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
|
8
|
+
"windows"
|
|
9
|
+
when /darwin|mac os/
|
|
10
|
+
"darwin"
|
|
11
|
+
else
|
|
12
|
+
"linux"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# Detect CPU architecture
|
|
16
|
+
cpu = RbConfig::CONFIG['host_cpu']
|
|
17
|
+
arch = case cpu
|
|
18
|
+
when /arm|aarch64/
|
|
19
|
+
"aarch64"
|
|
20
|
+
else
|
|
21
|
+
"x86_64"
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
binary_path = File.expand_path("../exe/sentinel-#{arch}-#{os}", __dir__)
|
|
25
|
+
|
|
26
|
+
if File.exist?(binary_path)
|
|
27
|
+
# Forward all arguments from the ruby command to the Rust binary
|
|
28
|
+
exec(binary_path, *ARGV)
|
|
29
|
+
else
|
|
30
|
+
abort "Sentinel binary not found for your platform (#{host_os})."
|
|
31
|
+
end
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/sentinel.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: rbs-sentinel
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Andrew Gauger
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2026-03-17 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: Sentinel scans Ruby files and generates RBS signatures using a high-performance
|
|
14
|
+
Rust transpiler.
|
|
15
|
+
email:
|
|
16
|
+
- andygauge@gmail.com
|
|
17
|
+
executables:
|
|
18
|
+
- sentinel
|
|
19
|
+
extensions: []
|
|
20
|
+
extra_rdoc_files: []
|
|
21
|
+
files:
|
|
22
|
+
- bin/sentinel
|
|
23
|
+
- exe/sentinel-aarch64-darwin
|
|
24
|
+
- exe/sentinel-aarch64-linux
|
|
25
|
+
- exe/sentinel-x86_64-darwin
|
|
26
|
+
- exe/sentinel-x86_64-linux
|
|
27
|
+
- lib/sentinel.rb
|
|
28
|
+
homepage: https://github.com/andygauge/sentinel-rb
|
|
29
|
+
licenses:
|
|
30
|
+
- MIT
|
|
31
|
+
metadata:
|
|
32
|
+
homepage_uri: https://github.com/andygauge/sentinel-rb
|
|
33
|
+
source_code_uri: https://github.com/andygauge/sentinel-rb
|
|
34
|
+
post_install_message:
|
|
35
|
+
rdoc_options: []
|
|
36
|
+
require_paths:
|
|
37
|
+
- lib
|
|
38
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '3.0'
|
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0'
|
|
48
|
+
requirements: []
|
|
49
|
+
rubygems_version: 3.4.10
|
|
50
|
+
signing_key:
|
|
51
|
+
specification_version: 4
|
|
52
|
+
summary: Rust-powered RBS generator
|
|
53
|
+
test_files: []
|