solidus_sample 3.2.6 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spree_sample.rb +12 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70a71a9f7af24c72bae1a9277e7ad1595a47e543d27d9e8f8b9cf7059dd8a325
|
4
|
+
data.tar.gz: 0e69051e0b7312f5dc07b84c035be80ca4a79df73f76255355d446b9c0101151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8187a8d1b629ce488d85e82c6175dc8d3987b47a03edfe80609f07cb1f78905aa9ef9dc7eccdcdf97245f177dee6aa581d576a11afd6e4b91b382c280338048c
|
7
|
+
data.tar.gz: 83100fe46d4ebaf093085957af2155649edf11b1703d072eb45b9d81d3cf8e374117f0891256af17f1b60fce9e3d04e3dc02fc4439655f46d477655946fc2833
|
data/lib/spree_sample.rb
CHANGED
@@ -9,6 +9,16 @@ module SpreeSample
|
|
9
9
|
|
10
10
|
# Needs to be here so we can access it inside the tests
|
11
11
|
def self.load_samples
|
12
|
+
original_active_job_adapter = ActiveJob::Base.queue_adapter
|
13
|
+
|
14
|
+
# SQLite doesn't support full-concurrency and often fails with
|
15
|
+
# "SQLite3::BusyException: database is locked" when ActiveJob uses the default
|
16
|
+
# threaded `:async` adapter. ActiveJob is used by ActiveStorage to analyze uploaded
|
17
|
+
# images for metadata.
|
18
|
+
if ActiveRecord::Base.connection.adapter_name == "SQLite"
|
19
|
+
ActiveJob::Base.queue_adapter = :inline
|
20
|
+
end
|
21
|
+
|
12
22
|
Spree::Sample.load_sample("payment_methods")
|
13
23
|
Spree::Sample.load_sample("tax_categories")
|
14
24
|
Spree::Sample.load_sample("tax_rates")
|
@@ -27,6 +37,8 @@ module SpreeSample
|
|
27
37
|
Spree::Sample.load_sample("orders")
|
28
38
|
Spree::Sample.load_sample("payments")
|
29
39
|
Spree::Sample.load_sample("reimbursements")
|
40
|
+
ensure
|
41
|
+
ActiveJob::Base.queue_adapter = original_active_job_adapter
|
30
42
|
end
|
31
43
|
end
|
32
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solidus_sample
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solidus Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.2.
|
19
|
+
version: 3.2.7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.2.
|
26
|
+
version: 3.2.7
|
27
27
|
description: Sample data (including images) for use with Solidus.
|
28
28
|
email: contact@solidus.io
|
29
29
|
executables: []
|
@@ -94,7 +94,7 @@ licenses:
|
|
94
94
|
- BSD-3-Clause
|
95
95
|
metadata:
|
96
96
|
rubygems_mfa_required: 'true'
|
97
|
-
post_install_message:
|
97
|
+
post_install_message:
|
98
98
|
rdoc_options: []
|
99
99
|
require_paths:
|
100
100
|
- lib
|
@@ -109,8 +109,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 1.8.23
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
113
|
-
signing_key:
|
112
|
+
rubygems_version: 3.4.6
|
113
|
+
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: Sample data (including images) for use with Solidus.
|
116
116
|
test_files: []
|