-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/explicit require cgi #29
Merged
bethesque
merged 2 commits into
pact-foundation:master
from
tancnle:fix/explicit-require-cgi
Mar 10, 2017
Merged
Fix/explicit require cgi #29
bethesque
merged 2 commits into
pact-foundation:master
from
tancnle:fix/explicit-require-cgi
Mar 10, 2017
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Without this require statement, running `bundle exec rake spec` reports undefined `parse` method on `CGI.class`. This is due to Ruby resolves class definition to `cgi/util.rb` and ignores `cgi/core.rb` >.<
Thank you Tan :) |
matoro
added a commit
to matoro/http
that referenced
this pull request
Jun 20, 2022
I am observing the same behavior in this test as documented in pact-foundation/pact-support#29; applying the same fix also fixes it here.
matoro
added a commit
to matoro/gentoo
that referenced
this pull request
Jun 20, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Signed-off-by: matoro <matoro@users.noreply.github.com> Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550
ixti
pushed a commit
to httprb/http
that referenced
this pull request
Jun 20, 2022
I am observing the same behavior in this test as documented in pact-foundation/pact-support#29; applying the same fix also fixes it here.
matoro
added a commit
to matoro/gentoo
that referenced
this pull request
Jun 25, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Signed-off-by: matoro <matoro@users.noreply.github.com> Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550
matoro
added a commit
to matoro/gentoo
that referenced
this pull request
Jul 11, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Signed-off-by: matoro <matoro@users.noreply.github.com> Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550
matoro
added a commit
to matoro/gentoo
that referenced
this pull request
Jul 13, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550 Signed-off-by: matoro <matoro@users.noreply.github.com>
matoro
added a commit
to matoro/gentoo
that referenced
this pull request
Sep 29, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550 Signed-off-by: matoro <matoro@users.noreply.github.com>
gentoo-bot
pushed a commit
to gentoo/gentoo
that referenced
this pull request
Oct 22, 2022
Giant push to the Ruby tree to bring up dev-ruby/http to the 5.x branch. http-5.x changes the underlying C parser from http-parser to llhttp-ffi, which pulls in most of the socketry async ecosystem for its tests. All of these packages have been tested on sparc, using all compatible Ruby versions from ruby26 to ruby31. KNOWN ISSUES: * dev-ruby/async-http tests can hang on ruby27 only * dev-ruby/dalli tests are RESTRICTed because they spin up a local memcached instance, which is broken on sparc (see bug 636552) * In order to get the benefits of respect-cflags.patch for packages that use ffi-compiler (such as dev-ruby/llhttp-ffi), you must rebuild dev-ruby/ffi-compiler * dev-ruby/ffi has two failing tests, but passes everything else. This does not seem to affect functionality. Documented in bug 847286 and upstream ffi/ffi#957 * dev-ruby/simplecov tests fail for ruby3x, already filed by someone else as bug 835620. This may be fixed in newer upstream versions * 5.1.0 seems to have introduced a new issue not present in 5.0.4, fix is simple and submitted upstream as httprb/http#719, courtest of pact-foundation/pact-support#29 Closes: https://bugs.gentoo.org/766162 Bug: https://bugs.gentoo.org/761550 Signed-off-by: matoro <matoro@users.noreply.github.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why
Running
bundle exec rake spec
fails due to:How
This is an existing issue on master and I can reproduce it locally. Oddly enough
bundle exec rspec <filename>
does not exhibit this issue. It seems like Ruby resolvesCGI
class definition tocgi/util.rb
and ignorescgi/core.rb
>.<What have been done
Explicitly require CGI class and ensure
core.rb
andutil.rb
are loaded in the right order.This should fix #27.