serialport-server 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/bin/serialport-server +5 -5
- data/lib/serialport-server.rb +1 -1
- data/sample/websocket/main.js +1 -1
- metadata +4 -4
data/History.txt
CHANGED
data/bin/serialport-server
CHANGED
@@ -14,9 +14,9 @@ parser = ArgsParser.parse ARGV do
|
|
14
14
|
arg :bit, 'bit(7-9)', :default => 8
|
15
15
|
arg :stopbit, 'stopbit', :default => 1
|
16
16
|
arg :parity, 'parity bit', :default => 0
|
17
|
-
arg :http_port, 'HTTP port', :default => 8783
|
18
|
-
arg :websocket_port, 'WebSocket port', :default => 8784
|
19
|
-
arg :socket_port, 'TCP Socket port', :default => 8785
|
17
|
+
arg :http_port, 'HTTP port', :alias => :hp, :default => 8783
|
18
|
+
arg :websocket_port, 'WebSocket port', :alias => :wp, :default => 8784
|
19
|
+
arg :socket_port, 'TCP Socket port', :alias => :sp, :default => 8785
|
20
20
|
end
|
21
21
|
|
22
22
|
if !parser.first or parser.has_option? :help
|
@@ -24,10 +24,10 @@ if !parser.first or parser.has_option? :help
|
|
24
24
|
app_name = $0.split(/\//).last
|
25
25
|
if RUBY_PLATFORM =~ /mswin|mingw|cygwin|bccwin/
|
26
26
|
puts "e.g. #{app_name} COM1"
|
27
|
-
puts " #{app_name} COM1 -
|
27
|
+
puts " #{app_name} COM1 -hp 8783 -wp 8784 -sp 8785"
|
28
28
|
else
|
29
29
|
puts "e.g. #{app_name} /dev/tty.your-device"
|
30
|
-
puts " #{app_name} /dev/tty.your-device -
|
30
|
+
puts " #{app_name} /dev/tty.your-device -hp 8783 -wp 8784 -sp 8785"
|
31
31
|
end
|
32
32
|
exit 1
|
33
33
|
end
|
data/lib/serialport-server.rb
CHANGED
data/sample/websocket/main.js
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialport-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sho Hashimoto
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-23 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: serialport
|