spree_cmd 4.3.0.rc1 → 4.3.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spree_cmd/extension.rb +5 -7
- data/lib/spree_cmd/templates/extension/Gemfile +2 -1
- data/lib/spree_cmd/templates/extension/README.md +1 -1
- data/lib/spree_cmd/templates/extension/app/models/%file_name%/configuration.rb.tt +2 -2
- data/lib/spree_cmd/templates/extension/app/{views → serializers}/.gitkeep +0 -0
- data/lib/spree_cmd/templates/extension/extension.gemspec +3 -4
- data/lib/spree_cmd/templates/extension/gitignore +1 -1
- data/lib/spree_cmd/templates/extension/travis.yml +2 -10
- data/spree_cmd.gemspec +5 -5
- metadata +10 -12
- data/lib/spree_cmd/templates/extension/Appraisals +0 -9
- data/lib/spree_cmd/templates/extension/gemfiles/spree_4.gemfile +0 -8
- data/lib/spree_cmd/templates/extension/gemfiles/spree_master.gemfile +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91cf7206a752ce3896a561e6d7b9b7a63706132444f61a49fa62437fef269e23
|
4
|
+
data.tar.gz: 65b5a8b48a1575a7f284d5ba9afa1586aa457ac37684b9815e7711542de3cc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51d2f4940472d64fd2b83470bf8afa8303fb8e95992e610d853cdfb2ba340df3f80a27197ddf95f8b0297bf36270827f40c904a0e6036abfcde535873e29440c
|
7
|
+
data.tar.gz: 354001943298c8f2ed28a59dbddb11b0f76673199a511393060a2b3f2d1280743487448e3658bea9566f4fa1903f5bc66a25163a1d3c5724e9876d6da7e62333
|
data/lib/spree_cmd/extension.rb
CHANGED
@@ -16,7 +16,6 @@ module SpreeCmd
|
|
16
16
|
directory 'lib', "#{file_name}/lib"
|
17
17
|
directory 'bin', "#{file_name}/bin"
|
18
18
|
directory 'spec', "#{file_name}/spec"
|
19
|
-
directory 'gemfiles', "#{file_name}/gemfiles"
|
20
19
|
|
21
20
|
chmod "#{file_name}/bin/rails", 0o755
|
22
21
|
|
@@ -30,7 +29,6 @@ module SpreeCmd
|
|
30
29
|
template 'config/locales/en.yml', "#{file_name}/config/locales/en.yml"
|
31
30
|
template 'rspec', "#{file_name}/.rspec"
|
32
31
|
template 'travis.yml', "#{file_name}/.travis.yml"
|
33
|
-
template 'Appraisals', "#{file_name}/Appraisals"
|
34
32
|
template '.rubocop.yml', "#{file_name}/.rubocop.yml"
|
35
33
|
end
|
36
34
|
|
@@ -38,7 +36,11 @@ module SpreeCmd
|
|
38
36
|
say %{
|
39
37
|
#{'*' * 80}
|
40
38
|
|
41
|
-
Your extension has been generated
|
39
|
+
Congrats, Your extension has been generated :rocket:
|
40
|
+
|
41
|
+
Next steps:
|
42
|
+
* Read Spree Developer Documentation at: https://dev-docs.spreecommerce.org/customization
|
43
|
+
* Start your extension at: https://dev-docs.spreecommerce.org/extensions/extensions
|
42
44
|
|
43
45
|
#{'*' * 80}
|
44
46
|
}
|
@@ -49,10 +51,6 @@ module SpreeCmd
|
|
49
51
|
Thor::Util.camel_case file_name
|
50
52
|
end
|
51
53
|
|
52
|
-
def spree_version
|
53
|
-
Gem.loaded_specs['spree_cmd'].version.to_s
|
54
|
-
end
|
55
|
-
|
56
54
|
def use_prefix(prefix)
|
57
55
|
@file_name = prefix + Thor::Util.snake_case(file_name) unless file_name =~ /^#{prefix}/
|
58
56
|
end
|
@@ -5,7 +5,8 @@ git_source(:github) do |repo_name|
|
|
5
5
|
"https://github.com/#{repo_name}.git"
|
6
6
|
end
|
7
7
|
|
8
|
-
gem 'spree', github: 'spree/spree', branch: '
|
8
|
+
gem 'spree', github: 'spree/spree', branch: 'main'
|
9
|
+
# gem 'spree_backend', github: 'spree/spree', branch: 'main'
|
9
10
|
gem 'rails-controller-testing'
|
10
11
|
|
11
12
|
gemspec
|
@@ -31,7 +31,7 @@ Introduction goes here.
|
|
31
31
|
First bundle your dependencies, then run `rake`. `rake` will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using `rake test_app`.
|
32
32
|
|
33
33
|
```shell
|
34
|
-
bundle
|
34
|
+
bundle update
|
35
35
|
bundle exec rake
|
36
36
|
```
|
37
37
|
|
@@ -2,9 +2,9 @@ module <%= class_name %>
|
|
2
2
|
class Configuration < Spree::Preferences::Configuration
|
3
3
|
|
4
4
|
# Some example preferences are shown below, for more information visit:
|
5
|
-
# https://
|
5
|
+
# https://dev-docs.spreecommerce.org/internals/preferences
|
6
6
|
|
7
|
-
|
7
|
+
preference :enabled, :boolean, default: true
|
8
8
|
# preference :dark_chocolate, :boolean, default: true
|
9
9
|
# preference :color, :string, default: 'Red'
|
10
10
|
# preference :favorite_number, :integer
|
File without changes
|
@@ -7,7 +7,7 @@ require '<%= file_name %>/version'
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.name = '<%= file_name %>'
|
10
|
-
s.version =
|
10
|
+
s.version = <%= class_name %>.version
|
11
11
|
s.summary = 'Add extension summary here'
|
12
12
|
s.description = 'Add (optional) extension description here'
|
13
13
|
s.required_ruby_version = '>= 2.5'
|
@@ -21,9 +21,8 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.require_path = 'lib'
|
22
22
|
s.requirements << 'none'
|
23
23
|
|
24
|
-
s.add_dependency 'spree', '>= <%=
|
25
|
-
# s.add_dependency 'spree_backend' # uncomment to include Admin Panel changes
|
26
|
-
# s.add_dependency 'spree_frontend' # uncomment to include Storefront changes
|
24
|
+
s.add_dependency 'spree', '>= <%= Gem.loaded_specs['spree_cmd'].version %>'
|
25
|
+
# s.add_dependency 'spree_backend' # uncomment to include Admin Panel changes
|
27
26
|
s.add_dependency 'spree_extension'
|
28
27
|
|
29
28
|
s.add_development_dependency 'spree_dev_tools'
|
@@ -22,14 +22,6 @@ env:
|
|
22
22
|
- DB=mysql
|
23
23
|
- DB=postgres
|
24
24
|
|
25
|
-
gemfile:
|
26
|
-
- gemfiles/spree_4.gemfile
|
27
|
-
- gemfiles/spree_master.gemfile
|
28
|
-
|
29
|
-
jobs:
|
30
|
-
allow_failures:
|
31
|
-
- gemfile: gemfiles/spree_master.gemfile
|
32
|
-
|
33
25
|
before_install:
|
34
26
|
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
|
35
27
|
|
@@ -38,8 +30,8 @@ before_script:
|
|
38
30
|
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"`
|
39
31
|
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O
|
40
32
|
- unzip chromedriver_linux64.zip -d ~/bin
|
41
|
-
- nvm install
|
33
|
+
- nvm install 16
|
42
34
|
|
43
35
|
script:
|
44
36
|
- bundle exec rake test_app
|
45
|
-
- bundle exec
|
37
|
+
- bundle exec rspec
|
data/spree_cmd.gemspec
CHANGED
@@ -5,17 +5,17 @@ require_relative '../core/lib/spree/core/version.rb'
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "spree_cmd"
|
7
7
|
s.version = Spree.version
|
8
|
-
s.authors = ['Chris Mar']
|
9
|
-
s.email = ['
|
10
|
-
s.summary = 'Spree Commerce
|
11
|
-
s.description = '
|
8
|
+
s.authors = ['Chris Mar', 'Spark Solutions']
|
9
|
+
s.email = ['hello@spreecommerce.org']
|
10
|
+
s.summary = 'Spree Commerce CLI'
|
11
|
+
s.description = 'Spree Commerce command line interface'
|
12
12
|
s.homepage = 'https://spreecommerce.org'
|
13
13
|
s.license = 'BSD-3-Clause'
|
14
14
|
|
15
15
|
s.metadata = {
|
16
16
|
"bug_tracker_uri" => "https://github.com/spree/spree/issues",
|
17
17
|
"changelog_uri" => "https://github.com/spree/spree/releases/tag/v#{s.version}",
|
18
|
-
"documentation_uri" => "https://
|
18
|
+
"documentation_uri" => "https://dev-docs.spreecommerce.org/",
|
19
19
|
"source_code_uri" => "https://github.com/spree/spree/tree/v#{s.version}",
|
20
20
|
}
|
21
21
|
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_cmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.0.
|
4
|
+
version: 4.3.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Mar
|
8
|
+
- Spark Solutions
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
12
|
+
date: 2021-08-23 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: thor
|
@@ -24,9 +25,9 @@ dependencies:
|
|
24
25
|
- - "~>"
|
25
26
|
- !ruby/object:Gem::Version
|
26
27
|
version: '1.0'
|
27
|
-
description:
|
28
|
+
description: Spree Commerce command line interface
|
28
29
|
email:
|
29
|
-
-
|
30
|
+
- hello@spreecommerce.org
|
30
31
|
executables:
|
31
32
|
- spree
|
32
33
|
- spree_cmd
|
@@ -41,7 +42,6 @@ files:
|
|
41
42
|
- lib/spree_cmd.rb
|
42
43
|
- lib/spree_cmd/extension.rb
|
43
44
|
- lib/spree_cmd/templates/extension/.rubocop.yml
|
44
|
-
- lib/spree_cmd/templates/extension/Appraisals
|
45
45
|
- lib/spree_cmd/templates/extension/CONTRIBUTING.md
|
46
46
|
- lib/spree_cmd/templates/extension/Gemfile
|
47
47
|
- lib/spree_cmd/templates/extension/LICENSE
|
@@ -51,14 +51,12 @@ files:
|
|
51
51
|
- lib/spree_cmd/templates/extension/app/controllers/.gitkeep
|
52
52
|
- lib/spree_cmd/templates/extension/app/models/%file_name%/configuration.rb.tt
|
53
53
|
- lib/spree_cmd/templates/extension/app/models/.gitkeep
|
54
|
+
- lib/spree_cmd/templates/extension/app/serializers/.gitkeep
|
54
55
|
- lib/spree_cmd/templates/extension/app/services/.gitkeep
|
55
|
-
- lib/spree_cmd/templates/extension/app/views/.gitkeep
|
56
56
|
- lib/spree_cmd/templates/extension/bin/rails.tt
|
57
57
|
- lib/spree_cmd/templates/extension/config/locales/en.yml
|
58
58
|
- lib/spree_cmd/templates/extension/config/routes.rb
|
59
59
|
- lib/spree_cmd/templates/extension/extension.gemspec
|
60
|
-
- lib/spree_cmd/templates/extension/gemfiles/spree_4.gemfile
|
61
|
-
- lib/spree_cmd/templates/extension/gemfiles/spree_master.gemfile
|
62
60
|
- lib/spree_cmd/templates/extension/gitignore
|
63
61
|
- lib/spree_cmd/templates/extension/lib/%file_name%.rb.tt
|
64
62
|
- lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
|
@@ -75,9 +73,9 @@ licenses:
|
|
75
73
|
- BSD-3-Clause
|
76
74
|
metadata:
|
77
75
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
78
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.
|
79
|
-
documentation_uri: https://
|
80
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.
|
76
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0.rc2
|
77
|
+
documentation_uri: https://dev-docs.spreecommerce.org/
|
78
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc2
|
81
79
|
post_install_message:
|
82
80
|
rdoc_options: []
|
83
81
|
require_paths:
|
@@ -96,5 +94,5 @@ requirements: []
|
|
96
94
|
rubygems_version: 3.2.3
|
97
95
|
signing_key:
|
98
96
|
specification_version: 4
|
99
|
-
summary: Spree Commerce
|
97
|
+
summary: Spree Commerce CLI
|
100
98
|
test_files: []
|