searchlink 2.3.61 → 2.3.62
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 +4 -4
- data/lib/searchlink/config.rb +4 -3
- data/lib/searchlink/searches.rb +7 -4
- data/lib/searchlink/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20591719c33fd31a48e40072d839ea484f13fec80789fccee1417108e0e4f9f4
|
|
4
|
+
data.tar.gz: ff92074f65ad60d2bb52016169f9cb5d61d4ef3696130195f8ef1dfeb8b0635b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06fd6071642386fed86432d1b18ccac1d7ebad0dbdcdfb8c8e5e244431d7e190039b6b53e2ce75654bef4512c28b67ba5f7d4d56c6f728bd7387bb7d74eeb5e9
|
|
7
|
+
data.tar.gz: 6d7e73ece33947326e6ff610af6c71cf8f7d113650c447bb2d97409095d780b54c3ebc5b3a6cb2da4a075e03684e02d1ff0bef1a301a8f4576576a8329b4e4db
|
data/lib/searchlink/config.rb
CHANGED
|
@@ -20,10 +20,11 @@ module SL
|
|
|
20
20
|
def config_file
|
|
21
21
|
old_style = File.expand_path('~/.searchlink')
|
|
22
22
|
new_style = File.expand_path('~/.config/searchlink/config.yaml')
|
|
23
|
-
if File.exist?(old_style)
|
|
24
|
-
|
|
23
|
+
if File.exist?(old_style) && !File.exist?(new_style)
|
|
24
|
+
old_style
|
|
25
25
|
else
|
|
26
|
-
|
|
26
|
+
FileUtils.mkdir_p(File.dirname(new_style))
|
|
27
|
+
new_style
|
|
27
28
|
end
|
|
28
29
|
end
|
|
29
30
|
|
data/lib/searchlink/searches.rb
CHANGED
|
@@ -115,14 +115,17 @@ module SL
|
|
|
115
115
|
|
|
116
116
|
def load_custom
|
|
117
117
|
plugins_folder = File.expand_path('~/.local/searchlink/plugins')
|
|
118
|
+
new_plugins_folder = File.expand_path('~/.config/searchlink/plugins')
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
if File.directory?(plugins_folder) && !File.directory?(new_plugins_folder)
|
|
121
|
+
Dir.glob(File.join(plugins_folder, '**/*.rb')).sort.each do |plugin|
|
|
122
|
+
require plugin
|
|
123
|
+
end
|
|
121
124
|
end
|
|
122
125
|
|
|
123
|
-
|
|
126
|
+
return unless File.directory?(new_plugins_folder)
|
|
124
127
|
|
|
125
|
-
Dir.glob(File.join(
|
|
128
|
+
Dir.glob(File.join(new_plugins_folder, '**/*.rb')).sort.each do |plugin|
|
|
126
129
|
require plugin
|
|
127
130
|
end
|
|
128
131
|
end
|
data/lib/searchlink/version.rb
CHANGED