spree_cli 5.0.5 → 5.0.6

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: 7b0fd922b4fd79fb2c838eed70e54157cd58e979892c2c8fd5a36402ca265f3b
4
- data.tar.gz: 2dd95521eaa210420e46704416c5a1cbadb153a3cef813836177a956770e5136
3
+ metadata.gz: 3ae0e3e57958265021ea74dc011ff79f9605335cbb1fa736f71b02f66110c980
4
+ data.tar.gz: 232e200dbdc473f853fca8137fc61abf0b86d659111f5fd6035a1d9dd58c138c
5
5
  SHA512:
6
- metadata.gz: 703260e5c4ff40b81b3d29aa9809fdf8dd485a14031d401b8d76332ce82b8ec062a0c2481d4c3ff2fa846bdade6ffddb0b17431f2c550df512606f1d0b40481c
7
- data.tar.gz: 7533d4210d8c2f1d4fb3514ac7da1f6669734900a4e3e6314a44be397fd3ad6be1194dddb58f8544ad1c049a32ef160891b098e86924373048e5c6509c4f92ab
6
+ metadata.gz: 6e39ead57da006dddd1ab509d6c6a38a2ad0891a46a410e7782aee619370a645c885472813498db80a225135d1f635500344140a5b60d54ba990fd43c53ec33e
7
+ data.tar.gz: 14b96bfcc365c2a419547cad446b81d2a17ff1c5872fa9f0bdfe337b523fa0211c147dcfc8fd3a768e9441b09a8cb2f2373d336b002bb80a01950df7974025ee
@@ -28,8 +28,10 @@ module SpreeCli
28
28
  empty_directory "#{file_name}/app/serializers/spree/v2/storefront"
29
29
  empty_directory "#{file_name}/app/serializers/spree/api/v2/platform"
30
30
  empty_directory "#{file_name}/vendor/javascript"
31
+ empty_directory "#{file_name}/vendor/stylesheets"
31
32
 
32
33
  chmod "#{file_name}/bin/rails", 0o755
34
+ chmod "#{file_name}/bin/importmap", 0o755
33
35
 
34
36
  template 'extension.gemspec', "#{file_name}/#{file_name}.gemspec"
35
37
  template 'Gemfile', "#{file_name}/Gemfile"
@@ -18,7 +18,6 @@ run_tests: &run_tests
18
18
  - restore_cache:
19
19
  keys:
20
20
  - spree-bundle-{{ .Branch }}
21
- - spree-bundle
22
21
  - run:
23
22
  name: Add keyserver
24
23
  command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
@@ -57,7 +56,6 @@ jobs:
57
56
  - restore_cache:
58
57
  keys:
59
58
  - spree-bundle-{{ .Branch }}
60
- - spree-bundle
61
59
  - run:
62
60
  name: Add keyserver
63
61
  command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
@@ -74,7 +72,7 @@ jobs:
74
72
  - save_cache:
75
73
  paths:
76
74
  - vendor/bundle
77
- key: spree-bundle-{{ checksum "Gemfile.lock" }}
75
+ key: spree-bundle-{{ .Branch }}
78
76
 
79
77
  tests_postgres: &tests_postgres
80
78
  <<: *run_tests
@@ -109,7 +107,6 @@ jobs:
109
107
  - restore_cache:
110
108
  keys:
111
109
  - spree-bundle-{{ .Branch }}
112
- - spree-bundle
113
110
  - run:
114
111
  name: Add keyserver
115
112
  command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
@@ -1,12 +1,14 @@
1
+ # LICENSE
2
+
1
3
  Copyright (c) <%= Time.now.year %> [name of plugin creator]
2
4
  All rights reserved.
3
5
 
4
6
  This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
5
7
 
6
- This program is distributed in the hope that it will be useful,
7
- but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- GNU Affero General Public License for more details.
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU Affero General Public License for more details.
10
12
 
11
- You should have received a copy of the GNU Affero General Public License
12
- along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).
13
+ You should have received a copy of the GNU Affero General Public License
14
+ along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).
@@ -57,5 +57,3 @@ For more options please see [gem-release README](https://github.com/svenfuchs/ge
57
57
  If you'd like to contribute, please take a look at the
58
58
  [instructions](CONTRIBUTING.md) for installing dependencies and crafting a good
59
59
  pull request.
60
-
61
- Copyright (c) <%= Time.now.year %> [name of extension creator], released under the New BSD License
@@ -2,3 +2,4 @@
2
2
  //= link <%= file_name %>/application.js
3
3
  //= link_tree ../../javascript/<%= file_name %>/controllers .js
4
4
  //= link_tree ../../../vendor/javascript .js
5
+ //= link_tree ../../../vendor/stylesheets .css
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+
6
+ require 'rails'
7
+
8
+ require 'importmap-rails'
9
+ require 'importmap/commands'
@@ -16,6 +16,7 @@ module <%= class_name %>
16
16
  initializer '<%= file_name %>.assets' do |app|
17
17
  app.config.assets.paths << root.join('app/javascript')
18
18
  app.config.assets.paths << root.join('vendor/javascript')
19
+ app.config.assets.paths << root.join('vendor/stylesheets')
19
20
  app.config.assets.precompile += %w[<%= file_name %>_manifest]
20
21
  end
21
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.5
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Mar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2025-06-30 00:00:00.000000000 Z
13
+ date: 2025-08-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor
@@ -58,6 +58,7 @@ files:
58
58
  - lib/spree_cli/templates/extension/app/javascript/%file_name%/controllers/%file_name%_controller.js.tt
59
59
  - lib/spree_cli/templates/extension/app/jobs/%file_name%/base_job.rb.tt
60
60
  - lib/spree_cli/templates/extension/app/views/%file_name%/_head.html.erb.tt
61
+ - lib/spree_cli/templates/extension/bin/importmap
61
62
  - lib/spree_cli/templates/extension/bin/rails.tt
62
63
  - lib/spree_cli/templates/extension/config/i18n-tasks.yml
63
64
  - lib/spree_cli/templates/extension/config/importmap.rb.tt
@@ -84,9 +85,9 @@ licenses:
84
85
  - BSD-3-Clause
85
86
  metadata:
86
87
  bug_tracker_uri: https://github.com/spree/spree/issues
87
- changelog_uri: https://github.com/spree/spree/releases/tag/v5.0.5
88
+ changelog_uri: https://github.com/spree/spree/releases/tag/v5.0.6
88
89
  documentation_uri: https://docs.spreecommerce.org/
89
- source_code_uri: https://github.com/spree/spree/tree/v5.0.5
90
+ source_code_uri: https://github.com/spree/spree/tree/v5.0.6
90
91
  post_install_message:
91
92
  rdoc_options: []
92
93
  require_paths: