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.
@@ -1,3 +1,7 @@
1
+ === 0.0.3 2012-05-23
2
+
3
+ * Args alias. websocket_port => wp, http_port => hp, socket_port => sp
4
+
1
5
  === 0.0.2 2012-05-18
2
6
 
3
7
  * fix README
@@ -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 -bps 9600 -bit 8 -stopbit 1 -parity 0 -http_port 8783 -websocket_port 8784 -socket_port 8785"
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 -http_port 8783 -websocket_port 8784 -socket_port 8785"
30
+ puts " #{app_name} /dev/tty.your-device -hp 8783 -wp 8784 -sp 8785"
31
31
  end
32
32
  exit 1
33
33
  end
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module SerialportServer
5
- VERSION = '0.0.2'
5
+ VERSION = '0.0.3'
6
6
  end
@@ -11,7 +11,7 @@ $(function(){
11
11
  alert('websocket open');
12
12
  };
13
13
  ws.onclose = function(){
14
- alert('websocket closed')
14
+ alert('websocket closed');
15
15
  $('.websocket .btn').val('open');
16
16
  $('#addr').attr('disabled',null);
17
17
  };
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
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 00:00:00 Z
18
+ date: 2012-05-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: serialport