Skip to content

Commit

Permalink
Explicitly require StringIO where it's used (#872)
Browse files Browse the repository at this point in the history
* Explicitly require `StringIO` where it's used

Fixes #871.

* Add another require
  • Loading branch information
timrogers committed Mar 30, 2024
1 parent 5f08632 commit db5b38b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/restforce/middleware/gzip.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require 'stringio'
require 'zlib'

module Restforce
Expand Down
2 changes: 2 additions & 0 deletions lib/restforce/patches/parts.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'stringio'

module Faraday
module Parts
module Part
Expand Down
2 changes: 2 additions & 0 deletions spec/unit/middleware/gzip_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'stringio'

require 'spec_helper'

describe Restforce::Middleware::Gzip do
Expand Down

0 comments on commit db5b38b

Please sign in to comment.