spree_sample 4.7.3 → 4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/samples/stores.rb +3 -3
- data/lib/spree_sample.rb +31 -29
- data/spree_sample.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 635dd6dd28f74b18d53fe023bdb61a9db292adc82cd1e317045a9e4120e09578
|
4
|
+
data.tar.gz: 6c06baf55e6390fd0d3fe2a0d49c0fabb410af01f5ec86e17348dd833cb60d21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23a07cfd80450593553bf310a177fcbc5af06e566adaf020c775b386cbdb989b768d33622799d0e1b0fd6c431927148ba58cbed13c249225d7a42e0222db5031
|
7
|
+
data.tar.gz: 4f29f948435ba0d56754feab6b4656f9bbd3d49fe0223ad210717178f91bd5522e65dcd21c86ab142f70bb2633695eb921a83fe1e233aa46461dcfc6f40e00b5
|
data/db/samples/stores.rb
CHANGED
@@ -3,12 +3,12 @@ default_store.checkout_zone = Spree::Zone.find_by(name: 'North America')
|
|
3
3
|
default_store.default_country = Spree::Country.find_by(iso: 'US')
|
4
4
|
default_store.supported_currencies = 'CAD,USD'
|
5
5
|
default_store.supported_locales = 'en,fr'
|
6
|
-
default_store.url = Rails.env.development? ? 'localhost:
|
6
|
+
default_store.url = Rails.env.development? ? 'localhost:3000' : 'demo.spreecommerce.org'
|
7
7
|
default_store.save!
|
8
8
|
|
9
9
|
eu_store = Spree::Store.find_or_initialize_by(code: 'eustore')
|
10
10
|
eu_store.name = 'EU Store'
|
11
|
-
eu_store.url = Rails.env.development? ? 'eu.lvh.me:
|
11
|
+
eu_store.url = Rails.env.development? ? 'eu.lvh.me:3000' : 'demo-eu.spreecommerce.org'
|
12
12
|
eu_store.mail_from_address = 'eustore@example.com'
|
13
13
|
eu_store.default_currency = 'EUR'
|
14
14
|
eu_store.default_locale = 'de'
|
@@ -19,7 +19,7 @@ eu_store.save!
|
|
19
19
|
|
20
20
|
uk_store = Spree::Store.find_or_initialize_by(code: 'ukstore')
|
21
21
|
uk_store.name = 'UK Store'
|
22
|
-
uk_store.url = Rails.env.development? ? 'uk.lvh.me:
|
22
|
+
uk_store.url = Rails.env.development? ? 'uk.lvh.me:3000' : 'demo-uk.spreecommerce.org'
|
23
23
|
uk_store.mail_from_address = 'ukstore@example.com'
|
24
24
|
uk_store.default_currency = 'GBP'
|
25
25
|
uk_store.default_locale = 'en'
|
data/lib/spree_sample.rb
CHANGED
@@ -8,38 +8,40 @@ module SpreeSample
|
|
8
8
|
config.active_record.yaml_column_permitted_classes = [Symbol]
|
9
9
|
# Needs to be here so we can access it inside the tests
|
10
10
|
def self.load_samples
|
11
|
-
Spree::
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
Spree::Webhooks.disable_webhooks do
|
12
|
+
Spree::Sample.load_sample('addresses')
|
13
|
+
Spree::Sample.load_sample('zones')
|
14
|
+
Spree::Sample.load_sample('payment_methods')
|
15
|
+
Spree::Sample.load_sample('shipping_methods')
|
16
|
+
Spree::Sample.load_sample('tax_categories')
|
17
|
+
Spree::Sample.load_sample('tax_rates')
|
18
|
+
Spree::Sample.load_sample('taxonomies')
|
19
|
+
Spree::Sample.load_sample('promotions')
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
21
|
+
Spree::Sample.load_sample('products')
|
22
|
+
Spree::Sample.load_sample('taxons')
|
23
|
+
Spree::Sample.load_sample('option_types')
|
24
|
+
Spree::Sample.load_sample('option_values')
|
25
|
+
Spree::Sample.load_sample('product_properties')
|
26
|
+
Spree::Sample.load_sample('prototypes')
|
27
|
+
Spree::Sample.load_sample('variants')
|
28
|
+
Spree::Sample.load_sample('stock')
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
Spree::Sample.load_sample('orders')
|
31
|
+
Spree::Sample.load_sample('adjustments')
|
32
|
+
Spree::Sample.load_sample('payments')
|
33
|
+
Spree::Sample.load_sample('reimbursements')
|
34
|
+
Spree::Sample.load_sample('return_authorization_reasons')
|
35
|
+
Spree::Sample.load_sample('stores')
|
36
|
+
Spree::Sample.load_sample('data_feeds')
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
Spree::Sample.load_sample('cms_standard_pages')
|
39
|
+
Spree::Sample.load_sample('cms_feature_pages')
|
40
|
+
Spree::Sample.load_sample('cms_homepages')
|
41
|
+
Spree::Sample.load_sample('cms_sections')
|
42
|
+
Spree::Sample.load_sample('menus')
|
43
|
+
Spree::Sample.load_sample('menu_items')
|
44
|
+
end
|
43
45
|
end
|
44
46
|
end
|
45
47
|
end
|
data/spree_sample.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
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://docs.spreecommerce.org/",
|
19
19
|
"source_code_uri" => "https://github.com/spree/spree/tree/v#{s.version}",
|
20
20
|
}
|
21
21
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.
|
20
|
+
version: 4.8.0
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.
|
27
|
+
version: 4.8.0
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: ffaker
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,9 +122,9 @@ licenses:
|
|
122
122
|
- BSD-3-Clause
|
123
123
|
metadata:
|
124
124
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
125
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
126
|
-
documentation_uri: https://
|
127
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
125
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.8.0
|
126
|
+
documentation_uri: https://docs.spreecommerce.org/
|
127
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.8.0
|
128
128
|
post_install_message:
|
129
129
|
rdoc_options: []
|
130
130
|
require_paths:
|