Skip to content

version 1.2.4#12

Merged
tilo merged 1 commit into
mainfrom
version-1.2.4
Jul 1, 2026
Merged

version 1.2.4#12
tilo merged 1 commit into
mainfrom
version-1.2.4

Conversation

@tilo

@tilo tilo commented Jul 1, 2026

Copy link
Copy Markdown
Owner

see changelog

@tilo tilo requested a review from Copilot July 1, 2026 15:33
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.84%. Comparing base (0ab8258) to head (e50fd12).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #12   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files           7        8    +1     
  Lines        1320     1333   +13     
=======================================
+ Hits         1318     1331   +13     
  Misses          2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the gem’s build process to default to portable C-extension binaries (avoiding host-instruction crashes) while adding an opt-in mechanism to tune or maximize CPU-specific optimizations at install time, and documents the new behavior.

Changes:

  • Introduces a pure, testable CPU-flag selection module (SmarterJSON::CpuFlags) plus RSpec coverage for its contract.
  • Updates extconf.rb to probe compiler support for candidate CPU flags and apply them based on SMARTER_JSON_PERFORMANCE.
  • Documents the new build-time performance levels in the README/docs and records the release notes; bumps the gem version.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
spec/cpu_flags_spec.rb Adds RSpec contract tests for CPU optimization flag selection behavior.
ext/smarter_json/cpu_flags.rb Implements mkmf-free normalization/selection of CPU flags for portable/tuned/max builds.
ext/smarter_json/extconf.rb Integrates compiler probing + env-controlled CPU flag selection into build optflags.
README.md Documents SMARTER_JSON_PERFORMANCE build-time performance/portability tradeoffs and examples.
docs/_introduction.md Adds introduction docs section explaining build-time performance tuning and safety.
CHANGELOG.md Records the portable-default change and the new build option for the 1.2.4 entry.
lib/smarter_json/version.rb Bumps gem version constant to 1.2.4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/smarter_json/version.rb
@tilo tilo changed the title version 2.1.4 version 1.2.4 Jul 1, 2026
@tilo tilo merged commit 119784e into main Jul 1, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants