spree_cmd 4.2.5 → 4.3.0

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: bcdeda6857fbefa282324a624abf5432d08705af4561e95b7501d810d0335a84
4
- data.tar.gz: a8e21ad63563d011d44be026c149e83497183d87b2b86dc37629ab37568d1e37
3
+ metadata.gz: 3066d4489b49d32b0c8478de9b76ad865438f03602e025d318ec57eca468c52b
4
+ data.tar.gz: ed70e1f7ab75404cb7745e605babf575e788e54db80f9c4a781bc5a5af3dd1a1
5
5
  SHA512:
6
- metadata.gz: 1722db31b52c15d6c86ffd3c3e14b120813bcb3fc598d7dd8f77cd769a2936c328536cce13e7b7c82a187ab8b5b0ab0ff6bc9075c868da8bdf4ec90707f4945a
7
- data.tar.gz: b10a8852ef6cd8d96b7ed4d92da39b28e25c6ef398969918e2fa5d0b2eae6a466bf112efea6d0004a4e0d138a28467473ef8095735c2fb53f1d86345e10d4e4a
6
+ metadata.gz: efa5631b47ac9c701a5ef1feadddfb3f461e28b9b441d99512ce3455a7ec1a4ac292c00d158c57bd1205471fdc3a9af1a98d1673133c88222164c160d5691542
7
+ data.tar.gz: effc6377bbfdce529883ab4091e4740568082114e4f65314b13ad41f6ecbee4819e92657953d074f4ccb005f29e38fe4d079f2e8e2124034084f62e33ab7bb9c
@@ -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
@@ -2,7 +2,7 @@
2
2
  lib = File.expand_path('../lib/', __FILE__)
3
3
  $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
4
4
 
5
- require '<%=file_name%>/version'
5
+ require '<%= file_name %>/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
@@ -21,10 +21,8 @@ Gem::Specification.new do |s|
21
21
  s.require_path = 'lib'
22
22
  s.requirements << 'none'
23
23
 
24
- spree_version = '>= 4.2.0', '< 6.0'
25
- s.add_dependency 'spree_core', spree_version
26
- s.add_dependency 'spree_api', spree_version
27
- s.add_dependency 'spree_backend', spree_version
24
+ s.add_dependency 'spree', '>= <%= Gem.loaded_specs['spree_cmd'].version %>'
25
+ # s.add_dependency 'spree_backend' # uncomment to include Admin Panel changes
28
26
  s.add_dependency 'spree_extension'
29
27
 
30
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_2.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.2.5
4
+ version: 4.3.0
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-05-31 00:00:00.000000000 Z
12
+ date: 2021-09-14 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_2.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.2.5
79
- documentation_uri: https://guides.spreecommerce.org/
80
- source_code_uri: https://github.com/spree/spree/tree/v4.2.5
76
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0
77
+ documentation_uri: https://dev-docs.spreecommerce.org/
78
+ source_code_uri: https://github.com/spree/spree/tree/v4.3.0
81
79
  post_install_message:
82
80
  rdoc_options: []
83
81
  require_paths:
@@ -93,8 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
91
  - !ruby/object:Gem::Version
94
92
  version: '0'
95
93
  requirements: []
96
- rubygems_version: 3.2.3
94
+ rubygems_version: 3.1.4
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-2' do
2
- gem 'spree', '~> 4.2.0'
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.2.0"
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: "../"