solidus_core 4.3.1 → 4.3.3

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: 3154fd1401eef3187a12d7942c30e883bcc8e229e289f097c30d8fe50f0bfd04
4
- data.tar.gz: e2ac175d41b1ee220217de2b5ffa3b7a27dfd0931ad0ef362edaa1317b90c922
3
+ metadata.gz: 68e51391276826cbe0b09d52ea9c4952a9f8548b80c166944a88a86de2123c2b
4
+ data.tar.gz: 1204774da0e171b910f618e86aa400d08e2979b5743f28b6b7496776a6dfcf7c
5
5
  SHA512:
6
- metadata.gz: baf556b1e3a617526ff3963637f98fb643f3ccca0d3b1504cc65740b9fb7213a6f26692ad085ecfba9a10d1dcaecd9a8ed3e6946b52b46169f6ce9001d8a793b
7
- data.tar.gz: 1ec1d893433de9e85e181a1c1caa2257310b9bebdaa23c74a0bbb1115f1506745701bd3c31b1cdad433c93cdb2eea20d467d39b5b0d85f1b290703f85d00b475
6
+ metadata.gz: 202576e624d071884b676be8aa6eeb4a2e78e0430d87eecd203ae762e3f77f62de05eb1ce8dbb2462b1158a12ec4c7b044040154f624d0a6da75880517ac9a14
7
+ data.tar.gz: 422aa33081ab9acff0e9d50afa9cf2861467542e7e9ec061613c2be24c34f3481000084ddb2ed41bf667987aaf4c6b1d78ce82a4633a6c4fd878c32e1568d0e7
@@ -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'
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.1"
4
+ VERSION = "4.3.3"
5
5
 
6
6
  def self.solidus_version
7
7
  VERSION
@@ -31,6 +31,7 @@ class CommonRakeTasks
31
31
  'solidus:install',
32
32
  Dir.pwd, # use the current dir as Rails.root
33
33
  "--auto-accept",
34
+ "--admin-preview=#{ENV.fetch('ADMIN_PREVIEW', 'false')}",
34
35
  "--authentication=none",
35
36
  "--payment-method=none",
36
37
  "--migrate=false",
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.1
4
+ version: 4.3.3
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-05 00:00:00.000000000 Z
11
+ date: 2024-03-11 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.5.3
1055
+ rubygems_version: 3.4.10
1056
1056
  signing_key:
1057
1057
  specification_version: 4
1058
1058
  summary: Essential models, mailers, and classes for the Solidus e-commerce project.