Skip to content

Commit

Permalink
Fix error on activesupport 7
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Apr 13, 2022
1 parent 209ee67 commit 54942c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Replace mimemagic with marcel.

### Fixed

- Fix error on activesupport 7.

## 0.9.2 - 2020-12-03

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions lib/weneedfeed/faraday_response_middleware.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# frozen_string_literal: true

# For faraday_middleware/response_middleware.
# https://github.com/r7kamura/weneedfeed/issues/19
require 'active_support'
if ActiveSupport.gem_version > Gem::Version.new('7')
require 'active_support/isolated_execution_state'
end

require 'active_support/core_ext/array/conversions'
require 'active_support/core_ext/hash/conversions'
require 'faraday'
Expand Down

0 comments on commit 54942c1

Please sign in to comment.