Skip to content

Commit

Permalink
Merge pull request #131 from buildpacks/bump-ruby-version
Browse files Browse the repository at this point in the history
Bump ruby distribution in sample buildpack
  • Loading branch information
sambhav authored Dec 24, 2022
2 parents 7d33a48 + 1ed7c37 commit 1fe27eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/ruby-bundler/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0
3.1.3
8 changes: 2 additions & 6 deletions buildpacks/ruby-bundler/bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ EOL
export PATH="${ruby_layer_dir}/bin:${PATH}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ruby_layer_dir}/lib"

# 5. INSTALL BUNDLER
echo "---> Installing bundler"
gem install bundler --no-ri --no-rdoc

# 6. INSTALL GEMS
# 5. INSTALL GEMS

# Compares previous Gemfile.lock checksum to the current Gemfile.lock
bundler_layer_dir="${layers_dir}/bundler"
Expand All @@ -56,7 +52,7 @@ EOL
bundle install --path "${bundler_layer_dir}" --binstubs "${bundler_layer_dir}/bin"
fi

# 7. SET DEFAULT START COMMAND
# 6. SET DEFAULT START COMMAND
cat >> "${layers_dir}/launch.toml" <<EOL
[[processes]]
type = "web"
Expand Down
2 changes: 1 addition & 1 deletion buildpacks/ruby-bundler/bin/detect
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi
plan_path=$2

# 3. GET CONFIGURATION
version=2.5.1
version=3.1.3
if [[ -f .ruby-version ]]; then
version=$(cat .ruby-version | tr -d '[:space:]')
fi
Expand Down

0 comments on commit 1fe27eb

Please sign in to comment.