linsc 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aed9e8566684e96306ec3a3adce51ea72871e537
4
- data.tar.gz: db3fb004b94086c1db393688c384a6ebe3bec881
3
+ metadata.gz: 36cb51372ecf761a8b4c343883bf0b1c303b78e4
4
+ data.tar.gz: 6dcf4ac1ab73d18fc43719946df30b9347a4c8be
5
5
  SHA512:
6
- metadata.gz: 8fec7be2312baae966161dd602917ef64bf23388e4edc38f6c6502a3692119507e0da931a30b6c1517c935bef2118989de133af834623ab600e44002858907a2
7
- data.tar.gz: bda80b1187260fe82b5f2ad62267b18ee60df62a89b7cd03a7dce45e7741a1267b97e5869e7883e0811f8f14ca60b51abad8401828ab627d673dc2c187725963
6
+ metadata.gz: fdb63443a049ae46f85851e87d8826b48e5848707f3b73ac4dc798462938fa84cae31b9f09ff0d4d05c1676877e427af34a69d617a128f67f85f0ea3b2557b13
7
+ data.tar.gz: 572e0340b316b30d5713ce77b1d5f5602a7c2f8be8259e6c41a99583167aaaeab4aba420996b2aa6286b556241b627bbfc8dc0f5033530d0d8d44c407c244643
@@ -4,10 +4,13 @@ class ProxyHandler
4
4
 
5
5
  def initialize(cooldown_time = 5)
6
6
  @cooldown_time = cooldown_time
7
- @proxy_list = File.read('./../data/proxies.txt').split("\n")
7
+ proxy_file = Pathname.new(File.dirname __dir__).realdirpath + '../data/proxies.txt'
8
+ agents_file = Pathname.new(File.dirname __dir__).realdirpath + '../data/agents.txt'
9
+
10
+ @proxy_list = File.read(proxy_file.to_s).split("\n")
8
11
  .collect{|proxy| proxy.split(':')}
9
12
  @proxies = []
10
- @ua_list = File.read('./../data/agents.txt').split("\n")
13
+ @ua_list = File.read(agents_file.to_s).split("\n")
11
14
 
12
15
  @proxy_list.each do |proxy_details|
13
16
  proxy = Proxy.new(ip: proxy_details[0], port: proxy_details[1],
data/linsc.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "linsc"
7
- spec.version = "0.0.9"
7
+ spec.version = "0.0.10"
8
8
  spec.authors = ["Dan Molloy"]
9
9
  spec.email = ["danieljmolloy1@gmail.com"]
10
10
  spec.date = '2016-03-31'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linsc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Molloy