rcee_precompiled 0.5.0-arm64-darwin → 0.5.1-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c7ede9eca5fdeee84140fc01fd8bb1c5818e0c923a151766321543cfc51867a
4
- data.tar.gz: 628820124e8ca741bc956342a141b0e9d758107cfa7b5a783b2c9d7e6f332aea
3
+ metadata.gz: 82395af820b053862536b578daa22a17561ae82015b5bd97fcc3053c0013e097
4
+ data.tar.gz: a1f9429f21e08e24e0995eba31130c7291abd34c0bdcc938b923432af93a52b4
5
5
  SHA512:
6
- metadata.gz: 414bc4305791a66c55f851944ac51762f54446aa9a88430e82a649618dab98d5805cbb21dbc8a487bd5308110189f2345a7c8ca0b8b9aeb34d7ed67c9890b74e
7
- data.tar.gz: c6f08d8f7e8b14a98fb0b3397d6d2877e5c441552f57a29ea3b5d1905b38a8fe5b3433e92bc554ddd3352c47afd95a1f88ba5dc61362d59faef9663123ee4263
6
+ metadata.gz: 64b8252f6bb752f7338afec7d1717d2daf635da9961a69b9bf2c93b9284054972489fbba86fa9ee6aedd575fc84c8971b1cd5707eff48e2f24bada44233ca0a2
7
+ data.tar.gz: 72e66b6a2bb0e40551f75c605158dc7cfd87b97c03dba5bff1d54f6f6955b66ea1658278d92c388df9bfc6146571971fdaf237a4167bf892d393e7f2280c17ad
data/README.md CHANGED
@@ -28,13 +28,18 @@ First, we need to add some features to our `Rake::ExtensionTask` in `Rakefile`:
28
28
  ``` ruby
29
29
  cross_rubies = ["3.3.0", "3.2.0", "3.1.0", "3.0.0"]
30
30
  cross_platforms = [
31
- "x64-mingw32",
31
+ "aarch64-linux-gnu",
32
+ "aarch64-linux-musl",
33
+ "arm-linux-gnu",
34
+ "arm-linux-musl",
35
+ "arm64-darwin",
32
36
  "x64-mingw-ucrt",
33
- "x86-linux",
34
- "x86_64-linux",
35
- "aarch64-linux",
37
+ "x64-mingw32",
38
+ "x86-linux-gnu",
39
+ "x86-linux-musl",
36
40
  "x86_64-darwin",
37
- "arm64-darwin",
41
+ "x86_64-linux-gnu",
42
+ "x86_64-linux-musl",
38
43
  ]
39
44
  ENV["RUBY_CC_VERSION"] = cross_rubies.join(":")
40
45
 
@@ -161,6 +166,22 @@ end
161
166
  Go ahead and try it! `gem install rcee_precompiled`. If you're on windows, linux, or macos you should get a precompiled version that installs in under a second. Everyone else (hello FreeBSD people!) it'll take a few more seconds to build the vanilla gem's packaged tarball.
162
167
 
163
168
 
169
+ ### Windows notes
170
+
171
+ You may have noticed that the gem for `x64-mingw32` only contains `.../3.0/precompiled.so` and not a shared library for 3.1, 3.2, or 3.3. Conversely, the gem for `x64-mingw-ucrt` does *not* contain 3.0 (but contains 3.1..3.3 inclusive).
172
+
173
+ This is because the Windows installer for Ruby switched from `msvcrt` to `ucrt` for the C standard library. Rubies 3.0 and earlier use `msvcrt` but later Rubies use `ucrt`. So if you're on Ruby 3.0 on Windows, bundler will resolve your platform as `x64-mingw32`; but if you're on Ruby 3.1 or later, bundler will resolve your platform as `x64-mingw-ucrt`. See [the rubyinstaller release notes](https://rubyinstaller.org/2021/12/31/rubyinstaller-3.1.0-1-released.html) for more information.
174
+
175
+ This is all taken care of for you by `rake-compiler-dock` and there's no additional work necessary to create those specialized native gems. However, you'll see this libc transition in the CI testing matrix in `.github/workflows/precompiled.yml`.
176
+
177
+
178
+ ### Linux notes
179
+
180
+ On Linux, the default C library for a long time was GNU libc, and so when you see native gem platforms like `x86_64-linux` the _implied_ libc is `gnu`. However, in recent years the `musl` libc project has gotten off the ground in distributions like Alpine. Often, `musl` systems are able to run code compiled on (and for) `gnu` systems; but not always. And in those incompatible cases, users had to work around it or avoid Alpine.
181
+
182
+ As of Rubygems 3.3.22, the `gem` and `bundle` tools are able to distinguish platforms by their libc type (e.g., `x86_64-linux-gnu` versus `x86_64-linux-musl`); and `rake-compiler-dock` started to be able to build `musl` native gems as of v1.5.0.
183
+
184
+
164
185
  ## Testing
165
186
 
166
187
  See [.github/workflows/precompiled.yml](../.github/workflows/precompiled.yml)
data/Rakefile CHANGED
@@ -8,17 +8,17 @@ require "rake_compiler_dock"
8
8
 
9
9
  cross_rubies = ["3.3.0", "3.2.0", "3.1.0", "3.0.0"]
10
10
  cross_platforms = [
11
- "aarch64-linux",
11
+ "aarch64-linux-gnu",
12
12
  "aarch64-linux-musl",
13
- "arm-linux",
13
+ "arm-linux-gnu",
14
14
  "arm-linux-musl",
15
15
  "arm64-darwin",
16
16
  "x64-mingw-ucrt",
17
17
  "x64-mingw32",
18
- "x86-linux",
18
+ "x86-linux-gnu",
19
19
  "x86-linux-musl",
20
20
  "x86_64-darwin",
21
- "x86_64-linux",
21
+ "x86_64-linux-gnu",
22
22
  "x86_64-linux-musl",
23
23
  ]
24
24
  ENV["RUBY_CC_VERSION"] = cross_rubies.join(":")
@@ -42,6 +42,11 @@ Rake::ExtensionTask.new("precompiled", rcee_precompiled_spec) do |ext|
42
42
  # remove things not needed for precompiled gems
43
43
  spec.dependencies.reject! { |dep| dep.name == "mini_portile2" }
44
44
  spec.files.reject! { |file| File.fnmatch?("*.tar.gz", file) }
45
+
46
+ if spec.platform.os == "linux"
47
+ # the `-gnu` suffix is not recognized in earlier versions of rubygems
48
+ spec.required_rubygems_version.concat([">= 3.3.22"])
49
+ end
45
50
  end
46
51
  end
47
52
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RCEE
4
4
  module Precompiled
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcee_precompiled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-27 00:00:00.000000000 Z
11
+ date: 2024-01-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Part of a project to explain how Ruby C extensions work.
14
14
  email: