Skip to content

Commit e777d2f

Browse files
committed
Remove socksify and rack gem dependencies.
1 parent 994ba1f commit e777d2f

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ A common interface for Ruby's HTTP libraries.
1111

1212
HTTPI is available through [Rubygems](https://rubygems.org/gems/httpi) and can be installed via:
1313

14-
```
15-
$ gem install httpi
16-
```
14+
$ gem install httpi
1715

1816
or add it to your Gemfile like this:
1917

20-
```
21-
gem 'httpi', '~> 2.1.0'
22-
```
23-
18+
gem 'httpi', '~> 2.1.0'
2419

2520
## Usage example
2621

@@ -44,6 +39,20 @@ HTTPI.adapter = :httpclient
4439
HTTPI.request(:custom, request)
4540
```
4641

42+
### Rack Mock Adapter
43+
44+
To use the Rack mock adapter, please add the `rack` gem to your gemfile.
45+
46+
### SOCKS Proxy Support
47+
48+
To use the the SOCKS proxy support, please add the `socksify` gem to your gemfile, and add the following code:
49+
50+
``` ruby
51+
require 'socksify'
52+
require 'socksify/http'
53+
```
54+
55+
to your project.
4756

4857
## Documentation
4958

httpi.gemspec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ Gem::Specification.new do |s|
1616

1717
s.license = 'MIT'
1818

19-
s.add_dependency 'rack'
20-
s.add_dependency 'socksify'
21-
2219
s.add_development_dependency 'rubyntlm', '~> 0.3.2'
2320
s.add_development_dependency 'rake', '~> 13.0'
2421
s.add_development_dependency 'rspec', '~> 3.5'

lib/httpi/adapter/net_http.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
require "httpi/response"
55
require 'kconv'
66
require 'socket'
7-
require "socksify"
8-
require 'socksify/http'
97

108
module HTTPI
119
module Adapter

0 commit comments

Comments
 (0)