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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1f5ed8de16f5408eb3493545938904f026fe437
4
- data.tar.gz: 93c734d341ea40dc3787b139de4e32be2218d6fc
3
+ metadata.gz: 5aa72ff927b5b2906d9db37371b732c6e7fb9f42
4
+ data.tar.gz: 635acc5c9d58de7410cfb04ee27f2440795a0ebf
5
5
  SHA512:
6
- metadata.gz: 2e954f8030ec3cc22d217bce334c55d54cd80b3c0d67a275b0f6ae58f1ee217b5f617e54516ef164257c30d7283e49fb05220da30e5ee4eb2f96dd0551128852
7
- data.tar.gz: 4ff6a6ba8fbdd1da4e59f20f6c2863746688c97d9f761c272709db4d5ed251c4a81fbf571321fac28fca62c9ac0d9a6422b4c441e76bd319643e40239d33a1b9
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="558">
35
- <caret line="18" column="11" selection-start-line="18" selection-start-column="11" selection-end-line="18" selection-end-column="11" />
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.17620818" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
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="558">
621
- <caret line="18" column="11" selection-start-line="18" selection-start-column="11" selection-end-line="18" selection-end-column="11" />
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: Debug Socket [options]"
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.parse!(ARGV)
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 'Specify file path'
24
+ puts opts.help
25
+ exit 1
23
26
  end
24
27
 
25
28
 
@@ -1,3 +1,3 @@
1
1
  module LogSimulator
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_simulator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ogan Topkaya