janis 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c767c14ea16165c7fcb83a6af8f783897059caa
4
- data.tar.gz: d866d4b58bfc166bca7efc480dfc1fe6418cfa16
3
+ metadata.gz: dd867caecf4745d2c6ebaacf88f2d08d230a5cae
4
+ data.tar.gz: 1cf3fbca12716b54a3eb2221046ec5deac906bdb
5
5
  SHA512:
6
- metadata.gz: 3c88edfd26ed1ef82bada6934258f1656b83767503e92eb8d9a2c141922f1eb2dcfcf128f3814e619a4e3570ee90e67948b268425fd9e7ad45de20315b0cf7e7
7
- data.tar.gz: aa47fe26ec3557005b44ea707e314a303c99c832663162baf98e0cd3a97777057de8a74ae9effb359e53f7f1ee92baf1a7ab6bdf22d6bdab016e376167af84e3
6
+ metadata.gz: bef546eb4304e212253765902496d132bcea5baaa2777a737fe6fc75716de3a5af016877faac9c7b0801b9a263a04a0c2ce5eba73d3ef9a0dc33ef39346b1140
7
+ data.tar.gz: 5054cd249222acdbe2322cc8feeec1d1a6bcb90e1fe98abf83aa11c4a1949d27764cdcb7bdf7c5ae1d7e9d574b30e99c8c69ae9b07013c8a55aa5d7d2efcc124
data/lib/janis.rb CHANGED
@@ -5,8 +5,9 @@ require 'yaml'
5
5
  module Janis
6
6
 
7
7
  IP_PORT_SEPARATOR = ':'
8
-
9
- def self.find(amount, path_to_list = './proxy_server_list.yml')
8
+ PROXY_LIST_PATH = File.dirname(__FILE__) + '/../proxy_server_list.yml'
9
+
10
+ def self.find(amount, path_to_list = PROXY_LIST_PATH)
10
11
 
11
12
  proxy_list = YAML.load_file("#{path_to_list}").split(' ')
12
13
  results = []
@@ -1,5 +1,5 @@
1
1
  require 'janis/proxy_website_parser'
2
- Dir['./lib/janis/specific_parsers/*.rb'].each { |file| require file }
2
+ Dir[File.dirname(__FILE__) + '/specific_parsers/*.rb'].each { |file| require file }
3
3
 
4
4
  module Janis
5
5
 
data/lib/janis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Janis
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariano Giagante