magicmonkey 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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