spiderfw 0.6.12 → 0.6.13
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/VERSION +1 -1
- data/lib/spiderfw/cmd/commands/config.rb +1 -4
- data/lib/spiderfw/config/configuration.rb +4 -0
- data/lib/spiderfw/config/configuration_editor.rb +2 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.13
|
@@ -54,11 +54,8 @@ class ConfigCommand < CmdParse::Command
|
|
54
54
|
set.set_execution_block do |args|
|
55
55
|
require 'spiderfw/spider'
|
56
56
|
require 'lib/spiderfw/config/configuration_editor'
|
57
|
-
editor = Spider::ConfigurationEditor.new
|
58
57
|
Spider.init_base
|
59
|
-
Spider.config.
|
60
|
-
editor.load(f)
|
61
|
-
end
|
58
|
+
editor = Spider.config.get_editor
|
62
59
|
editor.set(*args)
|
63
60
|
editor.save
|
64
61
|
end
|
@@ -305,8 +305,12 @@ module Spider
|
|
305
305
|
|
306
306
|
def get_editor
|
307
307
|
require 'spiderfw/config/configuration_editor'
|
308
|
+
require 'pathname'
|
308
309
|
editor = ConfigurationEditor.new
|
310
|
+
config_path = Pathname.new(Spider.paths[:config]).realpath.to_s
|
309
311
|
@loaded_files.each do |f|
|
312
|
+
f = Pathname.new(f).realpath.to_s
|
313
|
+
next unless f.index(config_path) == 0
|
310
314
|
editor.load(f)
|
311
315
|
end
|
312
316
|
editor
|