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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab547813104650f7633262abab97b99b0cf400a0e0aa9dbea962f3fa08792050
4
- data.tar.gz: 1efacab905252e72ed483d589cdd0b480f03273f4be6dafd66367db023537c35
3
+ metadata.gz: 91cf7206a752ce3896a561e6d7b9b7a63706132444f61a49fa62437fef269e23
4
+ data.tar.gz: 65b5a8b48a1575a7f284d5ba9afa1586aa457ac37684b9815e7711542de3cc89
5
5
  SHA512:
6
- metadata.gz: 85f821c90e06e88ae5730092543e9c86c834a1ad7f4cc28eb64a65e1077247fbdde4f8a964495f8cb571b843baf74b265fc12e1b186f588d8aa8456954d37f93
7
- data.tar.gz: e36f1dc009f7ecb61ff0a3f1c0c16a628947dc13465d27402e7192377f9587d98ae6fde9fdcaba3d2f05bf63f633d1d48a8621b8bac87bfe5fe7036c7cc10530
6
+ metadata.gz: 51d2f4940472d64fd2b83470bf8afa8303fb8e95992e610d853cdfb2ba340df3f80a27197ddf95f8b0297bf36270827f40c904a0e6036abfcde535873e29440c
7
+ data.tar.gz: 354001943298c8f2ed28a59dbddb11b0f76673199a511393060a2b3f2d1280743487448e3658bea9566f4fa1903f5bc66a25163a1d3c5724e9876d6da7e62333
@@ -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 with a gemspec dependency on Spree #{spree_version}.
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: 'master'
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://guides.spreecommerce.org/developer/core/preferences.html
5
+ # https://dev-docs.spreecommerce.org/internals/preferences
6
6
 
7
- # preference :visible, :boolean
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
@@ -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 = '<%= class_name %>.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', '>= <%= Spree.version %>'
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'
@@ -19,5 +19,5 @@ spec/dummy
19
19
  public/spree
20
20
  .ruby-version
21
21
  .ruby-gemset
22
- gemfiles/*.gemfile.lock
23
22
  *.gem
23
+ */*.gem
@@ -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 14
33
+ - nvm install 16
42
34
 
43
35
  script:
44
36
  - bundle exec rake test_app
45
- - bundle exec rake spec
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 = ['chris@spreecommerce.com']
10
- s.summary = 'Spree Commerce command line utility'
11
- s.description = 'tools to create new Spree stores and extensions'
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://guides.spreecommerce.org/",
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.rc1
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-11 00:00:00.000000000 Z
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: tools to create new Spree stores and extensions
28
+ description: Spree Commerce command line interface
28
29
  email:
29
- - chris@spreecommerce.com
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.rc1
79
- documentation_uri: https://guides.spreecommerce.org/
80
- source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc1
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 command line utility
97
+ summary: Spree Commerce CLI
100
98
  test_files: []
@@ -1,9 +0,0 @@
1
- appraise 'spree-4' do
2
- gem 'spree', '~> 4.2'
3
- gem 'rails-controller-testing'
4
- end
5
-
6
- appraise 'spree-master' do
7
- gem 'spree', github: 'spree/spree', branch: 'master'
8
- gem 'rails-controller-testing'
9
- end
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails-controller-testing"
6
- gem "spree", "~> 4.3"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails-controller-testing"
6
- gem "spree", github: "spree/spree", branch: "master"
7
-
8
- gemspec path: "../"