Skip to content

Commit af3b936

Browse files
committed
Upgrade to Crystall 1.x
1 parent 8a07fb3 commit af3b936

File tree

7 files changed

+8
-69
lines changed

7 files changed

+8
-69
lines changed

Diff for: shard.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: proxy_fetcher
2-
version: 0.2.0
2+
version: 0.3.0
33

44
authors:
55
- Nikita Bulai <[email protected]>
@@ -8,20 +8,20 @@ targets:
88
proxy_fetcher:
99
main: src/proxy_fetcher.cr
1010

11-
crystal: 0.34.0
11+
crystal: ">= 1.0.0"
1212

1313
license: MIT
1414

1515
dependencies:
1616
halite:
1717
github: icyleaf/halite
18-
version: ~> 0.10.5
18+
version: ~> 0.10
1919
http_proxy:
2020
github: mamantoha/http_proxy
2121
development_dependencies:
2222
ameba:
2323
github: crystal-ameba/ameba
24-
version: ~> 0.10.0
24+
version: ~> 0.10
2525
icr:
2626
github: crystal-community/icr
2727
branch: master

Diff for: spec/providers/gather_proxy_spec.cr

-15
This file was deleted.

Diff for: src/proxy_fetcher.cr

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ require "./proxy_fetcher/manager"
1515
require "./proxy_fetcher/providers/base"
1616
require "./proxy_fetcher/providers/free_proxy_list"
1717
require "./proxy_fetcher/providers/free_proxy_list_ssl"
18-
require "./proxy_fetcher/providers/gather_proxy"
1918
require "./proxy_fetcher/providers/http_tunnel"
2019
require "./proxy_fetcher/providers/proxypedia"
2120
require "./proxy_fetcher/providers/xroxy"
2221

2322
module ProxyFetcher
24-
VERSION = "0.1.0"
23+
VERSION = "0.2.0"
2524

2625
def self.config
2726
@@config ||= ProxyFetcher::Configuration.new

Diff for: src/proxy_fetcher/providers/base.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module ProxyFetcher
6565
# @return [Proxy]
6666
# new proxy object from the HTML node
6767
#
68-
abstract def to_proxy(*args)
68+
abstract def to_proxy(node)
6969
end
7070
end
7171
end

Diff for: src/proxy_fetcher/providers/free_proxy_list.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module ProxyFetcher
88
end
99

1010
def xpath
11-
"//table[@id='proxylisttable']/tbody/tr"
11+
"//table[./thead/tr/th[contains(text(), 'IP')]]/tbody/tr"
1212
end
1313

1414
# Converts HTML node (entry of N tags) to <code>ProxyFetcher::Proxy</code>

Diff for: src/proxy_fetcher/providers/free_proxy_list_ssl.cr

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module ProxyFetcher
88
end
99

1010
def xpath
11-
"//table[@id=\"proxylisttable\"]/tbody/tr"
11+
"//table[./thead/tr/th[contains(text(), 'IP')]]/tbody/tr"
1212
end
1313

1414
# Converts HTML node (entry of N tags) to <code>ProxyFetcher::Proxy</code>

Diff for: src/proxy_fetcher/providers/gather_proxy.cr

-45
This file was deleted.

0 commit comments

Comments
 (0)