Sha256: d111ff6705c545742fb2bbadc73a64baaafdb2b98521cfb499d81217c88dcbeb

Contents?: true

Size: 1.05 KB

Versions: 2

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env bash

set -e

extension_name="solidus_stripe"
app_name="dummy-app"

bin/rails-new "$app_name"

# Stay away from the bundler env of the containing extension.
function unbundled {
  echo "~~> Running: $@"
  ruby -rbundler -e'Bundler.with_unbundled_env {system *ARGV}' -- env BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES=true "$@"
}

cd ./dummy-app

# Coverage
echo "require_relative '../../coverage.rb' if ENV['COVERAGE']" >> config/boot.rb
echo "gem 'rspec_junit_formatter', require: false" >> Gemfile
echo "gem 'simplecov', '~> 0.22', require: false" >> Gemfile
echo "gem 'simplecov-cobertura', require: false" >> Gemfile
unbundled bundle install

unbundled bundle add solidus --github solidusio/solidus --branch "${SOLIDUS_BRANCH:-main}" --version '> 0.a'
unbundled bundle exec rake db:drop db:create
unbundled bundle exec rails generate solidus:install --auto-accept --payment-method=none --no-seed --no-sample "$@"
unbundled bundle add $extension_name --path ..
unbundled bundle exec rails generate $extension_name:install --migrate --load-seeds=false --specs=all

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_stripe-5.0.0 bin/dummy-app
solidus_stripe-5.0.0.rc.3 bin/dummy-app