log_simulator 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +5 -5
- data/bin/simulate +8 -5
- data/lib/log_simulator/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5aa72ff927b5b2906d9db37371b732c6e7fb9f42
|
4
|
+
data.tar.gz: 635acc5c9d58de7410cfb04ee27f2440795a0ebf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3a171fd2d63dc34ed934c382999b111750f31c7f1c9fca2e364aa64bf3b329515afca23650d77c372ca02090642371e5e4fca517310433f61838e7d13504584
|
7
|
+
data.tar.gz: 8fb94af3fec3c9ed6f039203356ed7a87557ef2bb7a32e47d2d4ea1c09ce54905d8936909b695d6976b1065f05f8f9d7bb083d7f8c4421c7b01faad39c4f1699
|
data/.idea/workspace.xml
CHANGED
@@ -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="612">
|
35
|
+
<caret line="25" column="3" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
|
36
36
|
<folding />
|
37
37
|
</state>
|
38
38
|
</provider>
|
@@ -458,7 +458,7 @@
|
|
458
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" />
|
459
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" />
|
460
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" />
|
461
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.
|
461
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.17549168" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
462
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" />
|
463
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" />
|
464
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" />
|
@@ -617,8 +617,8 @@
|
|
617
617
|
</entry>
|
618
618
|
<entry file="file://$PROJECT_DIR$/bin/simulate">
|
619
619
|
<provider selected="true" editor-type-id="text-editor">
|
620
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="
|
621
|
-
<caret line="
|
620
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="612">
|
621
|
+
<caret line="25" column="3" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
|
622
622
|
<folding />
|
623
623
|
</state>
|
624
624
|
</provider>
|
data/bin/simulate
CHANGED
@@ -5,21 +5,24 @@ require 'log_simulator'
|
|
5
5
|
|
6
6
|
timescale = 1.0
|
7
7
|
|
8
|
-
OptionParser.new do |opts|
|
9
|
-
opts.banner = "Usage:
|
8
|
+
opts = OptionParser.new do |opts|
|
9
|
+
opts.banner = "Usage: simulate [logfile path] [options]"
|
10
10
|
|
11
|
-
opts.on('-t time',Float,'timescale') do |time|
|
11
|
+
opts.on('-t time',Float,'timescale. Default is 1.0') do |time|
|
12
12
|
timescale = time
|
13
13
|
end
|
14
14
|
|
15
15
|
opts.on_tail('-h', '--help', 'Show this message') { puts opts; exit }
|
16
|
-
end
|
16
|
+
end
|
17
|
+
|
18
|
+
opts.parse!(ARGV)
|
17
19
|
|
18
20
|
filepath = ARGV.pop(ARGV.count)[0]
|
19
21
|
if filepath
|
20
22
|
LogSimulator::PlusLogSimulator.start(filepath,timescale)
|
21
23
|
else
|
22
|
-
puts
|
24
|
+
puts opts.help
|
25
|
+
exit 1
|
23
26
|
end
|
24
27
|
|
25
28
|
|