tuxedo-r 0.0.2 → 0.0.3

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: f5ae78b346bf72f7c909a1abcb02013fa6675ee6da444626be74732ed43f2ecb
4
- data.tar.gz: add6048f48f2a78af145ad0d34ea2786d1751d8050609f52547d845076657801
3
+ metadata.gz: 1fbe1b27a0e92fe5bcedce440527ea1754381047f144a98d82e3ed05c015cc95
4
+ data.tar.gz: 271b79d9056cf3e0066bce16631dc26e088def726a1602606b200bd9f0a3974a
5
5
  SHA512:
6
- metadata.gz: 813d657b22218327db60e4784f9a6592d3966e1a67d0aee4cfd240881ef776b8f49f2c4accc5d0292a5f76d0863c89b0c88bb9fc27945cee3984c53ebc4d1239
7
- data.tar.gz: 1d5c6efb75e51a2f3cbd69a7197160bf1bde201a0d730d10ec153dc5a6dfbfab4d1c783ccf5a0d7950b88390237530c1dd912aa7ef92db7ac48762c887d48b8b
6
+ metadata.gz: d1595ffbd9997b5b474d55c8f6109c12df5a8c538b47b739f9453be364a7770537cf2c33fa0ba534ef34433cb4027b97173021eba26772afc21576f4ef697d4f
7
+ data.tar.gz: 2d0364522e608192604d9dfaaa4967fb1aadfa6d5a713c74e0bb2f5fec01d91ba1f77cafc9de0fc234848cf3ddba5cb87e067396bd9e6dc1dc44f766e9cfbebb
data/README.md CHANGED
@@ -28,9 +28,21 @@ tuxedo format .
28
28
  ```
29
29
 
30
30
  RubyGems automatically resolves and installs the platform-specific gem that
31
- matches your machine (for example `tuxedo-r-x86_64-linux`). This release
32
- ships a precompiled binary for x86_64 Linux (glibc) only; on any other
33
- platform, see [Unsupported platforms](#unsupported-platforms). The
31
+ matches your machine (for example `tuxedo-r-x86_64-linux`). From 0.0.3
32
+ there is one for each of these platforms:
33
+
34
+ | Gem platform | Machine |
35
+ | --- | --- |
36
+ | `arm64-darwin` | macOS, Apple Silicon |
37
+ | `x86_64-darwin` | macOS, Intel |
38
+ | `x86_64-linux` | Linux x86_64, glibc 2.28+ (Debian 10, Ubuntu 20.04, RHEL 8) |
39
+ | `aarch64-linux` | Linux arm64, glibc 2.28+ |
40
+ | `x86_64-linux-musl` | Linux x86_64, musl (Alpine) |
41
+ | `aarch64-linux-musl` | Linux arm64, musl (Alpine) |
42
+ | `x64-mingw-ucrt` | Windows x64 (RubyInstaller 3.1+) |
43
+
44
+ 0.0.2 and earlier ship a binary for x86_64 Linux (glibc) only. On any
45
+ other platform, see [Unsupported platforms](#unsupported-platforms). The
34
46
  [documentation](https://danimar.dev/tuxedo/docs.html) covers what
35
47
  the formatter does, its command line and its configuration.
36
48
 
@@ -44,8 +56,8 @@ older than 3.3.22 resolves the glibc gem, whose binary will not run.
44
56
  ### Unsupported platforms
45
57
 
46
58
  If a precompiled binary isn't available for your platform yet, set
47
- `TUXEDO_INSTALL_DIR` to a directory containing a `tuxedo` executable (for
48
- example, one you built yourself from the
59
+ `TUXEDO_INSTALL_DIR` to a directory containing a `tuxedo` executable
60
+ (`tuxedo.exe` on Windows; for example, one you built yourself from the
49
61
  [Rust crate](https://github.com/danimaribeiro/tuxedo)):
50
62
 
51
63
  ```bash
@@ -60,7 +72,7 @@ bundle exec tuxedo format --check .
60
72
  - `tuxedo-r-<platform>` gems (built by `rake package`, see
61
73
  [`rakelib/package.rake`](https://github.com/danimaribeiro/tuxedo/blob/main/ruby/rakelib/package.rake))
62
74
  each bundle a `tuxedo` binary compiled for that target triple, under
63
- `exe/<platform>/tuxedo`.
75
+ `exe/<platform>/tuxedo` (`tuxedo.exe` on Windows).
64
76
  - The `exe/tuxedo` script installed onto your `PATH` is plain Ruby (RubyGems
65
77
  requires gem executables to be Ruby scripts) — it just finds the right
66
78
  binary for the current platform and `exec`s it, forwarding all arguments and
@@ -5,7 +5,7 @@ module Tuxedo
5
5
  module NativePlatforms
6
6
  # rubygems platform name => rust target triple
7
7
  #
8
- # Keep this in sync with the build matrix in
8
+ # Keep this in sync with the build and build-windows jobs in
9
9
  # tuxedo/.github/workflows/release.yml
10
10
  TARGETS = {
11
11
  "arm64-darwin" => "aarch64-apple-darwin",
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tuxedo
4
4
  module R
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
data/lib/tuxedo/r.rb CHANGED
@@ -29,6 +29,12 @@ module Tuxedo
29
29
  [:cpu, :os, :version].map { |m| Gem::Platform.local.send(m) }.compact.join("-")
30
30
  end
31
31
 
32
+ # The executable's file name on this host: Windows will not run a
33
+ # binary without its `.exe`, so TUXEDO_INSTALL_DIR must name it.
34
+ def binary_name
35
+ Gem.win_platform? ? "tuxedo.exe" : "tuxedo"
36
+ end
37
+
32
38
  # Absolute path to the tuxedo binary that should be executed on this host.
33
39
  #
34
40
  # Resolution order:
@@ -48,7 +54,7 @@ module Tuxedo
48
54
  end
49
55
 
50
56
  warn "NOTE: using TUXEDO_INSTALL_DIR to find the tuxedo executable: #{tuxedo_install_dir}"
51
- exe_file = File.expand_path(File.join(tuxedo_install_dir, "tuxedo"))
57
+ exe_file = File.expand_path(File.join(tuxedo_install_dir, binary_name))
52
58
  else
53
59
  if NativePlatforms::TARGETS.keys.none? { |p| Gem::Platform.match_gem?(Gem::Platform.new(p), GEM_NAME) }
54
60
  raise UnsupportedPlatformException, <<~MESSAGE
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tuxedo-r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danimar Ribeiro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-25 00:00:00.000000000 Z
11
+ date: 2026-11-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Tuxedo is a Ruby code formatter written in Rust, distributed as a