@vercel/ruby 2.2.4 → 2.3.0

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/dist/index.js CHANGED
@@ -7065,7 +7065,7 @@ function getRubyPath(meta, gemfileContents) {
7065
7065
  } else if (gemfileContents) {
7066
7066
  const line = gemfileContents.split("\n").find((line2) => line2.startsWith("ruby"));
7067
7067
  if (line) {
7068
- const strVersion = line.slice(4).trim().slice(1, -1).replace("~>", "");
7068
+ const strVersion = line.slice(4).trim().slice(1, -1).replace(/~>\s*/, "");
7069
7069
  const found = allOptions.some((o) => {
7070
7070
  selection = o;
7071
7071
  return (0, import_semver.intersects)(o.range, strVersion);
@@ -7219,11 +7219,9 @@ function installGlobalCleanupHandlers() {
7219
7219
  };
7220
7220
  process.on("SIGINT", () => {
7221
7221
  killAll();
7222
- process.exit(130);
7223
7222
  });
7224
7223
  process.on("SIGTERM", () => {
7225
7224
  killAll();
7226
- process.exit(143);
7227
7225
  });
7228
7226
  process.on("exit", () => {
7229
7227
  killAll();
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.2.4",
4
+ "version": "2.3.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index",
7
7
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",
@@ -24,7 +24,7 @@
24
24
  "jest-junit": "16.0.0",
25
25
  "semver": "6.3.1",
26
26
  "which": "3.0.0",
27
- "@vercel/build-utils": "13.2.4"
27
+ "@vercel/build-utils": "13.3.3"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "node ../../utils/build-builder.mjs",
package/vc_init.rb CHANGED
@@ -7,6 +7,7 @@ require 'json'
7
7
  $entrypoint = '__VC_HANDLER_FILENAME'
8
8
 
9
9
  ENV['RAILS_ENV'] ||= 'production'
10
+ ENV['RACK_ENV'] ||= 'production'
10
11
  ENV['RAILS_LOG_TO_STDOUT'] ||= '1'
11
12
 
12
13
  def rack_handler(httpMethod, path, body, headers)