@vercel/ruby 2.4.0 → 2.5.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vercel/ruby",
3
3
  "author": "Nathan Cahill <nathan@nathancahill.com>",
4
- "version": "2.4.0",
4
+ "version": "2.5.1",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index",
7
7
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
@@ -25,7 +25,7 @@
25
25
  "semver": "6.3.1",
26
26
  "vitest": "2.0.3",
27
27
  "which": "3.0.0",
28
- "@vercel/build-utils": "13.26.2"
28
+ "@vercel/build-utils": "13.31.1"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "node ../../utils/build-builder.mjs",
package/vc_init_dev.rb CHANGED
@@ -73,11 +73,16 @@ def static_then_app(user_app)
73
73
  end
74
74
 
75
75
  host = '127.0.0.1'
76
- begin
77
- sock = TCPServer.new(host, 0)
78
- port = sock.addr[1]
79
- ensure
80
- sock&.close
76
+ requested_port = ENV['VERCEL_DEV_PORT']
77
+ if requested_port && !requested_port.empty?
78
+ port = requested_port.to_i
79
+ else
80
+ begin
81
+ sock = TCPServer.new(host, 0)
82
+ port = sock.addr[1]
83
+ ensure
84
+ sock&.close
85
+ end
81
86
  end
82
87
 
83
88
  app = static_then_app(build_user_app)