Skip to content

Conversation

@headius
Copy link
Contributor

@headius headius commented May 3, 2025

These parse methods take begin and end indices, not begin and length. A test is included.

Fixes jruby/jruby#8823

@kou kou changed the title Pass end index to byteListToInum jruby: Pass end index to byteListToInum May 3, 2025
@kou kou merged commit 9690e39 into master May 3, 2025
72 of 76 checks passed
@kou kou deleted the end_not_len branch May 3, 2025 00:26
@kou
Copy link
Member

kou commented May 3, 2025

Should we release a new version soon?

@headius
Copy link
Contributor Author

headius commented May 3, 2025

@kou If it's convenient, that would be great! I don't have any other changes coming right now.

Also I think this fixes the matrix for windows-latest and "jruby", because the released "jruby" now is JRuby 10 and requires Java 21+:

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7890e97..6034394 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -45,7 +45,7 @@ jobs:
           distribution: zulu
           java-version: 21
         if: >-
-          matrix.ruby == 'jruby-head'
+          startWith(matrix.ruby, 'jruby')
 
       - name: Set up Ruby
         uses: ruby/setup-ruby@v1

@kou
Copy link
Member

kou commented May 3, 2025

Could you open a new PR for the CI change?
I'll release a new version after we merge the CI change.

@headius
Copy link
Contributor Author

headius commented May 3, 2025

@kou #151

matzbot pushed a commit to ruby/ruby that referenced this pull request May 8, 2025
(ruby/strscan#150)

These parse methods take begin and end indices, not begin and length. A
test is included.

Fixes jruby/jruby#8823

ruby/strscan@9690e39e73
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.

Failure in StringScanner#scan_integer when running the HexaPDF test suite

2 participants