solidus_frontend 3.2.1 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d31ded4680f9be352c64f905c084c853562dd11d2a8ad4c5449d7b61ec54f3ff
4
- data.tar.gz: dc913b08846244772ba6197bbe44ff08862ce593b28a83f702e72e8b7b8baafe
3
+ metadata.gz: eebae1a578ccef13763aae2f880084ea916b8c5c301e75a93e3bb1f0333c0612
4
+ data.tar.gz: 61c312835a7088c48913e89ad241fc82168eb78f6203d57e280a6b0242487f66
5
5
  SHA512:
6
- metadata.gz: 28d6569397981db78529a86d87cfff96f4c95aeb52aa2a250d607b14a07115c37cacf4122d2b7392d7a7475f7c76bc733921396fdb3821a641441112a207f77a
7
- data.tar.gz: 2a490134b956f834047c4ff109cb49b8660f9f703efbdd13a663b6f76ac50a8e7f210ff95cba17fc279ce9f32c11f92df9f5eebb8787f04afa285548311cda41
6
+ metadata.gz: e9301db399d79217b263a48445d7ed4c3e5db1c6898a10db064f8015ee24a1d26f9d69a3768e30157b92f3b36ec9b0b237b135fe5d9aaccb61cdc30bea203f73
7
+ data.tar.gz: aeba402ec31608d809ff379950344d8c594d675c5b38dfe45447804bf03e1443f2528c6be55ad8e6c63100adbff960671ab4872b9b9e09a32d06d0bfe51b089e
data/bin/sandbox CHANGED
@@ -80,7 +80,7 @@ unbundled bundle exec rails generate solidus:install \
80
80
  $@
81
81
 
82
82
  unbundled bundle exec rails generate solidus:auth:install
83
- unbundled bundle exec rails generate ${extension_name}:install
83
+ unbundled bundle exec rails generate ${extension_name}:install --auto-accept
84
84
 
85
85
  echo
86
86
  echo "🚀 Sandbox app successfully created for $extension_name!"
@@ -5,6 +5,10 @@ module SolidusFrontend
5
5
  class InstallGenerator < Rails::Generators::Base
6
6
  source_root File.expand_path('templates', __dir__)
7
7
 
8
+ class_option :auto_accept,
9
+ type: :boolean,
10
+ default: false
11
+
8
12
  def copy_initializer
9
13
  template 'initializer.rb', 'config/initializers/solidus_frontend.rb'
10
14
  end
@@ -19,6 +23,25 @@ module SolidusFrontend
19
23
  template "vendor/assets/javascripts/spree/frontend/all.js"
20
24
  template "vendor/assets/stylesheets/spree/frontend/all.css"
21
25
  end
26
+
27
+ def install_solidus_bolt
28
+ return if ENV['SKIP_SOLIDUS_BOLT'] || !File.exist?('Gemfile') || !(options[:auto_accept] || yes?(<<~MSG))
29
+ Would you like to add bolt (https://www.bolt.com) as a default payment method?
30
+
31
+ If you answer yes, solidus_bolt (https://github.com/solidusio/solidus_bolt)
32
+ will be added to the installation (y/n):
33
+ MSG
34
+
35
+ gem 'solidus_bolt'
36
+ bundle_cleanly { `bundle` }
37
+ generate 'solidus_bolt:install --auto-run-migrations'
38
+ end
39
+
40
+ private
41
+
42
+ def bundle_cleanly(&block)
43
+ Bundler.respond_to?(:with_unbundled_env) ? Bundler.with_unbundled_env(&block) : Bundler.with_clean_env(&block)
44
+ end
22
45
  end
23
46
  end
24
47
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  module Frontend
5
- VERSION = "3.2.1"
5
+ VERSION = "3.2.3"
6
6
 
7
7
  def self.version
8
8
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.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: 2022-09-09 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_api