link_finder 0.0.3 → 0.0.4
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.
- data/lib/link_finder.rb +2 -2
- data/lib/link_finder/version.rb +1 -1
- metadata +2 -2
data/lib/link_finder.rb
CHANGED
|
@@ -126,7 +126,7 @@ module LinkFinder
|
|
|
126
126
|
@threads = []
|
|
127
127
|
@result = []
|
|
128
128
|
@main_thread = Thread.new do
|
|
129
|
-
@links = File.open(@options[:links_filename], "rb:UTF-8").read.split(
|
|
129
|
+
@links = File.open(@options[:links_filename], "rb:UTF-8").read.split(/[\n\r]/).map do |l|
|
|
130
130
|
begin
|
|
131
131
|
URI.parse(l.gsub(/[\n\r]/, '')).to_s
|
|
132
132
|
rescue Exception => e
|
|
@@ -134,7 +134,7 @@ module LinkFinder
|
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
-
@sites = File.open(@options[:sites_filename], "rb:UTF-8").read.split(
|
|
137
|
+
@sites = File.open(@options[:sites_filename], "rb:UTF-8").read.split(/[\n\r]/).map do |s|
|
|
138
138
|
begin
|
|
139
139
|
uri = URI.parse(s.gsub(/[\n\r]/, ''))
|
|
140
140
|
URI::HTTP.new('http', nil, uri.host, nil, nil, nil, nil, nil, nil).to_s
|
data/lib/link_finder/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: link_finder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-
|
|
12
|
+
date: 2012-11-19 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Искалка ссылок на сайтах
|
|
15
15
|
email:
|