-
Notifications
You must be signed in to change notification settings - Fork 568
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: bblimke/webmock
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.25.0
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: bblimke/webmock
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.25.1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 5 commits
- 13 files changed
- 2 contributors
Commits on Feb 7, 2025
-
Update required_ruby_version to 2.6+
Follow-up to 4b85495.
Configuration menu - View commit details
-
Copy full SHA for da93416 - Browse repository at this point
Copy the full SHA da93416View commit details
Commits on Feb 11, 2025
-
Remove useless encoding magic comment
Script encoding has been set to UTF-8 by default since Ruby 2.0. Since WebMock supports Ruby 2.6 and above, these script encoding specification is unnecessary.
Configuration menu - View commit details
-
Copy full SHA for 5c99e1a - Browse repository at this point
Copy the full SHA 5c99e1aView commit details
Commits on Feb 20, 2025
-
Fix FrozenError in Typhoeus streaming response body
When stubbing a response for the Typhoeus adapter, and the Typhoeus request has an `on_body` callback, a `FrozenError` exception is raised when attempting to concatenate the current chunk of the response to the existing response body (i.e. `response.body << chunk`). FWIW, my use case for this is to abort a request as early as possible when the response body exceeds a given size, specifically when the response doesn't have a `Content-Length` header. The example below illustrates the issue: ```ruby require "bundler/inline" gemfile do source "https://rubygems.org" gem "typhoeus", "1.4.1" gem "webmock", "3.24.0" end WebMock.enable! WebMock.stub_request(:get, "https://example.com").to_return(status: "200", body: "body") request = Typhoeus::Request.new("https://example.com") request.on_body do |chunk, response| response.body << chunk end request.run ``` This change initializes the Typhoeus response body to a non-frozen, mutable string when using the `on_body` callback. Use String#dup to maintain encoding per feedback Co-authored-by: Koichi ITO <koic.ito@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e5be1a6 - Browse repository at this point
Copy the full SHA e5be1a6View commit details -
Merge pull request #1078 from patrickjaberg/prj/2024.11.06/fix-frozen…
…-typhoeus-streaming-response Fix FrozenError in Typhoeus streaming response body
Configuration menu - View commit details
-
Copy full SHA for 371d01d - Browse repository at this point
Copy the full SHA 371d01dView commit details
Commits on Mar 8, 2025
-
Configuration menu - View commit details
-
Copy full SHA for f90fd50 - Browse repository at this point
Copy the full SHA f90fd50View commit details
There are no files selected for viewing