log_simulator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/log_simulator.iml +0 -1
- data/.idea/workspace.xml +94 -57
- data/bin/simulate +10 -5
- data/lib/log_simulator.rb +12 -5
- data/lib/log_simulator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1f5ed8de16f5408eb3493545938904f026fe437
|
4
|
+
data.tar.gz: 93c734d341ea40dc3787b139de4e32be2218d6fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e954f8030ec3cc22d217bce334c55d54cd80b3c0d67a275b0f6ae58f1ee217b5f617e54516ef164257c30d7283e49fb05220da30e5ee4eb2f96dd0551128852
|
7
|
+
data.tar.gz: 4ff6a6ba8fbdd1da4e59f20f6c2863746688c97d9f761c272709db4d5ed251c4a81fbf571321fac28fca62c9ac0d9a6422b4c441e76bd319643e40239d33a1b9
|
data/.idea/log_simulator.iml
CHANGED
@@ -68,7 +68,6 @@
|
|
68
68
|
<orderEntry type="inheritedJdk" />
|
69
69
|
<orderEntry type="sourceFolder" forTests="false" />
|
70
70
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
71
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v10.3.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
72
71
|
</component>
|
73
72
|
</module>
|
74
73
|
|
data/.idea/workspace.xml
CHANGED
@@ -12,8 +12,8 @@
|
|
12
12
|
</component>
|
13
13
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
14
14
|
<component name="CoverageDataManager">
|
15
|
-
<SUITE FILE_PATH="coverage/log_simulator@IRB_console__log_simulator.coverage" NAME="IRB console: log_simulator Coverage Results" MODIFIED="
|
16
|
-
<SUITE FILE_PATH="coverage/log_simulator@Install_Gem.coverage" NAME="Install Gem Coverage Results" MODIFIED="
|
15
|
+
<SUITE FILE_PATH="coverage/log_simulator@IRB_console__log_simulator.coverage" NAME="IRB console: log_simulator Coverage Results" MODIFIED="1414926488043" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="log_simulator" />
|
16
|
+
<SUITE FILE_PATH="coverage/log_simulator@Install_Gem.coverage" NAME="Install Gem Coverage Results" MODIFIED="1414885298687" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="log_simulator" />
|
17
17
|
<SUITE FILE_PATH="coverage/log_simulator@Unnamed.coverage" NAME="Unnamed Coverage Results" MODIFIED="1414862460976" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="" MODULE_NAME="log_simulator" />
|
18
18
|
</component>
|
19
19
|
<component name="CreatePatchCommitExecutor">
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<file leaf-file-name="simulate" pinned="false" current="false" current-in-tab="false">
|
32
32
|
<entry file="file://$PROJECT_DIR$/bin/simulate">
|
33
33
|
<provider selected="true" editor-type-id="text-editor">
|
34
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
35
|
-
<caret line="
|
34
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="558">
|
35
|
+
<caret line="18" column="11" selection-start-line="18" selection-start-column="11" selection-end-line="18" selection-end-column="11" />
|
36
36
|
<folding />
|
37
37
|
</state>
|
38
38
|
</provider>
|
@@ -41,8 +41,8 @@
|
|
41
41
|
<file leaf-file-name="log_simulator.rb" pinned="false" current="false" current-in-tab="false">
|
42
42
|
<entry file="file://$PROJECT_DIR$/lib/log_simulator.rb">
|
43
43
|
<provider selected="true" editor-type-id="text-editor">
|
44
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
45
|
-
<caret line="
|
44
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="882">
|
45
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
46
46
|
<folding />
|
47
47
|
</state>
|
48
48
|
</provider>
|
@@ -51,23 +51,13 @@
|
|
51
51
|
<file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
|
52
52
|
<entry file="file://$PROJECT_DIR$/lib/log_simulator/version.rb">
|
53
53
|
<provider selected="true" editor-type-id="text-editor">
|
54
|
-
<state vertical-scroll-proportion="0.
|
54
|
+
<state vertical-scroll-proportion="0.020881671" vertical-offset="0" max-vertical-offset="862">
|
55
55
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
56
56
|
<folding />
|
57
57
|
</state>
|
58
58
|
</provider>
|
59
59
|
</entry>
|
60
60
|
</file>
|
61
|
-
<file leaf-file-name="log_simulator.gemspec" pinned="false" current="false" current-in-tab="false">
|
62
|
-
<entry file="file://$PROJECT_DIR$/log_simulator.gemspec">
|
63
|
-
<provider selected="true" editor-type-id="text-editor">
|
64
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="435">
|
65
|
-
<caret line="13" column="28" selection-start-line="13" selection-start-column="28" selection-end-line="13" selection-end-column="28" />
|
66
|
-
<folding />
|
67
|
-
</state>
|
68
|
-
</provider>
|
69
|
-
</entry>
|
70
|
-
</file>
|
71
61
|
</leaf>
|
72
62
|
</component>
|
73
63
|
<component name="FindManager">
|
@@ -87,8 +77,8 @@
|
|
87
77
|
</component>
|
88
78
|
<component name="ProjectFrameBounds">
|
89
79
|
<option name="y" value="23" />
|
90
|
-
<option name="width" value="
|
91
|
-
<option name="height" value="
|
80
|
+
<option name="width" value="2560" />
|
81
|
+
<option name="height" value="1417" />
|
92
82
|
</component>
|
93
83
|
<component name="ProjectInspectionProfilesVisibleTreeState">
|
94
84
|
<entry key="Project Default">
|
@@ -209,14 +199,14 @@
|
|
209
199
|
<recent name="$PROJECT_DIR$/bin" />
|
210
200
|
</key>
|
211
201
|
</component>
|
212
|
-
<component name="RunManager" selected="
|
213
|
-
<configuration default="true" type="
|
202
|
+
<component name="RunManager" selected="IRB console.IRB console: log_simulator">
|
203
|
+
<configuration default="true" type="CommandRunConfigurationType" factoryName="Gem Command">
|
214
204
|
<module name="" />
|
215
|
-
<
|
216
|
-
<
|
217
|
-
<
|
218
|
-
<
|
219
|
-
<
|
205
|
+
<COMMAND_RUN_CONFIGURATION NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
206
|
+
<COMMAND_RUN_CONFIGURATION NAME="WORK DIR" VALUE="" />
|
207
|
+
<COMMAND_RUN_CONFIGURATION NAME="SHOULD_USE_SDK" VALUE="false" />
|
208
|
+
<COMMAND_RUN_CONFIGURATION NAME="ALTERN_SDK_NAME" VALUE="" />
|
209
|
+
<COMMAND_RUN_CONFIGURATION NAME="myPassParentEnvs" VALUE="true" />
|
220
210
|
<envs />
|
221
211
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
222
212
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
@@ -226,21 +216,19 @@
|
|
226
216
|
</COVERAGE_PATTERN>
|
227
217
|
</EXTENSION>
|
228
218
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
229
|
-
<
|
230
|
-
<
|
231
|
-
<
|
232
|
-
<
|
233
|
-
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
234
|
-
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
219
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="GEM_NAME" VALUE="" />
|
220
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_NAME" VALUE="" />
|
221
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="EXECUTABLE_ARGS" VALUE="" />
|
222
|
+
<COMMAND_CONFIG_SETTINGS_ID NAME="WORKING_DIR" VALUE="" />
|
235
223
|
<method />
|
236
224
|
</configuration>
|
237
|
-
<configuration default="true" type="
|
225
|
+
<configuration default="true" type="RakeRunConfigurationType" factoryName="Rake">
|
238
226
|
<module name="" />
|
239
|
-
<
|
240
|
-
<
|
241
|
-
<
|
242
|
-
<
|
243
|
-
<
|
227
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
228
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
229
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
230
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
231
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
244
232
|
<envs />
|
245
233
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
246
234
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
@@ -250,10 +238,12 @@
|
|
250
238
|
</COVERAGE_PATTERN>
|
251
239
|
</EXTENSION>
|
252
240
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
253
|
-
<
|
254
|
-
<
|
255
|
-
<
|
256
|
-
<
|
241
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="" />
|
242
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="" />
|
243
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
|
244
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
|
245
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
|
246
|
+
<RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
|
257
247
|
<method />
|
258
248
|
</configuration>
|
259
249
|
<configuration default="true" type="CapistranoRunConfigurationType" factoryName="Capistrano">
|
@@ -456,27 +446,27 @@
|
|
456
446
|
<servers />
|
457
447
|
</component>
|
458
448
|
<component name="ToolWindowManager">
|
459
|
-
<frame x="0" y="23" width="
|
460
|
-
<editor active="
|
449
|
+
<frame x="0" y="23" width="2560" height="1417" extended-state="6" />
|
450
|
+
<editor active="true" />
|
461
451
|
<layout>
|
462
452
|
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
463
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
453
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3267776" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
464
454
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
465
|
-
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917318" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
466
455
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
467
456
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
468
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
457
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.14455917" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
469
458
|
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
470
459
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
471
460
|
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
|
472
|
-
<window_info id="Run" active="
|
461
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.17620818" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
473
462
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
474
463
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
475
464
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
465
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917318" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
476
466
|
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
477
467
|
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
478
|
-
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
479
468
|
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
469
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
480
470
|
</layout>
|
481
471
|
</component>
|
482
472
|
<component name="Vcs.Log.UiProperties">
|
@@ -499,6 +489,46 @@
|
|
499
489
|
<breakpoint-manager />
|
500
490
|
</component>
|
501
491
|
<component name="editorHistoryManager">
|
492
|
+
<entry file="file://$PROJECT_DIR$/bin/simulate">
|
493
|
+
<provider selected="true" editor-type-id="text-editor">
|
494
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="468">
|
495
|
+
<caret line="3" column="15" selection-start-line="3" selection-start-column="15" selection-end-line="3" selection-end-column="15" />
|
496
|
+
<folding />
|
497
|
+
</state>
|
498
|
+
</provider>
|
499
|
+
</entry>
|
500
|
+
<entry file="file://$PROJECT_DIR$/lib/log_simulator.rb">
|
501
|
+
<provider selected="true" editor-type-id="text-editor">
|
502
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="486" max-vertical-offset="828">
|
503
|
+
<caret line="27" column="24" selection-start-line="27" selection-start-column="24" selection-end-line="27" selection-end-column="24" />
|
504
|
+
<folding />
|
505
|
+
</state>
|
506
|
+
</provider>
|
507
|
+
</entry>
|
508
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
509
|
+
<provider selected="true" editor-type-id="text-editor">
|
510
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="270" max-vertical-offset="504">
|
511
|
+
<caret line="15" column="3" selection-start-line="15" selection-start-column="3" selection-end-line="15" selection-end-column="3" />
|
512
|
+
<folding />
|
513
|
+
</state>
|
514
|
+
</provider>
|
515
|
+
</entry>
|
516
|
+
<entry file="file://$PROJECT_DIR$/lib/log_simulator/version.rb">
|
517
|
+
<provider selected="true" editor-type-id="text-editor">
|
518
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="54" max-vertical-offset="162">
|
519
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
520
|
+
<folding />
|
521
|
+
</state>
|
522
|
+
</provider>
|
523
|
+
</entry>
|
524
|
+
<entry file="file://$PROJECT_DIR$/log_simulator.gemspec">
|
525
|
+
<provider selected="true" editor-type-id="text-editor">
|
526
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="234" max-vertical-offset="522">
|
527
|
+
<caret line="13" column="28" selection-start-line="13" selection-start-column="28" selection-end-line="13" selection-end-column="28" />
|
528
|
+
<folding />
|
529
|
+
</state>
|
530
|
+
</provider>
|
531
|
+
</entry>
|
502
532
|
<entry file="file://$PROJECT_DIR$/lib/log_simulator.rb">
|
503
533
|
<provider selected="true" editor-type-id="text-editor">
|
504
534
|
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="195">
|
@@ -558,37 +588,44 @@
|
|
558
588
|
<provider selected="true" editor-type-id="text-editor">
|
559
589
|
<state vertical-scroll-proportion="0.07481297" vertical-offset="0" max-vertical-offset="401">
|
560
590
|
<caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
|
561
|
-
<folding />
|
562
591
|
</state>
|
563
592
|
</provider>
|
564
593
|
</entry>
|
565
594
|
<entry file="file://$PROJECT_DIR$/log_simulator.gemspec">
|
566
595
|
<provider selected="true" editor-type-id="text-editor">
|
567
|
-
<state vertical-scroll-proportion="0.
|
568
|
-
<caret line="
|
596
|
+
<state vertical-scroll-proportion="0.3549884" vertical-offset="0" max-vertical-offset="862">
|
597
|
+
<caret line="17" column="40" selection-start-line="17" selection-start-column="40" selection-end-line="17" selection-end-column="40" />
|
598
|
+
<folding />
|
599
|
+
</state>
|
600
|
+
</provider>
|
601
|
+
</entry>
|
602
|
+
<entry file="file://$PROJECT_DIR$/.gitignore">
|
603
|
+
<provider selected="true" editor-type-id="text-editor">
|
604
|
+
<state vertical-scroll-proportion="0.32258064" vertical-offset="0" max-vertical-offset="837">
|
605
|
+
<caret line="15" column="3" selection-start-line="15" selection-start-column="3" selection-end-line="15" selection-end-column="3" />
|
569
606
|
<folding />
|
570
607
|
</state>
|
571
608
|
</provider>
|
572
609
|
</entry>
|
573
610
|
<entry file="file://$PROJECT_DIR$/lib/log_simulator.rb">
|
574
611
|
<provider selected="true" editor-type-id="text-editor">
|
575
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
576
|
-
<caret line="
|
612
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="882">
|
613
|
+
<caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
|
577
614
|
<folding />
|
578
615
|
</state>
|
579
616
|
</provider>
|
580
617
|
</entry>
|
581
618
|
<entry file="file://$PROJECT_DIR$/bin/simulate">
|
582
619
|
<provider selected="true" editor-type-id="text-editor">
|
583
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
584
|
-
<caret line="
|
620
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="558">
|
621
|
+
<caret line="18" column="11" selection-start-line="18" selection-start-column="11" selection-end-line="18" selection-end-column="11" />
|
585
622
|
<folding />
|
586
623
|
</state>
|
587
624
|
</provider>
|
588
625
|
</entry>
|
589
626
|
<entry file="file://$PROJECT_DIR$/lib/log_simulator/version.rb">
|
590
627
|
<provider selected="true" editor-type-id="text-editor">
|
591
|
-
<state vertical-scroll-proportion="0.
|
628
|
+
<state vertical-scroll-proportion="0.020881671" vertical-offset="0" max-vertical-offset="862">
|
592
629
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
593
630
|
<folding />
|
594
631
|
</state>
|
data/bin/simulate
CHANGED
@@ -3,18 +3,23 @@
|
|
3
3
|
require 'optparse'
|
4
4
|
require 'log_simulator'
|
5
5
|
|
6
|
-
|
6
|
+
timescale = 1.0
|
7
7
|
|
8
8
|
OptionParser.new do |opts|
|
9
9
|
opts.banner = "Usage: Debug Socket [options]"
|
10
10
|
|
11
|
-
opts.on('-
|
12
|
-
|
11
|
+
opts.on('-t time',Float,'timescale') do |time|
|
12
|
+
timescale = time
|
13
13
|
end
|
14
14
|
|
15
15
|
opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit }
|
16
|
-
|
17
16
|
end.parse!(ARGV)
|
18
17
|
|
19
|
-
|
18
|
+
filepath = ARGV.pop(ARGV.count)[0]
|
19
|
+
if filepath
|
20
|
+
LogSimulator::PlusLogSimulator.start(filepath,timescale)
|
21
|
+
else
|
22
|
+
puts 'Specify file path'
|
23
|
+
end
|
24
|
+
|
20
25
|
|
data/lib/log_simulator.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module LogSimulator
|
3
3
|
class PlusLogSimulator
|
4
4
|
|
5
|
-
def self.start(filepath)
|
5
|
+
def self.start(filepath,timescale)
|
6
6
|
begin
|
7
7
|
socket = TCPSocket.new 'localhost',7658
|
8
8
|
rescue Exception => _
|
@@ -12,13 +12,15 @@ module LogSimulator
|
|
12
12
|
path = File.expand_path(filepath)
|
13
13
|
puts "Opening log file at path: " + path
|
14
14
|
|
15
|
-
|
16
|
-
|
15
|
+
if !File.exist? path
|
16
|
+
puts 'No such file at path '+ path
|
17
|
+
return
|
18
|
+
end
|
17
19
|
|
20
|
+
time = 0
|
18
21
|
File.open(path,'r+:utf-8') do |file|
|
19
22
|
file.each_line do |line|
|
20
|
-
line
|
21
|
-
_time = timeStr.to_i
|
23
|
+
timestamp_parse(line) do |_time,message|
|
22
24
|
if time != 0
|
23
25
|
sleep (_time - time) * timescale
|
24
26
|
end
|
@@ -30,7 +32,12 @@ module LogSimulator
|
|
30
32
|
end
|
31
33
|
end
|
32
34
|
end
|
35
|
+
end
|
33
36
|
|
37
|
+
def self.timestamp_parse (line)
|
38
|
+
line.scan(/N\|(\d+)\|RECEIVE << (.*)/) do |timeStr,message|
|
39
|
+
yield timeStr.to_i,message
|
40
|
+
end
|
34
41
|
end
|
35
42
|
|
36
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_simulator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ogan Topkaya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|