solidus_core 4.3.2 → 4.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e7208af9a654942a18300e8715c423f9db815aff705b89eb0417da2c0bd6631
4
- data.tar.gz: 024e53ee6af50168922601bb6f55be13e2601ad5bfa93a20d039aa64d44139b2
3
+ metadata.gz: ea120769fbc14df12db50f04ac8d60a7c6bc3de7980da4311b3a67e2483a5033
4
+ data.tar.gz: 2f5e3466c7e09fde1e015400c044e785bb9dd177a6a2b69fd67ae0d32cd561a4
5
5
  SHA512:
6
- metadata.gz: 1737b8f1da9c82d7d36cc2335c88312a54b4d0b2d9f854b4e6e47c59b9977086473ee5c4366760342c59792d45351ef1cdd6837de1f83dfe75b29a5ddb3bb7e8
7
- data.tar.gz: dfbed219adaf6a29a7bf5a811f1e4685cd4c2b136ac9897a72c7754b9abe69f87f2a86559f6d70d0e0fc4a4b725f55960157e773e53be6fa918917869152cf65
6
+ metadata.gz: 304df05695271fc1d8011e563688fb1078f9dc5e81f136576f84c1fbd2291f7514cfbff613df8d45520ed24a9ee82283635d2dd13c2cfb68adee3caa4367e817
7
+ data.tar.gz: 2a9a5f58a7de0bbac0d4ecc2691898ad0a826137d7d25396479cec9880b449afa822509d79146bc88f4dc9e901d762e2d195e53e8b65c9e8c9f1f1945d1771a2
@@ -5,6 +5,6 @@ class AddPromotionOrderPromotionForeignKey < ActiveRecord::Migration[7.0]
5
5
  end
6
6
 
7
7
  def down
8
- remove_foreign_key :spree_orders_promotions, :spree_orders
8
+ remove_foreign_key :spree_orders_promotions, :spree_promotions
9
9
  end
10
10
  end
@@ -35,6 +35,7 @@ module Solidus
35
35
  class_option :sample, type: :boolean, default: true, banner: 'Load sample data (migrations and seeds must be run)'
36
36
  class_option :active_storage, type: :boolean, default: true, banner: 'Install ActiveStorage as image attachments handler for products and taxons'
37
37
  class_option :admin_preview, type: :boolean, default: true, desc: 'Install the admin preview'
38
+ class_option :build_admin_tailwind, type: :boolean, default: true, desc: 'Build and install Solidus Admin Tailwind CSS file and rake tasks'
38
39
  class_option :auto_accept, type: :boolean
39
40
  class_option :user_class, type: :string
40
41
  class_option :admin_email, type: :string
@@ -175,20 +176,22 @@ module Solidus
175
176
  end
176
177
  end
177
178
 
178
- def install_solidus_admin
179
- return unless options[:admin_preview]
180
-
181
- say_status :installing, "SolidusAdmin", :blue
182
- bundle_command 'add solidus_admin -v ">= 0.2"'
183
- generate 'solidus_admin:install'
184
- end
185
-
186
179
  def install_subcomponents
187
180
  apply_template_for :authentication, @selected_authentication
188
181
  apply_template_for :frontend, @selected_frontend
189
182
  apply_template_for :payment_method, @selected_payment_method
190
183
  end
191
184
 
185
+ def install_solidus_admin
186
+ return unless options[:admin_preview]
187
+
188
+ say_status :installing, "SolidusAdmin", :blue
189
+ unless File.read(app_path.join('Gemfile')).include?('solidus_admin')
190
+ bundle_command 'add solidus_admin -v ">= 0.2"'
191
+ end
192
+ generate "solidus_admin:install #{'--tailwind' if options[:build_admin_tailwind]}"
193
+ end
194
+
192
195
  def populate_seed_data
193
196
  if @load_seed_data
194
197
  say_status :loading, "seed data"
@@ -22,6 +22,8 @@ require "spree/core/search/variant"
22
22
  require 'spree/preferences/configuration'
23
23
  require 'spree/core/environment'
24
24
 
25
+ require 'uri'
26
+
25
27
  module Spree
26
28
  class AppConfiguration < Preferences::Configuration
27
29
  # Preferences (alphabetized to more easily lookup particular preferences)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spree
4
- VERSION = "4.3.2"
4
+ VERSION = "4.3.4"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-22 00:00:00.000000000 Z
11
+ date: 2024-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -1052,7 +1052,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1052
1052
  - !ruby/object:Gem::Version
1053
1053
  version: 1.8.23
1054
1054
  requirements: []
1055
- rubygems_version: 3.2.33
1055
+ rubygems_version: 3.4.19
1056
1056
  signing_key:
1057
1057
  specification_version: 4
1058
1058
  summary: Essential models, mailers, and classes for the Solidus e-commerce project.