Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Require Ruby 3.2+ in the installer
Damian Legawiec3d64186e7840
diff --git a/install.sh b/install.shindex c42223cf19..0163047396 100755--- a/install.sh+++ b/install.sh@@ -392,12 +392,13 @@ install_ruby() {CURRENT_RUBY=$(ruby -v | awk '{print $2}' | cut -d'p' -f1)RUBY_MAJOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f1)- if [ "$RUBY_MAJOR" -ge 3 ]; then+ RUBY_MINOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f2)+ if [ "$RUBY_MAJOR" -gt 3 ] || ([ "$RUBY_MAJOR" -eq 3 ] && [ "$RUBY_MINOR" -ge 2 ]); thenprint_success "Ruby $CURRENT_RUBY is already installed at $CURRENT_RUBY_PATH"print_info "Using existing Ruby installation"return 0else- print_warning "Existing Ruby $CURRENT_RUBY at $CURRENT_RUBY_PATH is too old (need >= 3.0)"+ print_warning "Existing Ruby $CURRENT_RUBY at $CURRENT_RUBY_PATH is too old (need >= 3.2)"print_info "Will install Homebrew Ruby"fielse@@ -418,7 +419,8 @@ install_ruby() {CURRENT_RUBY=$("$BREW_PREFIX/opt/ruby/bin/ruby" -v | awk '{print $2}' | cut -d'p' -f1)RUBY_MAJOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f1)- if [ "$RUBY_MAJOR" -ge 3 ]; then+ RUBY_MINOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f2)+ if [ "$RUBY_MAJOR" -gt 3 ] || ([ "$RUBY_MAJOR" -eq 3 ] && [ "$RUBY_MINOR" -ge 2 ]); thenprint_success "Homebrew Ruby $CURRENT_RUBY is already installed"# Still need to setup PATH in shell profiles@@ -543,7 +545,8 @@ install_ruby() {CURRENT_RUBY=$(ruby -v | awk '{print $2}' | cut -d'p' -f1)RUBY_MAJOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f1)- if [ "$RUBY_MAJOR" -ge 3 ]; then+ RUBY_MINOR=$(echo "$CURRENT_RUBY" | cut -d'.' -f2)+ if [ "$RUBY_MAJOR" -gt 3 ] || ([ "$RUBY_MAJOR" -eq 3 ] && [ "$RUBY_MINOR" -ge 2 ]); thenprint_success "Ruby $CURRENT_RUBY is already installed"# Still need to configure user gem installation if using system Ruby@@ -555,7 +558,7 @@ install_ruby() {return 0fielse- print_warning "Current Ruby version $CURRENT_RUBY is too old (need >= 3.0)"+ print_warning "Current Ruby version $CURRENT_RUBY is too old (need >= 3.2)"fifi@@ -568,7 +571,7 @@ install_ruby() {sudo yum install -y ruby ruby-develelseprint_error "Unsupported Linux distribution: $DISTRO"- print_info "Please install Ruby 3.0+ manually from: https://www.ruby-lang.org/en/documentation/installation/"+ print_info "Please install Ruby 3.2+ manually from: https://www.ruby-lang.org/en/documentation/installation/"exit 1fi@@ -631,9 +634,10 @@ export PATH=\"\$HOME/.gem/ruby/$RUBY_VERSION/bin:\$PATH\""INSTALLED_RUBY=$(ruby -v | awk '{print $2}' | cut -d'p' -f1)RUBY_MAJOR=$(echo "$INSTALLED_RUBY" | cut -d'.' -f1)- if [ "$RUBY_MAJOR" -lt 3 ]; then- print_error "Installed Ruby version $INSTALLED_RUBY is too old (need >= 3.0)"- print_info "Please install Ruby 3.0+ manually from: https://www.ruby-lang.org/en/documentation/installation/"+ RUBY_MINOR=$(echo "$INSTALLED_RUBY" | cut -d'.' -f2)+ if [ "$RUBY_MAJOR" -lt 3 ] || ([ "$RUBY_MAJOR" -eq 3 ] && [ "$RUBY_MINOR" -lt 2 ]); then+ print_error "Installed Ruby version $INSTALLED_RUBY is too old (need >= 3.2)"+ print_info "Please install Ruby 3.2+ manually from: https://www.ruby-lang.org/en/documentation/installation/"exit 1fi@@ -892,7 +896,7 @@ main() {echo -e "This installer will set up Spree Commerce on your system."echo -e "It will install the following if needed:"echo -e " • System dependencies (libvips for image processing)"- echo -e " • Ruby 3.0+ (via system package manager)"+ echo -e " • Ruby 3.2+ (via system package manager)"echo -e " • Rails $RAILS_VERSION"echo -e " • Create a new Spree Commerce application"