Add precompiled binary gem support and modernize build system#2
Open
wesleyjellis wants to merge 1 commit into
Open
Add precompiled binary gem support and modernize build system#2wesleyjellis wants to merge 1 commit into
wesleyjellis wants to merge 1 commit into
Conversation
- Build a static, self-contained extension: vendor OpsLevel's jq fork
(env/$ENV always return {}) plus Onigmo 6.2.0 for regex support,
compiled with --disable-shared --enable-static --with-pic
- Move the binary to lib/jq/jq_core.so and load a per-Ruby-minor
precompiled binary when present, falling back to the source build
- Add .github/workflows/cibuildgem.yaml to compile, test, verify, and
release fat platform gems (x86_64-linux, arm64-darwin) for Ruby
3.3/3.4/4.0 via Shopify's cibuildgem
- Declare required_ruby_version >= 3.3; drop mini_portile2 from
platform gems
- Add specs guarding regex support and the fork's empty env behavior
- Bump version to 0.3.0; update README; remove stale .travis.yml
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpxfE1fTm5fFQYBqWTzg4y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the ruby-jq gem's build and release infrastructure by adding support for precompiled platform-specific binaries, updating to use OpsLevel's jq fork, and migrating from Travis CI to GitHub Actions with cibuildgem.
Key Changes
.github/workflows/cibuildgem.yaml) to build and release platform-specific gems forx86_64-linuxandarm64-darwinacross multiple Ruby versions (3.3, 3.4, 4.0)env/$ENValways return an empty objectRakefileto output compiled extensions tolib/jq/and excludemini_portile2from platform gem dependencieslib/jq.rbto load precompiled binaries matching the Ruby version, with fallback to source-compiled extensionextconf.rbto compile both Onigmo and jq statically with proper configuration options.travis.ymlin favor of GitHub Actions workflowREADME.mdto document precompiled binary availability and build requirementsMetrics/LineLengthtoLayout/LineLength)Notable Implementation Details
jq/3.3/jq_core) with graceful fallbackenvbehaviorhttps://claude.ai/code/session_01PpxfE1fTm5fFQYBqWTzg4y