mirror of
				https://github.com/lostisland/faraday.git
				synced 2025-11-04 00:02:33 -05:00 
			
		
		
		
	remove autoloading from Faraday
This commit is contained in:
		
							parent
							
								
									412844ac1d
								
							
						
					
					
						commit
						1e5284c5ad
					
				@ -240,19 +240,10 @@ module Faraday
 | 
				
			|||||||
    component.register_middleware(mapping)
 | 
					    component.register_middleware(mapping)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  autoload_all "faraday",
 | 
					  require_libs "utils", "connection", "builder", "parameters", "middleware",
 | 
				
			||||||
    :Middleware      => 'middleware',
 | 
					    "adapter", "request", "response", "upload_io", "error"
 | 
				
			||||||
    :Builder         => 'builder',
 | 
					 | 
				
			||||||
    :Request         => 'request',
 | 
					 | 
				
			||||||
    :Response        => 'response',
 | 
					 | 
				
			||||||
    :CompositeReadIO => 'upload_io',
 | 
					 | 
				
			||||||
    :UploadIO        => 'upload_io',
 | 
					 | 
				
			||||||
    :Parts           => 'upload_io'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  require_libs "utils", "connection", "adapter", "error"
 | 
					 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
# not pulling in active-support JUST for this method.  And I love this method.
 | 
					# not pulling in active-support JUST for this method.  And I love this method.
 | 
				
			||||||
class Object
 | 
					class Object
 | 
				
			||||||
  # The primary purpose of this method is to "tap into" a method chain,
 | 
					  # The primary purpose of this method is to "tap into" a method chain,
 | 
				
			||||||
 | 
				
			|||||||
@ -3,8 +3,6 @@ require 'set'
 | 
				
			|||||||
require 'forwardable'
 | 
					require 'forwardable'
 | 
				
			||||||
require 'uri'
 | 
					require 'uri'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Faraday.require_libs 'builder', 'request', 'response', 'utils', 'parameters'
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
module Faraday
 | 
					module Faraday
 | 
				
			||||||
  # Public: Connection objects manage the default properties and the middleware
 | 
					  # Public: Connection objects manage the default properties and the middleware
 | 
				
			||||||
  # stack for fulfilling an HTTP request.
 | 
					  # stack for fulfilling an HTTP request.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user