Skip to content

Commit

Permalink
Merge pull request #170 from SuperGoodSoft/alistair/solidus-4
Browse files Browse the repository at this point in the history
Allow Solidus 4
  • Loading branch information
kennyadsl authored Jun 27, 2023
2 parents d282749 + 9b88e43 commit e7a8ff5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
8 changes: 6 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ orbs:

jobs:
run-specs-with-postgres:
executor: solidusio_extensions/postgres
executor:
name: solidusio_extensions/postgres
ruby_version: "3.0"
steps:
- solidusio_extensions/run-tests
run-specs-with-mysql:
executor: solidusio_extensions/mysql
executor:
name: solidusio_extensions/mysql
ruby_version: "3.0"
steps:
- solidusio_extensions/run-tests

Expand Down
19 changes: 11 additions & 8 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
%w[solidusio/solidus solidusio/solidus_frontend]
else
%w[solidusio/solidus] * 2
end
gem 'solidus', github: solidus_git, branch: branch
gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
branch = ENV.fetch('SOLIDUS_BRANCH', 'main')
gem 'solidus', github: 'solidusio/solidus', branch: branch

# The solidus_frontend gem has been pulled out since v3.2
if branch >= 'v3.2'
gem 'solidus_frontend'
elsif branch == 'main'
gem 'solidus_frontend', github: 'solidusio/solidus_frontend', branch: branch
else
gem 'solidus_frontend', github: 'solidusio/solidus', branch: branch
end

# Needed to help Bundler figure out how to resolve dependencies,
# otherwise it takes forever to resolve them.
Expand Down
2 changes: 1 addition & 1 deletion solidus_multi_domain.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_dependency 'deface', '~> 1.0'
spec.add_dependency 'solidus_core', ['>= 2.6.0', '< 4']
spec.add_dependency 'solidus_core', ['>= 2.6.0', '< 5']
spec.add_dependency 'solidus_support', '~> 0.5'

spec.add_development_dependency 'coffee-rails'
Expand Down

0 comments on commit e7a8ff5

Please sign in to comment.