rails8_spree_sample 5.0.0

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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +111 -0
  3. data/lib/spree.rb +2 -0
  4. data/license.md +58 -0
  5. metadata +79 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: baf642c674174ecfdb8c947dd82215b271b52adb03c269865c624ce65f8146e9
4
+ data.tar.gz: 6b40ca1802a904c01ec62a160d73c2870c618d39edea348f51f306abc91b24e7
5
+ SHA512:
6
+ metadata.gz: 8737345dd19554f7271faca389358c7d6738649087ce449ed3c3adde982160c8adfaa8c0f79650b8c3e9e35f90d3b6616de521cfd852b30a81745c1d1c0c7f22
7
+ data.tar.gz: 1607055560aabc84fc884e58745ad8b43bf29247d654c52e236137fca687ded4fbd6da9df1442e98dfc6c27fbb19cea6077b3c56daeecf7871b4a8daf8164f73
data/Rakefile ADDED
@@ -0,0 +1,111 @@
1
+ require 'rake'
2
+ require 'rubygems/package_task'
3
+ require 'thor/group'
4
+ begin
5
+ require 'spree/testing_support/common_rake'
6
+ rescue LoadError
7
+ raise "Could not find spree/testing_support/common_rake. You need to run this command using Bundler."
8
+ end
9
+
10
+ SPREE_GEMS = %w(core api cli emails sample admin storefront).freeze
11
+
12
+ task default: :test
13
+
14
+ desc "Runs all tests in all Spree engines"
15
+ task test: :test_app do
16
+ SPREE_GEMS.each do |gem_name|
17
+ Dir.chdir("#{File.dirname(__FILE__)}/#{gem_name}") do
18
+ sh 'rspec'
19
+ end
20
+ end
21
+ end
22
+
23
+ desc "Generates a dummy app for testing for every Spree engine"
24
+ task :test_app do
25
+ SPREE_GEMS.each do |gem_name|
26
+ Dir.chdir("#{File.dirname(__FILE__)}/#{gem_name}") do
27
+ sh 'rake test_app'
28
+ end
29
+ end
30
+ end
31
+
32
+ desc "clean the whole repository by removing all the generated files"
33
+ task :clean do
34
+ rm_f "Gemfile.lock"
35
+ rm_rf "sandbox"
36
+ rm_rf "pkg"
37
+
38
+ SPREE_GEMS.each do |gem_name|
39
+ rm_f "#{gem_name}/Gemfile.lock"
40
+ rm_rf "#{gem_name}/pkg"
41
+ rm_rf "#{gem_name}/spec/dummy"
42
+ end
43
+ end
44
+
45
+ namespace :gem do
46
+ def version
47
+ require 'spree/core/version'
48
+ Spree.version
49
+ end
50
+
51
+ def for_each_gem
52
+ SPREE_GEMS.each do |gem_name|
53
+ yield "pkg/spree_#{gem_name}-#{version}.gem"
54
+ end
55
+ yield "pkg/spree-#{version}.gem"
56
+ end
57
+
58
+ desc "Build all spree gems"
59
+ task :build do
60
+ pkgdir = File.expand_path("../pkg", __FILE__)
61
+ FileUtils.mkdir_p pkgdir
62
+
63
+ SPREE_GEMS.each do |gem_name|
64
+ Dir.chdir(gem_name) do
65
+ sh "gem build spree_#{gem_name}.gemspec"
66
+ mv "spree_#{gem_name}-#{version}.gem", pkgdir
67
+ end
68
+ end
69
+
70
+ sh "gem build spree.gemspec"
71
+ mv "spree-#{version}.gem", pkgdir
72
+ end
73
+
74
+ desc "Install all spree gems"
75
+ task install: :build do
76
+ for_each_gem do |gem_path|
77
+ Bundler.with_clean_env do
78
+ sh "gem install #{gem_path}"
79
+ end
80
+ end
81
+ end
82
+
83
+ desc "Release all gems to rubygems"
84
+ task release: :build do
85
+ sh "git tag -a -m \"Version #{version}\" v#{version}"
86
+
87
+ for_each_gem do |gem_path|
88
+ sh "gem push '#{gem_path}'"
89
+ end
90
+ end
91
+ end
92
+
93
+ desc "Creates a sandbox application for simulating the Spree code in a deployed Rails app"
94
+ task :sandbox do
95
+ Bundler.with_unbundled_env do
96
+ exec("bin/sandbox.sh")
97
+ end
98
+ end
99
+
100
+ namespace :coverage do
101
+ task :report do
102
+
103
+ require 'simplecov'
104
+
105
+ %w[emails api core].each { |name|
106
+ SimpleCov.collate Dir["/tmp/workspace/simplecov/#{name}_*/.resultset.json"], 'rails' do
107
+ coverage_dir "#{ENV['COVERAGE_DIR']}/#{name}" if ENV['COVERAGE_DIR']
108
+ end
109
+ }
110
+ end
111
+ end
data/lib/spree.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'spree_core'
2
+ require 'spree_api'
data/license.md ADDED
@@ -0,0 +1,58 @@
1
+ # License
2
+
3
+ Copyright © 2024-present, Vendo Connect Inc.
4
+
5
+ Copyright © 2015-2024, Spark Solutions Sp. z o.o.
6
+
7
+ Copyright © 2007-2015, Spree Commerce Inc.
8
+
9
+ Spree Commerce is a free, open-source eCommerce framework giving you full control and customizability.
10
+
11
+ For **Spree Commerce versions 4.10** and later in the [spree/spree](https://github.com/spree/spree) repository two licenses apply simultaneously and users are required to comply with the terms of these two licenses at the same time:
12
+
13
+ * [AGPL-3.0](https://opensource.org/license/agpl-v3) - for all contributions from version 4.10 onwards
14
+
15
+ * [BSD-3-Clause](https://opensource.org/license/bsd-3-clause) - for all other contributions predating version 4.10
16
+
17
+ Effectively, for versions 4.10 and upwards **AGPL-3.0** license applies.
18
+
19
+ **Spree Commerce versions 4.9** and earlier in the [spree/spree](https://github.com/spree/spree) repository are available under the **BSD-3-Clause** license and users are required to comply with its terms.
20
+
21
+ If you’d like to use Spree Commerce without the AGPL-3.0 restrictions e.g. for a **SaaS** business, please talk to us about obtaining a [Commercial License](#commercial-license).
22
+
23
+ All third party components incorporated into this software are licensed under the original license provided by the owner of the applicable component.
24
+
25
+ Please refer to our [Licensing FAQ](https://spreecommerce.org/why-spree-is-changing-its-open-source-license-to-agpl-3-0-and-introducing-a-commercial-license/) in case of questions.
26
+
27
+ ## AGPL-3.0 License - Spree 4.10 upwards
28
+
29
+ If you decide to accept the AGPL-3.0 license by using Spree Commerce version 4.10 or later, you must comply with the following terms:
30
+
31
+ 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.
32
+
33
+ This program is distributed in the hope that it will be useful,
34
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
35
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36
+ GNU Affero General Public License for more details.
37
+
38
+ You should have received a copy of the GNU Affero General Public License
39
+ along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).
40
+
41
+ ## BSD 3-Clause License
42
+
43
+ If you decide to accept the BSD-3-Clause license by using Spree Commerce, you must comply with the following terms:
44
+
45
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
46
+ Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
47
+ Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
48
+ Neither the name of Spree Commerce Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
49
+
50
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51
+
52
+ ## Commercial License
53
+
54
+ Should you decide to use Spree Commerce version 4.10 or later for commercial redistribution (eg. SaaS) - also known as Commercial Distribution - you must do so in accordance with the terms and conditions contained in a separate written agreement between you and [Vendo Connect Inc.](https://www.getvendo.com/).
55
+
56
+ For more information about the Commercial License (CL) please contact [sales@getvendo.com](mailto:sales@getvendo.com).
57
+
58
+ Please refer to our [Licensing FAQ](https://spreecommerce.org/why-spree-is-changing-its-open-source-license-to-agpl-3-0-and-introducing-a-commercial-license/) in case of questions.
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rails8_spree_sample
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Sean Schofield
8
+ - Spark Solutions Sp. z o.o.
9
+ - Vendo Connect Inc.
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2025-04-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails8_spree_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 5.0.0
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: 5.0.0
28
+ - !ruby/object:Gem::Dependency
29
+ name: ffaker
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '2.9'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '2.9'
42
+ description: Optional package containing example data of products, stores, shipping
43
+ methods, categories and others to quickly setup a demo Spree store
44
+ email: hello@spreecommerce.org
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - Rakefile
50
+ - lib/spree.rb
51
+ - license.md
52
+ homepage: https://spreecommerce.org
53
+ licenses:
54
+ - AGPL-3.0-or-later
55
+ - BSD-3-Clause
56
+ metadata:
57
+ bug_tracker_uri: https://github.com/spree/spree/issues
58
+ changelog_uri: https://github.com/spree/spree/releases/tag/v5.0.0
59
+ documentation_uri: https://docs.spreecommerce.org/
60
+ source_code_uri: https://github.com/spree/spree/tree/v5.0.0
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements:
75
+ - none
76
+ rubygems_version: 3.6.6
77
+ specification_version: 4
78
+ summary: Sample data for Spree Commerce
79
+ test_files: []