Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Use `rails` gem for rails dependencies as we're going to use pretty m… (#12200)

Damian Legawiec3abb6fa551f4
diff --git a/common_spree_dependencies.rb b/common_spree_dependencies.rb
index 648259111f..f575345f5d 100644
--- a/common_spree_dependencies.rb
+++ b/common_spree_dependencies.rb
@@ -4,13 +4,7 @@
source 'https://rubygems.org'
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
-
-%w[
- actionmailer actionpack actionview actiontext activejob activemodel activerecord
- activestorage activesupport railties
-].each do |rails_gem|
- gem rails_gem, ENV.fetch('RAILS_VERSION', '~> 7.2.0'), require: false
-end
+gem 'rails', ENV.fetch('RAILS_VERSION', '~> 7.2.0'), require: false
platforms :jruby do
gem 'jruby-openssl'
diff --git a/core/spree_core.gemspec b/core/spree_core.gemspec
index 8d6910f3b7..b4d7c3fa5a 100644
--- a/core/spree_core.gemspec
+++ b/core/spree_core.gemspec
@@ -26,12 +26,7 @@ Gem::Specification.new do |s|
s.files = `git ls-files`.split("\n").reject { |f| f.match(/^spec/) && !f.match(/^spec\/fixtures/) }
s.require_path = 'lib'
- %w[
- actionpack actionview activejob activemodel activerecord
- activestorage actiontext activesupport railties
- ].each do |rails_gem|
- s.add_dependency rails_gem, '>= 6.1', '< 8.0'
- end
+ s.add_dependency 'rails', '>= 6.1', '< 8.0'
s.add_dependency 'activemerchant', '~> 1.67'
s.add_dependency 'acts_as_list', '>= 0.8'
diff --git a/emails/spree_emails.gemspec b/emails/spree_emails.gemspec
index e67d59240f..d05d8c5a9b 100644
--- a/emails/spree_emails.gemspec
+++ b/emails/spree_emails.gemspec
@@ -27,7 +27,6 @@ Gem::Specification.new do |s|
s.require_path = 'lib'
s.add_dependency 'spree_core', ">= #{s.version}"
- s.add_dependency 'actionmailer'
s.add_dependency 'sprockets', '>= 4.0'
s.add_development_dependency 'email_spec', '~> 2.2'