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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/spree_sample.rb +12 -0
  3. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d0de1af4dfad6e6358737df2f7d6d0a8e6506266fe3fc5b720d232b8c429fe6
4
- data.tar.gz: c4b6091514e1fd1e32da0241733b16d25ead5940998827e11940d1c9c09b04f4
3
+ metadata.gz: 70a71a9f7af24c72bae1a9277e7ad1595a47e543d27d9e8f8b9cf7059dd8a325
4
+ data.tar.gz: 0e69051e0b7312f5dc07b84c035be80ca4a79df73f76255355d446b9c0101151
5
5
  SHA512:
6
- metadata.gz: fea0934064718d29c32cabd96cee191fd27262ddead8907822e79b5e141d415ebb264f4a58bac31ac937724b3d904d549ce63eaf1344d93cac2e8795eae44f92
7
- data.tar.gz: 1f2fb3cbe9ad6dcde88c16a2b521d9d8dc8d883ea1d0d0ca86979f970a11008fbd6f3dc619b9e9e1c1e3e3f9a86fa72dacc561b95c2d5cc342ee5204d64b12b6
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.6
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-02-07 00:00:00.000000000 Z
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.6
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.6
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.3.7
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: []