Skip to content

Commit

Permalink
Remove Faraday Middleware Dependency (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
mochetts committed Mar 7, 2024
1 parent 0069259 commit 4cd8745
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
5 changes: 1 addition & 4 deletions Gemfile.lock
@@ -1,9 +1,8 @@
PATH
remote: .
specs:
ruby-experian (0.0.5)
ruby-experian (0.0.6)
faraday (>= 1)
faraday_middleware (>= 1)
multi_xml (>= 0.6.0)
rexml (>= 3.2)
sha3 (>= 1)
Expand Down Expand Up @@ -49,8 +48,6 @@ GEM
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.2.0)
faraday (~> 1.0)
hashdiff (1.1.0)
interception (0.5)
json (2.7.1)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -114,7 +114,7 @@ client.add_headers("X-Proxy-TTL" => "43200")

#### Verbose Logging

You can pass [Faraday middleware](https://lostisland.github.io/faraday/#/middleware/index) to the client in a block, eg. to enable verbose logging with Ruby's [Logger](https://ruby-doc.org/3.2.2/stdlibs/logger/Logger.html):
You can further configure the faraday connection by passing in a block to the client (e.g. to enable verbose logging with Ruby's [Logger](https://ruby-doc.org/3.2.2/stdlibs/logger/Logger.html)):

```ruby
client = Experian::Client.new do |f|
Expand Down
1 change: 0 additions & 1 deletion lib/experian.rb
@@ -1,5 +1,4 @@
require "faraday"
require "faraday_middleware"

require_relative "experian/http"
require_relative "experian/client"
Expand Down
2 changes: 1 addition & 1 deletion lib/experian/version.rb
@@ -1,3 +1,3 @@
module Experian
VERSION = "0.0.5".freeze
VERSION = "0.0.6".freeze
end
1 change: 0 additions & 1 deletion ruby-experian.gemspec
Expand Up @@ -18,7 +18,6 @@ Gem::Specification.new do |s|
s.require_paths = ["lib"]

s.add_dependency "faraday", ">= 1"
s.add_dependency "faraday_middleware", ">= 1"
s.add_dependency "sha3", ">= 1"
s.add_dependency "multi_xml", ">= 0.6.0"
s.add_dependency "rexml", ">= 3.2"
Expand Down
2 changes: 1 addition & 1 deletion spec/experian_spec.rb
@@ -1,6 +1,6 @@
RSpec.describe Experian do
it "has a version number" do
expect(Experian::VERSION).not_to be nil
expect(Experian::VERSION).to eq "0.0.6"
end

describe "#configure" do
Expand Down

0 comments on commit 4cd8745

Please sign in to comment.