Skip to content

Commit

Permalink
include just for test/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
balvig committed Apr 14, 2022
1 parent 084c72e commit b3332b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ workflows:
parameters:
rails_version: ["~> 4.0"]
ruby_version: ["2.6.9"]
faraday_version: ["< 1.0"]
faraday_version: ["< 1.0", "< 2.0"]
- build:
matrix:
alias: Rails 5
Expand Down
4 changes: 4 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in spyke.gemspec
gemspec

if ENV['FARADAY_TEST_VERSION'] == '< 2.0' || ENV['FARADAY_TEST_VERSION'] == '< 1.0'
gem 'faraday_middleware'
end
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ So, for example for an API that returns JSON like this:
```ruby
# config/initializers/spyke.rb

class JSONParser < Faraday::Middleware # Faraday::Response::Middleware for Faraday v1.0
class JSONParser < Faraday::Middleware
def on_complete(env)
json = MultiJson.load(env.body, symbolize_keys: true)
env.body = {
Expand Down

0 comments on commit b3332b3

Please sign in to comment.