duel-rails 0.1.6 → 0.1.7
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 +4 -4
- data/CHANGELOG.md +6 -1
- data/lib/duel/rails/version.rb +1 -1
- data/lib/generators/duel/install/templates/perf.yml.tt +14 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 10c5462b8eb10bcfe6d1baf0b9d8d8ffa456040fb40af93d5a302e338529b12a
|
|
4
|
+
data.tar.gz: f34caca4a75935765dbb6515729de4ae9514088e67ca1f6e6ac0f6ab61351829
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e34e619290e089caba95bec6cefe5917d0adc46d215d1d2176f07c754d7b927a56ad2cd0ce4d21d6fbadd8e337fd5f713c8ef20f23155c2bf9ab5785ce8e041e
|
|
7
|
+
data.tar.gz: be449ca36d29f39d4359a50c9fb051c7ca6dbf1b258c6fd4ffe995ddcc108eca3f07dfa4227e687a31374e0bd212225b9e0f920f702ad0dde68c42dd85a6cb75
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.7] - 2026-11-10
|
|
11
|
+
|
|
12
|
+
No changes of its own: released in step with the other Duel gems.
|
|
13
|
+
|
|
10
14
|
## [0.1.6] - 2026-11-10
|
|
11
15
|
|
|
12
16
|
### Added
|
|
@@ -250,7 +254,8 @@ Rails 7.2 or later, and Ruby 3.4 or later.
|
|
|
250
254
|
CI.
|
|
251
255
|
- RBS signatures in sig/, checked with Steep.
|
|
252
256
|
|
|
253
|
-
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.
|
|
257
|
+
[Unreleased]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.7...HEAD
|
|
258
|
+
[0.1.7]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.6...duel-rails-v0.1.7
|
|
254
259
|
[0.1.6]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.5...duel-rails-v0.1.6
|
|
255
260
|
[0.1.5]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.4...duel-rails-v0.1.5
|
|
256
261
|
[0.1.4]: https://github.com/sferik/duel-ruby/compare/duel-rails-v0.1.3...duel-rails-v0.1.4
|
data/lib/duel/rails/version.rb
CHANGED
|
@@ -318,13 +318,15 @@ jobs:
|
|
|
318
318
|
<% end -%>
|
|
319
319
|
<% if badge? -%>
|
|
320
320
|
|
|
321
|
-
# Duel's badge, for the README: green (perf guarded)
|
|
322
|
-
# regressed), as the last push to the default
|
|
323
|
-
# left it. It's red where
|
|
324
|
-
# even one that passed (with
|
|
325
|
-
#
|
|
326
|
-
#
|
|
327
|
-
# to
|
|
321
|
+
# Duel's badge, for the README: green (perf guarded), red (perf
|
|
322
|
+
# regressed) or grey (not measured), as the last push to the default
|
|
323
|
+
# branch that Duel compared left it. It's red where Duel failed the push
|
|
324
|
+
# or found a regression, even one that passed (with
|
|
325
|
+
# c.fail_on = :pull_requests in .duel.rb), and grey where the Duel job
|
|
326
|
+
# failed before Duel could judge the push (its runner ran out of memory,
|
|
327
|
+
# say). A push with nothing to compare leaves it as it was, and so does
|
|
328
|
+
# a run for an older push than the badge's. This job writes the badge,
|
|
329
|
+
# alone, to a branch of its own, which the README shows:
|
|
328
330
|
#
|
|
329
331
|
# [}" if working_directory %>/badge.svg)](https://github.com/sferik/duel-ruby)
|
|
330
332
|
#
|
|
@@ -370,10 +372,13 @@ jobs:
|
|
|
370
372
|
last=$(gh api "repos/$GITHUB_REPOSITORY/commits/$BRANCH" --jq .commit.message 2>/dev/null | sed -n 's/^Duel.s badge, for \([0-9a-f]*\)$/\1/p') || true
|
|
371
373
|
if [ -n "$last" ] && [ "$(gh api "repos/$GITHUB_REPOSITORY/compare/$GITHUB_SHA...$last" --jq .status 2>/dev/null)" = ahead ]; then exit 0; fi
|
|
372
374
|
# (Its image, written here rather than fetched from anywhere: green,
|
|
373
|
-
#
|
|
375
|
+
# red where Duel failed the push or found a regression, or grey
|
|
376
|
+
# where the Duel job failed before Duel said either.)
|
|
374
377
|
state="perf guarded" width=133 top="#34D058" bottom="#28A745" right="76.939C78.629 0 80 1.343 80"
|
|
375
|
-
if [ "$
|
|
378
|
+
if [ "$STATUS" = failed ]; then
|
|
376
379
|
state="perf regressed" width=142 top="#EA4A5A" bottom="#D73A49" right="85.939C87.629 0 89 1.343 89"
|
|
380
|
+
elif [ "$RESULT" = failure ] && [ "$STATUS" != passed ]; then
|
|
381
|
+
state="not measured" width=138 top="#959DA5" bottom="#6A737D" right="81.939C83.629 0 85 1.343 85"
|
|
377
382
|
fi
|
|
378
383
|
cat > "$RUNNER_TEMP/badge.svg" <<SVG
|
|
379
384
|
<svg xmlns="http://www.w3.org/2000/svg" width="$width" height="20">
|