tail_merge 0.4.2-x64-mingw-ucrt → 0.4.3-x64-mingw-ucrt

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: 2cabe3101dcc8fcfe920c4cb3d1bbdeab0a83b0e74da9b9dee7ec83afce97d43
4
- data.tar.gz: 524753afdc4c7122a316ecf9c2246a0995dbaac3f9d2c9217cb8dc09459a9c88
3
+ metadata.gz: 997068cea39791406c2f61733e730e05aa6b69e603b12e54f37bffff5040f188
4
+ data.tar.gz: 25d131749d5a26fc271fdbb403d868cfd3a5eb9c80f7a85f86be7f4d3ac1003b
5
5
  SHA512:
6
- metadata.gz: 3ba3b311de1b34c146f7c7db355f9be9a3e778fb07bdb5dbc46813f0539daa1106ec57a6a4b850ebd17bc446852ee45e9728ca19679d293f164be9a71c6bebc2
7
- data.tar.gz: 1213712960b1e23176b25027694fc5e6d40b79ddc7b625ef877aae253b8fb7411b63ffa1128ba2a84fb34a3c14a4e84eb6309ab1cc2871c5c5cb4a85d2294b56
6
+ metadata.gz: e0aaaccc6a1af228851c34f64e8dc9c586036a55f308e8ff15ce59103b5d00597b35323a7955250a97195a423c8cc0a18391cb877414543048e7b6f27a5e5fa6
7
+ data.tar.gz: 13c6149830d1800d2dfe9af9a68d90942af6b18b801b5d555574b7c3786db1280f2eb55dfaada0cdc8f8f4ced54c4861cc783d6e2533545708f8c5e9218b5777
data/Rakefile CHANGED
@@ -41,12 +41,29 @@ PLATFORMS = %w[
41
41
  RbSys::ExtensionTask.new("merger", GEMSPEC) do |ext|
42
42
  ext.lib_dir = "lib/tail_merge"
43
43
  ext.cross_compile = true
44
- ext.cross_platform = %w[x86-mingw32 x64-mingw-ucrt x64-mingw32 x86-linux x86_64-linux x86_64-darwin arm64-darwin]
44
+ ext.cross_platform = %w[x86-mingw32 x64-mingw-ucrt x64-mingw32 x86-linux x86_64-linux aarch64-linux x86_64-darwin arm64-darwin]
45
45
  end
46
46
 
47
47
  desc "Build native extension for a given platform (i.e. `rake 'native[x86_64-linux]'`)"
48
48
  task :native, [:platform] do |_t, platform:|
49
- sh "bundle", "exec", "rb-sys-dock", "--platform", platform, "--build"
49
+ raise ArgumentError, "platform is required, e.g. rake 'native[x86_64-linux]'" if platform.nil? || platform.empty?
50
+
51
+ if platform.end_with?("-darwin")
52
+ # On macOS runners, prefer the native rake task (no Docker available)
53
+ # Map generic arm64-darwin/x86_64-darwin to specific host suffix (e.g. arm64-darwin23)
54
+ require "rbconfig"
55
+ ruby_platform = RUBY_PLATFORM # e.g. "arm64-darwin23"
56
+ darwin_suffix = ruby_platform[/darwin\d+/, 0]
57
+ mapped = platform
58
+ if darwin_suffix && platform =~ /^(arm64|x86_64)-darwin$/
59
+ arch = platform.split("-").first
60
+ mapped = "#{arch}-#{darwin_suffix}"
61
+ end
62
+ sh "bundle", "exec", "rake", "native:#{mapped}", "gem"
63
+ else
64
+ # For Linux/Windows, use Docker-based cross compilation
65
+ sh "bundle", "exec", "rb-sys-dock", "--platform", platform, "--build"
66
+ end
50
67
  end
51
68
 
52
69
  task default: %i[compile test rubocop]
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class TailMerge
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
data/lib/tail_merge.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "tail_merge/version"
4
- require_relative "tail_merge/merger"
4
+ require "tail_merge/merger"
5
5
 
6
6
  # Main class for merging tailwind classes.
7
7
  class TailMerge
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tail_merge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Achilleas Buisman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-08-20 00:00:00.000000000 Z
11
+ date: 2025-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Merge Tailwind CSS classes
14
14
  email:
@@ -28,6 +28,7 @@ files:
28
28
  - lib/tail_merge/3.4/merger.so
29
29
  - lib/tail_merge/version.rb
30
30
  - sig/tail_merge.rbs
31
+ - tail_merge-0.4.2.gem
31
32
  homepage: https://github.com/abuisman/tail_merge
32
33
  licenses:
33
34
  - MIT