ae_easy-core 0.0.5 → 0.1.0
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/.gitignore +1 -0
- data/doc/AeEasy/Core/Config.html +5 -5
- data/doc/AeEasy/Core/Exception/OutdatedError.html +1 -1
- data/doc/AeEasy/Core/Exception.html +1 -1
- data/doc/AeEasy/Core/Helper/Cookie.html +1 -1
- data/doc/AeEasy/Core/Helper.html +1 -1
- data/doc/AeEasy/Core/Mock/FakeDb.html +2 -2
- data/doc/AeEasy/Core/Mock/FakeExecutor.html +8 -8
- data/doc/AeEasy/Core/Mock/FakeParser.html +1 -1
- data/doc/AeEasy/Core/Mock/FakeSeeder.html +1 -1
- data/doc/AeEasy/Core/Mock.html +1 -1
- data/doc/AeEasy/Core/Plugin/CollectionVault.html +1 -1
- data/doc/AeEasy/Core/Plugin/ConfigBehavior.html +1 -1
- data/doc/AeEasy/Core/Plugin/ContextIntegrator.html +2 -2
- data/doc/AeEasy/Core/Plugin/Executor.html +259 -0
- data/doc/AeEasy/Core/Plugin/ExecutorBehavior.html +344 -0
- data/doc/AeEasy/Core/Plugin/InitializeHook.html +2 -2
- data/doc/AeEasy/Core/Plugin/Parser.html +13 -2
- data/doc/AeEasy/Core/Plugin/ParserBehavior.html +12 -197
- data/doc/AeEasy/Core/Plugin/Seeder.html +9 -3
- data/doc/AeEasy/Core/Plugin/SeederBehavior.html +5 -145
- data/doc/AeEasy/Core/Plugin.html +3 -3
- data/doc/AeEasy/Core/SmartCollection.html +4 -4
- data/doc/AeEasy/Core.html +68 -58
- data/doc/AeEasy.html +2 -2
- data/doc/_index.html +15 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +56 -64
- data/doc/top-level-namespace.html +1 -1
- data/lib/ae_easy/core/config.rb +2 -0
- data/lib/ae_easy/core/mock/fake_db.rb +2 -2
- data/lib/ae_easy/core/mock/fake_executor.rb +5 -5
- data/lib/ae_easy/core/plugin/executor.rb +19 -0
- data/lib/ae_easy/core/plugin/executor_behavior.rb +32 -0
- data/lib/ae_easy/core/plugin/parser_behavior.rb +1 -23
- data/lib/ae_easy/core/plugin/seeder_behavior.rb +1 -13
- data/lib/ae_easy/core/plugin.rb +2 -0
- data/lib/ae_easy/core/smart_collection.rb +1 -1
- data/lib/ae_easy/core/version.rb +1 -1
- data/lib/ae_easy/core.rb +13 -8
- metadata +6 -2
data/doc/class_list.html
CHANGED
@@ -43,7 +43,7 @@
|
|
43
43
|
|
44
44
|
<ul id="full_list" class="class">
|
45
45
|
<li id="object_" class="odd"><div class="item" style="padding-left:30px"><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></div></li>
|
46
|
-
<li id='object_AeEasy' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy.html" title="AeEasy (module)">AeEasy</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_AeEasy::Core' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core.html" title="AeEasy::Core (module)">Core</a></span><small class='search_info'>AeEasy</small></div><ul><li id='object_AeEasy::Core::Config' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="AeEasy/Core/Config.html" title="AeEasy::Core::Config (class)">Config</a></span> < Object<small class='search_info'>AeEasy::Core</small></div></li><li id='object_AeEasy::Core::Exception' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Exception.html" title="AeEasy::Core::Exception (module)">Exception</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Exception::OutdatedError' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Exception/OutdatedError.html" title="AeEasy::Core::Exception::OutdatedError (class)">OutdatedError</a></span> < StandardError<small class='search_info'>AeEasy::Core::Exception</small></div></li></ul></li><li id='object_AeEasy::Core::Helper' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Helper.html" title="AeEasy::Core::Helper (module)">Helper</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Helper::Cookie' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Helper/Cookie.html" title="AeEasy::Core::Helper::Cookie (class)">Cookie</a></span> < Object<small class='search_info'>AeEasy::Core::Helper</small></div></li></ul></li><li id='object_AeEasy::Core::Mock' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Mock::FakeDb' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html" title="AeEasy::Core::Mock::FakeDb (class)">FakeDb</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeExecutor' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html" title="AeEasy::Core::Mock::FakeExecutor (module)">FakeExecutor</a></span><small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeParser' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeParser.html" title="AeEasy::Core::Mock::FakeParser (class)">FakeParser</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeSeeder' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeSeeder.html" title="AeEasy::Core::Mock::FakeSeeder (class)">FakeSeeder</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li></ul></li><li id='object_AeEasy::Core::Plugin' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Plugin.html" title="AeEasy::Core::Plugin (module)">Plugin</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Plugin::CollectionVault' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ConfigBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ConfigBehavior.html" title="AeEasy::Core::Plugin::ConfigBehavior (module)">ConfigBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ContextIntegrator' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::InitializeHook' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/InitializeHook.html" title="AeEasy::Core::Plugin::InitializeHook (module)">InitializeHook</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::Parser' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/Parser.html" title="AeEasy::Core::Plugin::Parser (module)">Parser</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ParserBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ParserBehavior.html" title="AeEasy::Core::Plugin::ParserBehavior (module)">ParserBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::Seeder' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/Seeder.html" title="AeEasy::Core::Plugin::Seeder (module)">Seeder</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::SeederBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/SeederBehavior.html" title="AeEasy::Core::Plugin::SeederBehavior (module)">SeederBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li></ul></li><li id='object_AeEasy::Core::SmartCollection' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="AeEasy/Core/SmartCollection.html" title="AeEasy::Core::SmartCollection (class)">SmartCollection</a></span> < Array<small class='search_info'>AeEasy::Core</small></div></li></ul></li></ul></li>
|
46
|
+
<li id='object_AeEasy' class='even'><div class='item' style='padding-left:30px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy.html" title="AeEasy (module)">AeEasy</a></span><small class='search_info'>Top Level Namespace</small></div><ul><li id='object_AeEasy::Core' class='collapsed odd'><div class='item' style='padding-left:45px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core.html" title="AeEasy::Core (module)">Core</a></span><small class='search_info'>AeEasy</small></div><ul><li id='object_AeEasy::Core::Config' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="AeEasy/Core/Config.html" title="AeEasy::Core::Config (class)">Config</a></span> < Object<small class='search_info'>AeEasy::Core</small></div></li><li id='object_AeEasy::Core::Exception' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Exception.html" title="AeEasy::Core::Exception (module)">Exception</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Exception::OutdatedError' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Exception/OutdatedError.html" title="AeEasy::Core::Exception::OutdatedError (class)">OutdatedError</a></span> < StandardError<small class='search_info'>AeEasy::Core::Exception</small></div></li></ul></li><li id='object_AeEasy::Core::Helper' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Helper.html" title="AeEasy::Core::Helper (module)">Helper</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Helper::Cookie' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Helper/Cookie.html" title="AeEasy::Core::Helper::Cookie (class)">Cookie</a></span> < Object<small class='search_info'>AeEasy::Core::Helper</small></div></li></ul></li><li id='object_AeEasy::Core::Mock' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Mock.html" title="AeEasy::Core::Mock (module)">Mock</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Mock::FakeDb' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html" title="AeEasy::Core::Mock::FakeDb (class)">FakeDb</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeExecutor' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html" title="AeEasy::Core::Mock::FakeExecutor (module)">FakeExecutor</a></span><small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeParser' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeParser.html" title="AeEasy::Core::Mock::FakeParser (class)">FakeParser</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li><li id='object_AeEasy::Core::Mock::FakeSeeder' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Mock/FakeSeeder.html" title="AeEasy::Core::Mock::FakeSeeder (class)">FakeSeeder</a></span> < Object<small class='search_info'>AeEasy::Core::Mock</small></div></li></ul></li><li id='object_AeEasy::Core::Plugin' class='collapsed'><div class='item' style='padding-left:60px'><a class='toggle'></a> <span class='object_link'><a href="AeEasy/Core/Plugin.html" title="AeEasy::Core::Plugin (module)">Plugin</a></span><small class='search_info'>AeEasy::Core</small></div><ul><li id='object_AeEasy::Core::Plugin::CollectionVault' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/CollectionVault.html" title="AeEasy::Core::Plugin::CollectionVault (module)">CollectionVault</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ConfigBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ConfigBehavior.html" title="AeEasy::Core::Plugin::ConfigBehavior (module)">ConfigBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ContextIntegrator' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ContextIntegrator.html" title="AeEasy::Core::Plugin::ContextIntegrator (module)">ContextIntegrator</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::Executor' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/Executor.html" title="AeEasy::Core::Plugin::Executor (module)">Executor</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ExecutorBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ExecutorBehavior.html" title="AeEasy::Core::Plugin::ExecutorBehavior (module)">ExecutorBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::InitializeHook' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/InitializeHook.html" title="AeEasy::Core::Plugin::InitializeHook (module)">InitializeHook</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::Parser' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/Parser.html" title="AeEasy::Core::Plugin::Parser (module)">Parser</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::ParserBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/ParserBehavior.html" title="AeEasy::Core::Plugin::ParserBehavior (module)">ParserBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::Seeder' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/Seeder.html" title="AeEasy::Core::Plugin::Seeder (module)">Seeder</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li><li id='object_AeEasy::Core::Plugin::SeederBehavior' class='collapsed'><div class='item' style='padding-left:75px'><span class='object_link'><a href="AeEasy/Core/Plugin/SeederBehavior.html" title="AeEasy::Core::Plugin::SeederBehavior (module)">SeederBehavior</a></span><small class='search_info'>AeEasy::Core::Plugin</small></div></li></ul></li><li id='object_AeEasy::Core::SmartCollection' class='collapsed'><div class='item' style='padding-left:60px'><span class='object_link'><a href="AeEasy/Core/SmartCollection.html" title="AeEasy::Core::SmartCollection (class)">SmartCollection</a></span> < Array<small class='search_info'>AeEasy::Core</small></div></li></ul></li></ul></li>
|
47
47
|
|
48
48
|
</ul>
|
49
49
|
</div>
|
data/doc/file.README.html
CHANGED
@@ -81,7 +81,7 @@ href="http://rubydoc.org/gems/ae_easy-core/frames">here</a>.</p>
|
|
81
81
|
</div></div>
|
82
82
|
|
83
83
|
<div id="footer">
|
84
|
-
Generated on
|
84
|
+
Generated on Tue Feb 26 16:38:45 2019 by
|
85
85
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
86
86
|
0.9.18 (ruby-2.5.3).
|
87
87
|
</div>
|
data/doc/index.html
CHANGED
@@ -81,7 +81,7 @@ href="http://rubydoc.org/gems/ae_easy-core/frames">here</a>.</p>
|
|
81
81
|
</div></div>
|
82
82
|
|
83
83
|
<div id="footer">
|
84
|
-
Generated on
|
84
|
+
Generated on Tue Feb 26 16:38:45 2019 by
|
85
85
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
86
86
|
0.9.18 (ruby-2.5.3).
|
87
87
|
</div>
|
data/doc/method_list.html
CHANGED
@@ -278,21 +278,13 @@
|
|
278
278
|
|
279
279
|
<li class="even ">
|
280
280
|
<div class="item">
|
281
|
-
<span class='object_link'><a href="AeEasy/Core/Plugin/
|
282
|
-
<small>AeEasy::Core::Plugin::
|
281
|
+
<span class='object_link'><a href="AeEasy/Core/Plugin/ExecutorBehavior.html#enqueue-instance_method" title="AeEasy::Core::Plugin::ExecutorBehavior#enqueue (method)">#enqueue</a></span>
|
282
|
+
<small>AeEasy::Core::Plugin::ExecutorBehavior</small>
|
283
283
|
</div>
|
284
284
|
</li>
|
285
285
|
|
286
286
|
|
287
287
|
<li class="odd ">
|
288
|
-
<div class="item">
|
289
|
-
<span class='object_link'><a href="AeEasy/Core/Plugin/SeederBehavior.html#enqueue-instance_method" title="AeEasy::Core::Plugin::SeederBehavior#enqueue (method)">#enqueue</a></span>
|
290
|
-
<small>AeEasy::Core::Plugin::SeederBehavior</small>
|
291
|
-
</div>
|
292
|
-
</li>
|
293
|
-
|
294
|
-
|
295
|
-
<li class="even ">
|
296
288
|
<div class="item">
|
297
289
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#ensure_job-instance_method" title="AeEasy::Core::Mock::FakeDb#ensure_job (method)">#ensure_job</a></span>
|
298
290
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -300,7 +292,7 @@
|
|
300
292
|
</li>
|
301
293
|
|
302
294
|
|
303
|
-
<li class="
|
295
|
+
<li class="even ">
|
304
296
|
<div class="item">
|
305
297
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#execute_script-instance_method" title="AeEasy::Core::Mock::FakeExecutor#execute_script (method)">#execute_script</a></span>
|
306
298
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -308,7 +300,7 @@
|
|
308
300
|
</li>
|
309
301
|
|
310
302
|
|
311
|
-
<li class="
|
303
|
+
<li class="odd ">
|
312
304
|
<div class="item">
|
313
305
|
<span class='object_link'><a href="AeEasy/Core.html#expose_to-class_method" title="AeEasy::Core.expose_to (method)">expose_to</a></span>
|
314
306
|
<small>AeEasy::Core</small>
|
@@ -316,7 +308,7 @@
|
|
316
308
|
</li>
|
317
309
|
|
318
310
|
|
319
|
-
<li class="
|
311
|
+
<li class="even ">
|
320
312
|
<div class="item">
|
321
313
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#failed_content-instance_method" title="AeEasy::Core::Mock::FakeExecutor#failed_content (method)">#failed_content</a></span>
|
322
314
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -324,7 +316,7 @@
|
|
324
316
|
</li>
|
325
317
|
|
326
318
|
|
327
|
-
<li class="
|
319
|
+
<li class="odd ">
|
328
320
|
<div class="item">
|
329
321
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#fake_uuid-class_method" title="AeEasy::Core::Mock::FakeDb.fake_uuid (method)">fake_uuid</a></span>
|
330
322
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -332,7 +324,7 @@
|
|
332
324
|
</li>
|
333
325
|
|
334
326
|
|
335
|
-
<li class="
|
327
|
+
<li class="even ">
|
336
328
|
<div class="item">
|
337
329
|
<span class='object_link'><a href="AeEasy/Core/Plugin/ConfigBehavior.html#find_config-instance_method" title="AeEasy::Core::Plugin::ConfigBehavior#find_config (method)">#find_config</a></span>
|
338
330
|
<small>AeEasy::Core::Plugin::ConfigBehavior</small>
|
@@ -340,7 +332,7 @@
|
|
340
332
|
</li>
|
341
333
|
|
342
334
|
|
343
|
-
<li class="
|
335
|
+
<li class="odd ">
|
344
336
|
<div class="item">
|
345
337
|
<span class='object_link'><a href="AeEasy/Core/SmartCollection.html#find_match-instance_method" title="AeEasy::Core::SmartCollection#find_match (method)">#find_match</a></span>
|
346
338
|
<small>AeEasy::Core::SmartCollection</small>
|
@@ -348,7 +340,7 @@
|
|
348
340
|
</li>
|
349
341
|
|
350
342
|
|
351
|
-
<li class="
|
343
|
+
<li class="even ">
|
352
344
|
<div class="item">
|
353
345
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#find_output-instance_method" title="AeEasy::Core::Mock::FakeExecutor#find_output (method)">#find_output</a></span>
|
354
346
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -356,7 +348,7 @@
|
|
356
348
|
</li>
|
357
349
|
|
358
350
|
|
359
|
-
<li class="
|
351
|
+
<li class="odd ">
|
360
352
|
<div class="item">
|
361
353
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#find_outputs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#find_outputs (method)">#find_outputs</a></span>
|
362
354
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -364,7 +356,7 @@
|
|
364
356
|
</li>
|
365
357
|
|
366
358
|
|
367
|
-
<li class="
|
359
|
+
<li class="even ">
|
368
360
|
<div class="item">
|
369
361
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#flush-instance_method" title="AeEasy::Core::Mock::FakeExecutor#flush (method)">#flush</a></span>
|
370
362
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -372,7 +364,7 @@
|
|
372
364
|
</li>
|
373
365
|
|
374
366
|
|
375
|
-
<li class="
|
367
|
+
<li class="odd ">
|
376
368
|
<div class="item">
|
377
369
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#flush_outputs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#flush_outputs (method)">#flush_outputs</a></span>
|
378
370
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -380,7 +372,7 @@
|
|
380
372
|
</li>
|
381
373
|
|
382
374
|
|
383
|
-
<li class="
|
375
|
+
<li class="even ">
|
384
376
|
<div class="item">
|
385
377
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#flush_pages-instance_method" title="AeEasy::Core::Mock::FakeExecutor#flush_pages (method)">#flush_pages</a></span>
|
386
378
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -388,7 +380,7 @@
|
|
388
380
|
</li>
|
389
381
|
|
390
382
|
|
391
|
-
<li class="
|
383
|
+
<li class="odd ">
|
392
384
|
<div class="item">
|
393
385
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#generate_job_id-instance_method" title="AeEasy::Core::Mock::FakeDb#generate_job_id (method)">#generate_job_id</a></span>
|
394
386
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -396,7 +388,7 @@
|
|
396
388
|
</li>
|
397
389
|
|
398
390
|
|
399
|
-
<li class="
|
391
|
+
<li class="even ">
|
400
392
|
<div class="item">
|
401
393
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#generate_output_id-instance_method" title="AeEasy::Core::Mock::FakeDb#generate_output_id (method)">#generate_output_id</a></span>
|
402
394
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -404,7 +396,7 @@
|
|
404
396
|
</li>
|
405
397
|
|
406
398
|
|
407
|
-
<li class="
|
399
|
+
<li class="odd ">
|
408
400
|
<div class="item">
|
409
401
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#generate_page_gid-instance_method" title="AeEasy::Core::Mock::FakeDb#generate_page_gid (method)">#generate_page_gid</a></span>
|
410
402
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -412,7 +404,7 @@
|
|
412
404
|
</li>
|
413
405
|
|
414
406
|
|
415
|
-
<li class="
|
407
|
+
<li class="even ">
|
416
408
|
<div class="item">
|
417
409
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#generate_scraper_name-instance_method" title="AeEasy::Core::Mock::FakeDb#generate_scraper_name (method)">#generate_scraper_name</a></span>
|
418
410
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -420,7 +412,7 @@
|
|
420
412
|
</li>
|
421
413
|
|
422
414
|
|
423
|
-
<li class="
|
415
|
+
<li class="odd ">
|
424
416
|
<div class="item">
|
425
417
|
<span class='object_link'><a href="AeEasy/Core/Helper/Cookie.html#include%3F-class_method" title="AeEasy::Core::Helper::Cookie.include? (method)">include?</a></span>
|
426
418
|
<small>AeEasy::Core::Helper::Cookie</small>
|
@@ -428,10 +420,18 @@
|
|
428
420
|
</li>
|
429
421
|
|
430
422
|
|
423
|
+
<li class="even ">
|
424
|
+
<div class="item">
|
425
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#initialize-instance_method" title="AeEasy::Core::Mock::FakeExecutor#initialize (method)">#initialize</a></span>
|
426
|
+
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
427
|
+
</div>
|
428
|
+
</li>
|
429
|
+
|
430
|
+
|
431
431
|
<li class="odd ">
|
432
432
|
<div class="item">
|
433
|
-
<span class='object_link'><a href="AeEasy/Core/
|
434
|
-
<small>AeEasy::Core::
|
433
|
+
<span class='object_link'><a href="AeEasy/Core/Plugin/Parser.html#initialize-instance_method" title="AeEasy::Core::Plugin::Parser#initialize (method)">#initialize</a></span>
|
434
|
+
<small>AeEasy::Core::Plugin::Parser</small>
|
435
435
|
</div>
|
436
436
|
</li>
|
437
437
|
|
@@ -446,16 +446,16 @@
|
|
446
446
|
|
447
447
|
<li class="odd ">
|
448
448
|
<div class="item">
|
449
|
-
<span class='object_link'><a href="AeEasy/Core/
|
450
|
-
<small>AeEasy::Core::
|
449
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#initialize-instance_method" title="AeEasy::Core::Mock::FakeDb#initialize (method)">#initialize</a></span>
|
450
|
+
<small>AeEasy::Core::Mock::FakeDb</small>
|
451
451
|
</div>
|
452
452
|
</li>
|
453
453
|
|
454
454
|
|
455
455
|
<li class="even ">
|
456
456
|
<div class="item">
|
457
|
-
<span class='object_link'><a href="AeEasy/Core/
|
458
|
-
<small>AeEasy::Core::
|
457
|
+
<span class='object_link'><a href="AeEasy/Core/Plugin/Executor.html#initialize-instance_method" title="AeEasy::Core::Plugin::Executor#initialize (method)">#initialize</a></span>
|
458
|
+
<small>AeEasy::Core::Plugin::Executor</small>
|
459
459
|
</div>
|
460
460
|
</li>
|
461
461
|
|
@@ -470,8 +470,8 @@
|
|
470
470
|
|
471
471
|
<li class="even ">
|
472
472
|
<div class="item">
|
473
|
-
<span class='object_link'><a href="AeEasy/Core/
|
474
|
-
<small>AeEasy::Core::
|
473
|
+
<span class='object_link'><a href="AeEasy/Core/SmartCollection.html#initialize-instance_method" title="AeEasy::Core::SmartCollection#initialize (method)">#initialize</a></span>
|
474
|
+
<small>AeEasy::Core::SmartCollection</small>
|
475
475
|
</div>
|
476
476
|
</li>
|
477
477
|
|
@@ -518,16 +518,16 @@
|
|
518
518
|
|
519
519
|
<li class="even ">
|
520
520
|
<div class="item">
|
521
|
-
<span class='object_link'><a href="AeEasy/Core/Mock/
|
522
|
-
<small>AeEasy::Core::Mock::
|
521
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#job_id-instance_method" title="AeEasy::Core::Mock::FakeExecutor#job_id (method)">#job_id</a></span>
|
522
|
+
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
523
523
|
</div>
|
524
524
|
</li>
|
525
525
|
|
526
526
|
|
527
527
|
<li class="odd ">
|
528
528
|
<div class="item">
|
529
|
-
<span class='object_link'><a href="AeEasy/Core/Mock/
|
530
|
-
<small>AeEasy::Core::Mock::
|
529
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#job_id-instance_method" title="AeEasy::Core::Mock::FakeDb#job_id (method)">#job_id</a></span>
|
530
|
+
<small>AeEasy::Core::Mock::FakeDb</small>
|
531
531
|
</div>
|
532
532
|
</li>
|
533
533
|
|
@@ -606,16 +606,16 @@
|
|
606
606
|
|
607
607
|
<li class="odd ">
|
608
608
|
<div class="item">
|
609
|
-
<span class='object_link'><a href="AeEasy/Core/Mock/
|
610
|
-
<small>AeEasy::Core::Mock::
|
609
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#outputs-instance_method" title="AeEasy::Core::Mock::FakeDb#outputs (method)">#outputs</a></span>
|
610
|
+
<small>AeEasy::Core::Mock::FakeDb</small>
|
611
611
|
</div>
|
612
612
|
</li>
|
613
613
|
|
614
614
|
|
615
615
|
<li class="even ">
|
616
616
|
<div class="item">
|
617
|
-
<span class='object_link'><a href="AeEasy/Core/Mock/
|
618
|
-
<small>AeEasy::Core::Mock::
|
617
|
+
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#outputs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#outputs (method)">#outputs</a></span>
|
618
|
+
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
619
619
|
</div>
|
620
620
|
</li>
|
621
621
|
|
@@ -726,21 +726,13 @@
|
|
726
726
|
|
727
727
|
<li class="even ">
|
728
728
|
<div class="item">
|
729
|
-
<span class='object_link'><a href="AeEasy/Core/Plugin/
|
730
|
-
<small>AeEasy::Core::Plugin::
|
729
|
+
<span class='object_link'><a href="AeEasy/Core/Plugin/ExecutorBehavior.html#save-instance_method" title="AeEasy::Core::Plugin::ExecutorBehavior#save (method)">#save</a></span>
|
730
|
+
<small>AeEasy::Core::Plugin::ExecutorBehavior</small>
|
731
731
|
</div>
|
732
732
|
</li>
|
733
733
|
|
734
734
|
|
735
735
|
<li class="odd ">
|
736
|
-
<div class="item">
|
737
|
-
<span class='object_link'><a href="AeEasy/Core/Plugin/ParserBehavior.html#save-instance_method" title="AeEasy::Core::Plugin::ParserBehavior#save (method)">#save</a></span>
|
738
|
-
<small>AeEasy::Core::Plugin::ParserBehavior</small>
|
739
|
-
</div>
|
740
|
-
</li>
|
741
|
-
|
742
|
-
|
743
|
-
<li class="even ">
|
744
736
|
<div class="item">
|
745
737
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#save_jobs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#save_jobs (method)">#save_jobs</a></span>
|
746
738
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -748,7 +740,7 @@
|
|
748
740
|
</li>
|
749
741
|
|
750
742
|
|
751
|
-
<li class="
|
743
|
+
<li class="even ">
|
752
744
|
<div class="item">
|
753
745
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#save_outputs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#save_outputs (method)">#save_outputs</a></span>
|
754
746
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -756,7 +748,7 @@
|
|
756
748
|
</li>
|
757
749
|
|
758
750
|
|
759
|
-
<li class="
|
751
|
+
<li class="odd ">
|
760
752
|
<div class="item">
|
761
753
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#save_pages-instance_method" title="AeEasy::Core::Mock::FakeExecutor#save_pages (method)">#save_pages</a></span>
|
762
754
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -764,7 +756,7 @@
|
|
764
756
|
</li>
|
765
757
|
|
766
758
|
|
767
|
-
<li class="
|
759
|
+
<li class="even ">
|
768
760
|
<div class="item">
|
769
761
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#saved_jobs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#saved_jobs (method)">#saved_jobs</a></span>
|
770
762
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -772,7 +764,7 @@
|
|
772
764
|
</li>
|
773
765
|
|
774
766
|
|
775
|
-
<li class="
|
767
|
+
<li class="odd ">
|
776
768
|
<div class="item">
|
777
769
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#saved_outputs-instance_method" title="AeEasy::Core::Mock::FakeExecutor#saved_outputs (method)">#saved_outputs</a></span>
|
778
770
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -780,7 +772,7 @@
|
|
780
772
|
</li>
|
781
773
|
|
782
774
|
|
783
|
-
<li class="
|
775
|
+
<li class="even ">
|
784
776
|
<div class="item">
|
785
777
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#saved_pages-instance_method" title="AeEasy::Core::Mock::FakeExecutor#saved_pages (method)">#saved_pages</a></span>
|
786
778
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -788,7 +780,7 @@
|
|
788
780
|
</li>
|
789
781
|
|
790
782
|
|
791
|
-
<li class="
|
783
|
+
<li class="odd ">
|
792
784
|
<div class="item">
|
793
785
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#scraper_name-instance_method" title="AeEasy::Core::Mock::FakeDb#scraper_name (method)">#scraper_name</a></span>
|
794
786
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -796,7 +788,7 @@
|
|
796
788
|
</li>
|
797
789
|
|
798
790
|
|
799
|
-
<li class="
|
791
|
+
<li class="even ">
|
800
792
|
<div class="item">
|
801
793
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#scraper_name-instance_method" title="AeEasy::Core::Mock::FakeExecutor#scraper_name (method)">#scraper_name</a></span>
|
802
794
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -804,7 +796,7 @@
|
|
804
796
|
</li>
|
805
797
|
|
806
798
|
|
807
|
-
<li class="
|
799
|
+
<li class="odd ">
|
808
800
|
<div class="item">
|
809
801
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeDb.html#scraper_name=-instance_method" title="AeEasy::Core::Mock::FakeDb#scraper_name= (method)">#scraper_name=</a></span>
|
810
802
|
<small>AeEasy::Core::Mock::FakeDb</small>
|
@@ -812,7 +804,7 @@
|
|
812
804
|
</li>
|
813
805
|
|
814
806
|
|
815
|
-
<li class="
|
807
|
+
<li class="even ">
|
816
808
|
<div class="item">
|
817
809
|
<span class='object_link'><a href="AeEasy/Core/Mock/FakeExecutor.html#scraper_name=-instance_method" title="AeEasy::Core::Mock::FakeExecutor#scraper_name= (method)">#scraper_name=</a></span>
|
818
810
|
<small>AeEasy::Core::Mock::FakeExecutor</small>
|
@@ -820,7 +812,7 @@
|
|
820
812
|
</li>
|
821
813
|
|
822
814
|
|
823
|
-
<li class="
|
815
|
+
<li class="odd ">
|
824
816
|
<div class="item">
|
825
817
|
<span class='object_link'><a href="AeEasy/Core/Helper/Cookie.html#update-class_method" title="AeEasy::Core::Helper::Cookie.update (method)">update</a></span>
|
826
818
|
<small>AeEasy::Core::Helper::Cookie</small>
|
@@ -828,7 +820,7 @@
|
|
828
820
|
</li>
|
829
821
|
|
830
822
|
|
831
|
-
<li class="
|
823
|
+
<li class="even ">
|
832
824
|
<div class="item">
|
833
825
|
<span class='object_link'><a href="AeEasy/Core/Helper/Cookie.html#update_as_hash-class_method" title="AeEasy::Core::Helper::Cookie.update_as_hash (method)">update_as_hash</a></span>
|
834
826
|
<small>AeEasy::Core::Helper::Cookie</small>
|
@@ -836,7 +828,7 @@
|
|
836
828
|
</li>
|
837
829
|
|
838
830
|
|
839
|
-
<li class="
|
831
|
+
<li class="odd ">
|
840
832
|
<div class="item">
|
841
833
|
<span class='object_link'><a href="AeEasy/Core/Plugin/ParserBehavior.html#vars-instance_method" title="AeEasy::Core::Plugin::ParserBehavior#vars (method)">#vars</a></span>
|
842
834
|
<small>AeEasy::Core::Plugin::ParserBehavior</small>
|
@@ -100,7 +100,7 @@
|
|
100
100
|
</div>
|
101
101
|
|
102
102
|
<div id="footer">
|
103
|
-
Generated on
|
103
|
+
Generated on Tue Feb 26 16:38:45 2019 by
|
104
104
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
105
105
|
0.9.18 (ruby-2.5.3).
|
106
106
|
</div>
|
data/lib/ae_easy/core/config.rb
CHANGED
@@ -6,7 +6,9 @@ module AeEasy
|
|
6
6
|
include AeEasy::Core::Plugin::InitializeHook
|
7
7
|
include AeEasy::Core::Plugin::ConfigBehavior
|
8
8
|
|
9
|
+
# {AeEasy::Core::Plugin::ConfigBehavior#config_collection_key}
|
9
10
|
alias :collection_key :config_collection_key
|
11
|
+
# {AeEasy::Core::Plugin::ConfigBehavior#config_collection}
|
10
12
|
alias :collection :config_collection
|
11
13
|
|
12
14
|
# Initialize config object
|
@@ -97,7 +97,7 @@ module AeEasy
|
|
97
97
|
# Format headers for gid generation.
|
98
98
|
# @private
|
99
99
|
#
|
100
|
-
# @param [Hash
|
100
|
+
# @param [Hash,nil] headers Headers hash.
|
101
101
|
#
|
102
102
|
# @return [Hash]
|
103
103
|
def self.format_headers headers
|
@@ -441,7 +441,7 @@ module AeEasy
|
|
441
441
|
# @param [Symbol] collection Allowed values: `:outputs`, `:pages`.
|
442
442
|
# @param [Hash] filter Filters to query.
|
443
443
|
# @param [Integer] offset (0) Search results offset.
|
444
|
-
# @param [Integer
|
444
|
+
# @param [Integer,nil] limit (nil) Limit search results count. Set to `nil` for unlimited.
|
445
445
|
#
|
446
446
|
# @raise ArgumentError On unknown collection.
|
447
447
|
#
|
@@ -202,7 +202,7 @@ module AeEasy
|
|
202
202
|
# @param [String] scraper_name Scraper name.
|
203
203
|
# @param [Hash] filter ({}) Additional_filters.
|
204
204
|
#
|
205
|
-
# @return [Hash
|
205
|
+
# @return [Hash,nil] Return nil if no scraper_name or scraper_name is
|
206
206
|
# nil.
|
207
207
|
def latest_job_by scraper_name, filter = {}
|
208
208
|
return nil if scraper_name.nil?
|
@@ -217,9 +217,9 @@ module AeEasy
|
|
217
217
|
# @param [Integer] page (1) Page number.
|
218
218
|
# @param [Integer] per_page (30) Page size.
|
219
219
|
# @param [Hash] opts ({}) Configuration options.
|
220
|
-
# @option opts [String
|
220
|
+
# @option opts [String,nil] :scraper_name (nil) Scraper name to query
|
221
221
|
# from.
|
222
|
-
# @option opts [Integer
|
222
|
+
# @option opts [Integer,nil] :job_id (nil) Job's id to query from.
|
223
223
|
#
|
224
224
|
# @raise [ArgumentError] +collection+ is not String.
|
225
225
|
# @raise [ArgumentError] +query+ is not a Hash.
|
@@ -271,9 +271,9 @@ module AeEasy
|
|
271
271
|
# @param [String] collection ('default') Collection name.
|
272
272
|
# @param [Hash] query ({}) Filters to query.
|
273
273
|
# @param [Hash] opts ({}) Configuration options.
|
274
|
-
# @option opts [String
|
274
|
+
# @option opts [String,nil] :scraper_name (nil) Scraper name to query
|
275
275
|
# from.
|
276
|
-
# @option opts [Integer
|
276
|
+
# @option opts [Integer,nil] :job_id (nil) Job's id to query from.
|
277
277
|
#
|
278
278
|
# @raise [ArgumentError] +collection+ is not String.
|
279
279
|
# @raise [ArgumentError] +query+ is not a Hash.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module AeEasy
|
2
|
+
module Core
|
3
|
+
module Plugin
|
4
|
+
module Executor
|
5
|
+
include AeEasy::Core::Plugin::InitializeHook
|
6
|
+
include AeEasy::Core::Plugin::ExecutorBehavior
|
7
|
+
|
8
|
+
# Initialize hooks.
|
9
|
+
#
|
10
|
+
# @param [Hash] opts ({}) Configuration options.
|
11
|
+
#
|
12
|
+
# @see AeEasy::Core::Plugin::ContextIntegrator#initialize_hook_core_context_integrator
|
13
|
+
def initialize opts = {}
|
14
|
+
initialize_hooks opts
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module AeEasy
|
2
|
+
module Core
|
3
|
+
module Plugin
|
4
|
+
module ExecutorBehavior
|
5
|
+
include AeEasy::Core::Plugin::ContextIntegrator
|
6
|
+
|
7
|
+
# Enqueue a single/multiple pages for fetch. Analog to `save_pages`.
|
8
|
+
#
|
9
|
+
# @param [Array,Hash] object Pages to save being Hash when single and
|
10
|
+
# Array when many.
|
11
|
+
#
|
12
|
+
# @note Instance must implement:
|
13
|
+
# * `save_pages(pages)`
|
14
|
+
def enqueue object
|
15
|
+
object = [object] unless object.is_a? Array
|
16
|
+
save_pages object
|
17
|
+
end
|
18
|
+
|
19
|
+
# Save a single/multiple outputs. Analog to `save_outputs`.
|
20
|
+
#
|
21
|
+
# @param [Array,Hash] object Outputs to save being Hash when single and Array when many.
|
22
|
+
#
|
23
|
+
# @note Instance must implement:
|
24
|
+
# * `save_outputs(outputs)`
|
25
|
+
def save object
|
26
|
+
object = [object] unless object.is_a? Array
|
27
|
+
save_outputs object
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -2,29 +2,7 @@ module AeEasy
|
|
2
2
|
module Core
|
3
3
|
module Plugin
|
4
4
|
module ParserBehavior
|
5
|
-
include AeEasy::Core::Plugin::
|
6
|
-
|
7
|
-
# Enqueue a single/multiple pages for fetch. Analog to `save_pages`.
|
8
|
-
#
|
9
|
-
# @param [Array,Hash] pages Pages to save being Hash when single and Array when many.
|
10
|
-
#
|
11
|
-
# @note Instance must implement:
|
12
|
-
# * `save_pages(pages)`
|
13
|
-
def enqueue pages
|
14
|
-
pages = [pages] unless pages.is_a? Array
|
15
|
-
save_pages pages
|
16
|
-
end
|
17
|
-
|
18
|
-
# Save a single/multiple outputs. Analog to `save_outputs`.
|
19
|
-
#
|
20
|
-
# @param [Array,Hash] outputs Outputs to save being Hash when single and Array when many.
|
21
|
-
#
|
22
|
-
# @note Instance must implement:
|
23
|
-
# * `save_outputs(outputs)`
|
24
|
-
def save outputs
|
25
|
-
outputs = [outputs] unless outputs.is_a? Array
|
26
|
-
save_outputs outputs
|
27
|
-
end
|
5
|
+
include AeEasy::Core::Plugin::ExecutorBehavior
|
28
6
|
|
29
7
|
# Alias to `page['vars']`.
|
30
8
|
#
|
@@ -2,19 +2,7 @@ module AeEasy
|
|
2
2
|
module Core
|
3
3
|
module Plugin
|
4
4
|
module SeederBehavior
|
5
|
-
include AeEasy::Core::Plugin::
|
6
|
-
|
7
|
-
# {AeEasy::Core::Plugin::ParserBehavior#enqueue}
|
8
|
-
def enqueue pages
|
9
|
-
pages = [pages] unless pages.is_a? Array
|
10
|
-
save_pages pages
|
11
|
-
end
|
12
|
-
|
13
|
-
# {AeEasy::Core::Plugin::ParserBehavior#save}
|
14
|
-
def save outputs
|
15
|
-
outputs = [outputs] unless outputs.is_a? Array
|
16
|
-
save_outputs outputs
|
17
|
-
end
|
5
|
+
include AeEasy::Core::Plugin::ExecutorBehavior
|
18
6
|
end
|
19
7
|
end
|
20
8
|
end
|