From d8849c2be9e783902f8d00b48052d50978322c1a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 7 Nov 2025 12:51:19 -0800 Subject: [PATCH 1/2] Use forked rqrcode to allow Ruby 4.0 --- benchmarks/lobsters/Gemfile | 5 ++++- benchmarks/lobsters/Gemfile.lock | 27 ++++++++++++++++++++------- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/benchmarks/lobsters/Gemfile b/benchmarks/lobsters/Gemfile index e7d5ec55..aa6565eb 100644 --- a/benchmarks/lobsters/Gemfile +++ b/benchmarks/lobsters/Gemfile @@ -36,7 +36,10 @@ gem "actionpack-page_caching" # security gem "bcrypt", "~> 3.1.2" gem "rotp" -gem "rqrcode" +# For Ruby 4.0: https://github.com/whomwah/rqrcode/pull/160 +gem "rqrcode", github: "k0kubun/rqrcode", branch: "ruby-4-0" +# For Ruby 4.0: https://github.com/whomwah/rqrcode_core/pull/48 +gem "rqrcode_core", github: "k0kubun/rqrcode_core", branch: "ruby-4-0" # parsing gem "pdf-reader" diff --git a/benchmarks/lobsters/Gemfile.lock b/benchmarks/lobsters/Gemfile.lock index d47062fd..bb086111 100644 --- a/benchmarks/lobsters/Gemfile.lock +++ b/benchmarks/lobsters/Gemfile.lock @@ -1,3 +1,19 @@ +GIT + remote: https://github.com/k0kubun/rqrcode.git + revision: 12a47520383c1d61d627a5107ba72fb80518ae7e + branch: ruby-4-0 + specs: + rqrcode (3.1.0) + chunky_png (~> 1.0) + rqrcode_core (~> 2.0) + +GIT + remote: https://github.com/k0kubun/rqrcode_core.git + revision: 5108d47343eac062b5d8bb2526425575f1b645f5 + branch: ruby-4-0 + specs: + rqrcode_core (2.0.0) + GEM remote: https://rubygems.org/ specs: @@ -229,10 +245,6 @@ GEM io-console (~> 0.5) rexml (3.4.2) rotp (6.3.0) - rqrcode (3.1.0) - chunky_png (~> 1.0) - rqrcode_core (~> 2.0) - rqrcode_core (2.0.0) rspec-core (3.13.5) rspec-support (~> 3.13.0) rspec-expectations (3.13.5) @@ -358,7 +370,8 @@ DEPENDENCIES railties (~> 8.0) rb-readline rotp - rqrcode + rqrcode! + rqrcode_core! rspec-rails (~> 6.0.0.rc1) rubocop (= 0.81) rubocop-rails @@ -471,8 +484,8 @@ CHECKSUMS reline (0.6.2) sha256=1dad26a6008872d59c8e05244b119347c9f2ddaf4a53dce97856cd5f30a02846 rexml (3.4.2) sha256=1384268554a37af5da5279431ca3f2f37d46f09ffdd6c95e17cc84c83ea7c417 rotp (6.3.0) sha256=75d40087e65ed0d8022c33055a6306c1c400d1c12261932533b5d6cbcd868854 - rqrcode (3.1.0) sha256=e2d5996375f6e9a013823c289ed575dbea678b8e0388574302c1fac563f098af - rqrcode_core (2.0.0) sha256=1e40b823ab57a96482a417fff5dd5c33645a00cea6ef5d9e342fecc5ef91d9ab + rqrcode (3.1.0) + rqrcode_core (2.0.0) rspec-core (3.13.5) sha256=ab3f682897c6131c67f9a17cfee5022a597f283aebe654d329a565f9937a4fa3 rspec-expectations (3.13.5) sha256=33a4d3a1d95060aea4c94e9f237030a8f9eae5615e9bd85718fe3a09e4b58836 rspec-mocks (3.13.5) sha256=e4338a6f285ada9fe56f5893f5457783af8194f5d08884d17a87321d5195ea81 From ddbcac11e71ce816c74ba9875711722f0a0de36a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 7 Nov 2025 14:28:01 -0800 Subject: [PATCH 2/2] Use the upstream repository --- benchmarks/lobsters/Gemfile | 8 ++++---- benchmarks/lobsters/Gemfile.lock | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/benchmarks/lobsters/Gemfile b/benchmarks/lobsters/Gemfile index aa6565eb..5f9688b6 100644 --- a/benchmarks/lobsters/Gemfile +++ b/benchmarks/lobsters/Gemfile @@ -36,10 +36,10 @@ gem "actionpack-page_caching" # security gem "bcrypt", "~> 3.1.2" gem "rotp" -# For Ruby 4.0: https://github.com/whomwah/rqrcode/pull/160 -gem "rqrcode", github: "k0kubun/rqrcode", branch: "ruby-4-0" -# For Ruby 4.0: https://github.com/whomwah/rqrcode_core/pull/48 -gem "rqrcode_core", github: "k0kubun/rqrcode_core", branch: "ruby-4-0" +# Waiting for https://github.com/whomwah/rqrcode/pull/160 to be released +gem "rqrcode", github: "whomwah/rqrcode" +# Waiting for https://github.com/whomwah/rqrcode_core/pull/48 to be released +gem "rqrcode_core", github: "whomwah/rqrcode_core" # parsing gem "pdf-reader" diff --git a/benchmarks/lobsters/Gemfile.lock b/benchmarks/lobsters/Gemfile.lock index bb086111..20e33012 100644 --- a/benchmarks/lobsters/Gemfile.lock +++ b/benchmarks/lobsters/Gemfile.lock @@ -1,16 +1,14 @@ GIT - remote: https://github.com/k0kubun/rqrcode.git - revision: 12a47520383c1d61d627a5107ba72fb80518ae7e - branch: ruby-4-0 + remote: https://github.com/whomwah/rqrcode.git + revision: f9fa33704951158a38b3cf04311e295d3a0e947d specs: rqrcode (3.1.0) chunky_png (~> 1.0) rqrcode_core (~> 2.0) GIT - remote: https://github.com/k0kubun/rqrcode_core.git - revision: 5108d47343eac062b5d8bb2526425575f1b645f5 - branch: ruby-4-0 + remote: https://github.com/whomwah/rqrcode_core.git + revision: a35eebde0f650074331206ccc7c6dc39a3fbb664 specs: rqrcode_core (2.0.0)