six-updater-web 0.14.1 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.14.1'
10
+ s.version = '0.14.2'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -19,7 +19,7 @@ case RUBY_VERSION
19
19
  end
20
20
 
21
21
  module SixUpdaterWeb
22
- VERSION = "0.14.1"
22
+ VERSION = "0.14.2"
23
23
  COMPONENT = "six-updater-web"
24
24
 
25
25
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -7,14 +7,16 @@ module SixUpdaterWeb
7
7
 
8
8
  OPEN_BROWSER = true
9
9
 
10
- SIX_HOST = if ARGV.to_s[/--bindi?n?g?=([0-9\.]*)/]
10
+ argvs = ARGV.to_s
11
+
12
+ SIX_HOST = if argvs[/--bindi?n?g?=([0-9\.]*)/] || argvs[/-b ?([0-9\.]*)/]
11
13
  $1
12
14
  else
13
15
  ARGV << "--binding=#{DEFAULT_IP}"
14
16
  DEFAULT_IP
15
17
  end
16
18
 
17
- SIX_PORT = if ARGV.to_s[/--port=([0-9]*)/]
19
+ SIX_PORT = if argvs[/--port=([0-9]*)/] || argvs[/-p ?([0-9]*)/]
18
20
  $1
19
21
  else
20
22
  ARGV << "--port=#{DEFAULT_PORT}"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 14
8
- - 1
9
- version: 0.14.1
8
+ - 2
9
+ version: 0.14.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy