mergify-ci-core 2026.10.9 → 2026.10.10

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: f102527bcdde02b487b271fa075f756305612818fc0ee514da9aecbf12c47517
4
- data.tar.gz: 5d309eecc541abbaba000403cf8c69e2a29664f54034856e3501adda5d285ef6
3
+ metadata.gz: a0c00a5a46db6b11c2247e78fdb83480c9e90f8178e0031a91ca1c92bccea954
4
+ data.tar.gz: 3b9a1516f212b88cbc3a577df31b963eea655866c22fa8071d33e55b84171c9c
5
5
  SHA512:
6
- metadata.gz: 5ce6f7b3e1e253768ab666a66df139204816f0e629541b00939e05ce23512f2ab078ce8cb1b14c967c52791e01c4739df24a2dce8d6a9e072e0507fa7be06612
7
- data.tar.gz: c2fb519ced6261125270f645689d31d6314375da78a45b4fe5a199212734a96d69ffceb262252ad382fd07364f7457ed8ab4dc6a4dc3922422dc79ef1be2184a
6
+ metadata.gz: 669619e5489efc0d7bfeab0a78b19ae02e674343e59d040cb2e55211757edf42c6a09fc24279bde96d4a2f82bd17d7833e4789c5592c3dc6df1c881dd9687946
7
+ data.tar.gz: 763fd8b995d612b0f352ae90c4c67493c6529ff574ac90e97301d7a014bb39da31f2a7d2c06883005f1f3a799fcfed42b8f4574374993abb0ca14fe770436343
data/README.md CHANGED
@@ -6,7 +6,7 @@ such as [rspec-mergify](https://rubygems.org/gems/rspec-mergify).
6
6
 
7
7
  It ships precompiled, so nothing is built on your machine. Each platform gem
8
8
  carries an extension for Ruby 3.1 through 4.0, for Linux x86_64 and aarch64
9
- (glibc 2.30 or newer, and musl), macOS arm64 and x86_64, and Windows x64
9
+ (glibc 2.28 or newer, and musl), macOS arm64 and x86_64, and Windows x64
10
10
  (UCRT). Anywhere else the plain gem installs, and the client still runs your
11
11
  suite but reports nothing to Mergify.
12
12
 
data/THIRD_PARTY_LICENSES CHANGED
@@ -8,7 +8,7 @@ The source code of each component is available from the repository listed
8
8
  next to it, as the Mozilla Public License 2.0 requires for the components
9
9
  under it.
10
10
 
11
- Apache License 2.0 (233)
11
+ Apache License 2.0 (229)
12
12
  MIT License (74)
13
13
  Unicode License v3 (19)
14
14
  ISC License (5)
@@ -474,11 +474,7 @@ Used by:
474
474
  - windows-link 0.2.1 (https://github.com/microsoft/windows-rs)
475
475
  - windows-result 0.4.1 (https://github.com/microsoft/windows-rs)
476
476
  - windows-strings 0.5.1 (https://github.com/microsoft/windows-rs)
477
- - windows-sys 0.52.0 (https://github.com/microsoft/windows-rs)
478
477
  - windows-sys 0.61.2 (https://github.com/microsoft/windows-rs)
479
- - windows-targets 0.52.6 (https://github.com/microsoft/windows-rs)
480
- - windows_x86_64_gnu 0.52.6 (https://github.com/microsoft/windows-rs)
481
- - windows_x86_64_msvc 0.52.6 (https://github.com/microsoft/windows-rs)
482
478
 
483
479
  Apache License
484
480
  Version 2.0, January 2004
@@ -2571,14 +2567,14 @@ limitations under the License.
2571
2567
  Apache License 2.0 (Apache-2.0)
2572
2568
 
2573
2569
  Used by:
2574
- - futures-channel 0.3.33 (https://github.com/rust-lang/futures-rs)
2575
- - futures-core 0.3.33 (https://github.com/rust-lang/futures-rs)
2570
+ - futures-channel 0.3.34 (https://github.com/rust-lang/futures-rs)
2571
+ - futures-core 0.3.34 (https://github.com/rust-lang/futures-rs)
2576
2572
  - futures-executor 0.3.33 (https://github.com/rust-lang/futures-rs)
2577
- - futures-io 0.3.33 (https://github.com/rust-lang/futures-rs)
2578
- - futures-macro 0.3.33 (https://github.com/rust-lang/futures-rs)
2579
- - futures-sink 0.3.33 (https://github.com/rust-lang/futures-rs)
2580
- - futures-task 0.3.33 (https://github.com/rust-lang/futures-rs)
2581
- - futures-util 0.3.33 (https://github.com/rust-lang/futures-rs)
2573
+ - futures-io 0.3.34 (https://github.com/rust-lang/futures-rs)
2574
+ - futures-macro 0.3.34 (https://github.com/rust-lang/futures-rs)
2575
+ - futures-sink 0.3.34 (https://github.com/rust-lang/futures-rs)
2576
+ - futures-task 0.3.34 (https://github.com/rust-lang/futures-rs)
2577
+ - futures-util 0.3.34 (https://github.com/rust-lang/futures-rs)
2582
2578
  - futures 0.3.33 (https://github.com/rust-lang/futures-rs)
2583
2579
 
2584
2580
  Apache License
@@ -4954,7 +4950,7 @@ Used by:
4954
4950
  - secret-service 5.2.0 (https://github.com/hwchen/secret-service-rs.git)
4955
4951
  - security-framework-sys 2.17.0 (https://github.com/kornelski/rust-security-framework)
4956
4952
  - security-framework 3.7.0 (https://github.com/kornelski/rust-security-framework)
4957
- - self-replace 1.5.0 (https://github.com/mitsuhiko/self-replace)
4953
+ - self-replace 1.5.1 (https://github.com/mitsuhiko/self-replace)
4958
4954
  - signal-hook-registry 1.4.8 (https://github.com/vorner/signal-hook)
4959
4955
  - smallvec 1.15.2 (https://github.com/servo/rust-smallvec)
4960
4956
  - socket2 0.6.5 (https://github.com/rust-lang/socket2)
@@ -9829,10 +9825,10 @@ SOFTWARE.
9829
9825
  MIT License (MIT)
9830
9826
 
9831
9827
  Used by:
9832
- - jsonschema-regex 0.60.1 (https://github.com/Stranger6667/jsonschema)
9833
- - jsonschema-value 0.60.1 (https://github.com/Stranger6667/jsonschema)
9834
- - jsonschema 0.60.1 (https://github.com/Stranger6667/jsonschema)
9835
- - referencing 0.60.1 (https://github.com/Stranger6667/jsonschema)
9828
+ - jsonschema-regex 0.60.2 (https://github.com/Stranger6667/jsonschema)
9829
+ - jsonschema-value 0.60.2 (https://github.com/Stranger6667/jsonschema)
9830
+ - jsonschema 0.60.2 (https://github.com/Stranger6667/jsonschema)
9831
+ - referencing 0.60.2 (https://github.com/Stranger6667/jsonschema)
9836
9832
 
9837
9833
  MIT License
9838
9834
 
@@ -15,6 +15,19 @@ module Mergify
15
15
  # takes when a platform has no prebuilt binary. `load_error` keeps the
16
16
  # reason, for callers that want to say so.
17
17
  module Native
18
+ # The Rubies the platform gems carry an extension for: the loop of
19
+ # .github/scripts/build-ruby-platform-gem.sh, which a spec keeps this
20
+ # in step with.
21
+ SUPPORTED_RUBIES = %w[3.1 3.2 3.3 3.4 4.0].freeze
22
+
23
+ # How the engines a Ruby names itself read in a sentence.
24
+ ENGINE_NAMES = { 'jruby' => 'JRuby', 'truffleruby' => 'TruffleRuby' }.freeze
25
+
26
+ # What a job with no extension can do instead: a JUnit report upload
27
+ # does not run inside Ruby, so it works whatever the Ruby.
28
+ JUNIT_UPLOAD = 'To send its results, upload a JUnit report instead: ' \
29
+ 'https://docs.mergify.com/test-engine/test-frameworks/#other-frameworks'
30
+
18
31
  class << self
19
32
  # The LoadError that prevented the extension loading, or nil.
20
33
  attr_accessor :load_error
@@ -31,7 +44,23 @@ module Mergify
31
44
  # fallback that follows only ever adds "cannot load such file", which
32
45
  # sends the reader looking for the wrong thing. With no extension for
33
46
  # this Ruby -- the source gem, or a platform we publish no gem for --
34
- # it is the other way round.
47
+ # it is the other way round, and the fallback's "cannot load such file"
48
+ # names no cause at all: it is said instead, as the Ruby we publish no
49
+ # extension for, or the plain gem Bundler installed in place of ours.
50
+ def load_failure_reason(versioned, fallback, ruby = running_ruby)
51
+ return versioned if Dir.glob(File.join(__dir__, ruby[:version].to_f.to_s, 'mergify_ci.*')).any?
52
+ # An extension built beside this file (`rake compile`) that failed
53
+ # to load: its own error is the one to read.
54
+ return fallback if Dir.glob(File.join(__dir__, 'mergify_ci.*')).any?
55
+
56
+ LoadError.new(unsupported_reason(ruby))
57
+ end
58
+
59
+ # The Ruby this process runs, as `load_failure_reason` reads it.
60
+ def running_ruby
61
+ { engine: RUBY_ENGINE, engine_version: RUBY_ENGINE_VERSION, version: RUBY_VERSION, platform: RUBY_PLATFORM }
62
+ end
63
+
35
64
  # Require a file next to this one, returning the LoadError instead of
36
65
  # raising it. Two attempts read better as values than as nested rescues.
37
66
  def attempt_require(path)
@@ -41,9 +70,27 @@ module Mergify
41
70
  e
42
71
  end
43
72
 
44
- def load_failure_reason(versioned, fallback)
45
- packed = Dir.glob(File.join(__dir__, RUBY_VERSION.to_f.to_s, 'mergify_ci.*')).any?
46
- packed ? versioned : fallback
73
+ private
74
+
75
+ # How `ruby` reads in a sentence, when it is one we publish no
76
+ # extension for; nil for a supported CRuby.
77
+ def unsupported_ruby(ruby)
78
+ engine = ruby[:engine]
79
+ return "#{ENGINE_NAMES.fetch(engine, engine)} #{ruby[:engine_version]}" if engine != 'ruby'
80
+
81
+ "CRuby #{ruby[:version]}" unless SUPPORTED_RUBIES.include?(ruby[:version].to_f.to_s)
82
+ end
83
+
84
+ def unsupported_reason(ruby)
85
+ running = unsupported_ruby(ruby)
86
+ cause = if running
87
+ "Mergify supports CRuby #{SUPPORTED_RUBIES.first} to #{SUPPORTED_RUBIES.last}, " \
88
+ "and this job runs #{running}"
89
+ else
90
+ "mergify-ci-core was installed without its compiled core for #{ruby[:platform]}, " \
91
+ 'which Bundler does under force_ruby_platform and on a platform Mergify publishes no gem for'
92
+ end
93
+ "#{cause}. #{JUNIT_UPLOAD}"
47
94
  end
48
95
  end
49
96
  end
@@ -6,7 +6,7 @@ module Mergify
6
6
  # Placeholder: the release workflow stamps the real version from the git
7
7
  # tag at build time, the same one it stamps into every Ruby client built
8
8
  # on this gem, which each pins exactly.
9
- VERSION = '2026.10.9'
9
+ VERSION = '2026.10.10'
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mergify-ci-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2026.10.9
4
+ version: 2026.10.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mergify