Skip to content

Instantly share code, notes, and snippets.

@bbozo
Created April 2, 2016 07:08
Show Gist options
  • Save bbozo/a1411649c0bfacf29890eccf39be1f5f to your computer and use it in GitHub Desktop.
Save bbozo/a1411649c0bfacf29890eccf39be1f5f to your computer and use it in GitHub Desktop.
From: /home/bbozo/dev/faraday/lib/faraday/adapter/http_gem.rb @ line 5 :
1: module Faraday
2: class Adapter
3: class HttpGem < Faraday::Adapter
4: require 'pry'
=> 5: binding.pry
6: dependency 'http'
7:
8: HTTP_EXCEPTIONS = [
9: HTTP::ConnectionError
10: ]
[1] pry(Faraday::Adapter::HttpGem)> require 'http'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:56:in `block in autorun'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:129:in `run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:152:in `__run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:152:in `map'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:152:in `block in __run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:291:in `run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:318:in `with_info_handler'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:292:in `block in run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:292:in `each'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:293:in `block (2 levels) in run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:305:in `run_one_method'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:778:in `run_one_method'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:103:in `run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:276:in `with_info_handler'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest.rb:331:in `on_signal'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:104:in `block in run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:256:in `time_it'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:105:in `block (2 levels) in run'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:205:in `capture_exceptions'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/minitest-5.8.4/lib/minitest/test.rb:108:in `block (3 levels) in run'
from /home/bbozo/dev/faraday/test/adapters/integration.rb:108:in `test_GET_sends_user_agent'
from /home/bbozo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/forwardable.rb:183:in `get'
from /home/bbozo/dev/faraday/test/adapters/integration.rb:249:in `create_connection'
from /home/bbozo/dev/faraday/test/adapters/integration.rb:249:in `new'
from /home/bbozo/dev/faraday/lib/faraday/connection.rb:91:in `initialize'
from /home/bbozo/dev/faraday/test/adapters/integration.rb:239:in `block in create_connection'
from /home/bbozo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/forwardable.rb:183:in `adapter'
from /home/bbozo/dev/faraday/lib/faraday/rack_builder.rb:100:in `adapter'
from /home/bbozo/dev/faraday/lib/faraday/rack_builder.rb:204:in `use_symbol'
from /home/bbozo/dev/faraday/lib/faraday.rb:188:in `lookup_middleware'
from /home/bbozo/dev/faraday/lib/faraday.rb:218:in `load_middleware'
from /home/bbozo/dev/faraday/lib/faraday.rb:197:in `middleware_mutex'
from /home/bbozo/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchronize'
from /home/bbozo/dev/faraday/lib/faraday.rb:223:in `block in load_middleware'
from /home/bbozo/dev/faraday/lib/faraday.rb:223:in `require'
from /home/bbozo/dev/faraday/lib/faraday/adapter/http_gem.rb:1:in `<top (required)>'
from /home/bbozo/dev/faraday/lib/faraday/adapter/http_gem.rb:2:in `<module:Faraday>'
from /home/bbozo/dev/faraday/lib/faraday/adapter/http_gem.rb:3:in `<class:Adapter>'
from /home/bbozo/dev/faraday/lib/faraday/adapter/http_gem.rb:5:in `<class:HttpGem>'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/core_extensions.rb:43:in `pry'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_class.rb:169:in `start'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:15:in `start'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:38:in `start'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/input_lock.rb:79:in `with_ownership'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/input_lock.rb:61:in `__with_ownership'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/input_lock.rb:61:in `call'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:38:in `block in start'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:67:in `repl'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:67:in `loop'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/repl.rb:77:in `block in repl'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:241:in `eval'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:241:in `catch'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:242:in `block in eval'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:242:in `catch'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:243:in `block (2 levels) in eval'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:323:in `handle_line'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:355:in `evaluate_ruby'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/pry-0.10.3/lib/pry/pry_instance.rb:355:in `eval'
from (pry):1:in `<class:HttpGem>'
from (pry):1:in `require'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http.rb:8:in `<top (required)>'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http.rb:8:in `require'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http/client.rb:6:in `<top (required)>'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http/client.rb:6:in `require'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http/connection.rb:3:in `<top (required)>'
from /home/bbozo/.rvm/gems/ruby-2.2.3/gems/http-1.0.2/lib/http/connection.rb:3:in `require'
=> true
[2] pry(Faraday::Adapter::HttpGem)>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment