magicmonkey 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magicmonkey/magicmonkey.rb +2 -2
- data/lib/magicmonkey/version.rb +1 -1
- metadata +1 -1
@@ -261,11 +261,11 @@ module MagicMonkey
|
|
261
261
|
|
262
262
|
private
|
263
263
|
|
264
|
-
def self.get_port(port)
|
264
|
+
def self.get_port(port = nil)
|
265
265
|
ports = Conf.ports
|
266
266
|
return 3000 if ports.nil? || ports.empty?
|
267
267
|
return false if ports.include?(port)
|
268
|
-
return
|
268
|
+
return ((3000..5000).to_a - ports).first if port.nil?
|
269
269
|
return port
|
270
270
|
end
|
271
271
|
|
data/lib/magicmonkey/version.rb
CHANGED