searchlink 2.3.76 → 2.3.77
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/searchlink/parse.rb +4 -6
- data/lib/searchlink/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843677b12a8c826c526b3fedf5839ac25da99daf2da40aa31103a9ed06cf116e
|
4
|
+
data.tar.gz: 2891798cb6d33529477b223d408e6f2ab94e5c2ba56d0c292d768276c74babd4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be2b9f6a6a3afdc1bfc268fc113d2a7697de02c6a4b29a9797c813c0a3d53631a091063b5264b058e63615a0bce3ec9d54076d9aae81fc905dbe7291b8ada75c
|
7
|
+
data.tar.gz: 14e64e326271f49863c426047d0420ed6730935953a584aee908fc57104e870a85de742c19065a0d592e08d54b67928f712985322b4c7f314f051ed47189687b
|
data/lib/searchlink/parse.rb
CHANGED
@@ -325,7 +325,7 @@ module SL
|
|
325
325
|
link_info.sub!(/\s*:\s*$/, "")
|
326
326
|
end
|
327
327
|
|
328
|
-
|
328
|
+
if @link_text.empty? && link_info.sub(/^[!\^]\S+/, "").strip.empty?
|
329
329
|
SL.add_error("No input", match)
|
330
330
|
counter_errors += 1
|
331
331
|
invalid_search = true
|
@@ -399,7 +399,6 @@ module SL
|
|
399
399
|
search_terms = @link_text
|
400
400
|
elsif search_word && search_word[1] =~ /^(\S+\.)+\S+$/
|
401
401
|
search_type = SL::GoogleSearch.api_key? ? "gg" : "g"
|
402
|
-
puts SL::GoogleSearch.api_key?
|
403
402
|
search_terms = "site:#{search_word[1]} #{@link_text}"
|
404
403
|
else
|
405
404
|
SL.add_error("Invalid search#{SL::Searches.did_you_mean(search_word[1])}", match)
|
@@ -424,10 +423,9 @@ module SL
|
|
424
423
|
|
425
424
|
if (search_type && search_terms) || @url
|
426
425
|
# warn "Searching #{search_type} for #{search_terms}"
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
end
|
426
|
+
|
427
|
+
@search_count += 1
|
428
|
+
@url, title, @link_text = do_search(search_type, search_terms, @link_text, @search_count)
|
431
429
|
|
432
430
|
if (@link_text == "" || @link_text == "%") && @url
|
433
431
|
if title
|
data/lib/searchlink/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: searchlink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.77
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|