@vercel/ruby 2.2.3 → 2.2.5

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);
@@ -7518,20 +7518,15 @@ async function bundleInstall(bundlePath, bundleDir, gemfilePath, rubyPath) {
7518
7518
  PATH: `${(0, import_path3.dirname)(rubyPath)}:${(0, import_path3.dirname)(bundlePath)}:${process.env.PATH}`,
7519
7519
  BUNDLE_SILENCE_ROOT_WARNING: "1",
7520
7520
  BUNDLE_APP_CONFIG: bundleAppConfig,
7521
- BUNDLE_JOBS: "4"
7521
+ BUNDLE_JOBS: "4",
7522
+ BUNDLE_DEPLOYMENT: "true",
7523
+ BUNDLE_PATH: bundleDir,
7524
+ BUNDLE_FROZEN: "true"
7522
7525
  });
7523
- (0, import_build_utils3.debug)('running "bundle install --deployment --frozen"');
7526
+ (0, import_build_utils3.debug)('running "bundle install"');
7524
7527
  const installRes = await (0, import_execa2.default)(
7525
7528
  bundlePath,
7526
- [
7527
- "install",
7528
- "--deployment",
7529
- "--frozen",
7530
- "--gemfile",
7531
- gemfilePath,
7532
- "--path",
7533
- bundleDir
7534
- ],
7529
+ ["install", "--gemfile", gemfilePath],
7535
7530
  {
7536
7531
  stdio: "pipe",
7537
7532
  env: bundlerEnv,
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.3",
4
+ "version": "2.2.5",
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.3"
27
+ "@vercel/build-utils": "13.2.16"
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)