lib/janis.rb in janis-0.1.1 vs lib/janis.rb in janis-0.1.2
- old
+ new
@@ -3,11 +3,12 @@
require 'yaml'
module Janis
IP_PORT_SEPARATOR = ':'
-
- def self.find(amount, path_to_list = './proxy_server_list.yml')
+ PROXY_LIST_PATH = File.dirname(__FILE__) + '/../proxy_server_list.yml'
+
+ def self.find(amount, path_to_list = PROXY_LIST_PATH)
proxy_list = YAML.load_file("#{path_to_list}").split(' ')
results = []
proxy_list.each do |url|