alchemy-solidus 6.0.0 → 6.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16a15dfe376f96cd10368b80600ecd90db0883f2c49b82d34494d0d7cbd11e2d
4
- data.tar.gz: 58eb94228f3a082ca8f7e0b38132c894edccdb4a64e352efe7968516fc43dd99
3
+ metadata.gz: d1f5bba357c3cd5b1c2ac4d48318c3a065b613119dbf4e943bc898e7a7e19023
4
+ data.tar.gz: 2dbb9d3332bb54316c30d13d86bfcdff8652af481c268c3c6b410fec0989b57d
5
5
  SHA512:
6
- metadata.gz: ef6b3b8d01fff1ee7fbfb25fc9813bbffc192af8481e21e4f4b49ba73b9f14509d50de621947a925a06a6a51df5cd1eeb5c3a765942fd4f78ac3d72e17b722f5
7
- data.tar.gz: b1fbae3de6f3d2aef1b2cca13e95298e845baac85fb60cf3c4db123b63ff6ee9b41c5f9a2f70619a556d11b38e01fb84ce52c6e698d275f7b8a38345f9f47418
6
+ metadata.gz: 29b570fd3d5f343ce57fe95667b7a0a5ba12cafd8986ab45cd0c65beab62cc9003bac2c8628c1867a4e1de3cb475fdd39260fa3ef5535c9c887c00b5a2ecff2f
7
+ data.tar.gz: d7271dbe863c5527090751ef60dcce3043f23e51a8c3d4e4d88e7b8a38145acd17f759839ac01435c47eda9f0830f9eaba1ba8c3937f6633e280a56c40940238
data/README.md CHANGED
@@ -13,7 +13,7 @@ This is a [AlchemyCMS](https://alchemy-cms.com) and [Solidus](https://solidus.io
13
13
 
14
14
  ### Solidus
15
15
 
16
- This version runs with Solidus v2.11 and v3.0.
16
+ This version runs with Solidus v3.0 and up.
17
17
 
18
18
  - For a Solidus < 2.11 compatible version please use the `3.1-stable` branch or `3.3.0` gem version.
19
19
  - For a Solidus < 2.6 compatible version please use the `2.3-stable` branch or `2.3.2` gem version.
@@ -23,18 +23,20 @@ This version runs with Solidus v2.11 and v3.0.
23
23
 
24
24
  ### Alchemy
25
25
 
26
- This version runs with Alchemy v5.x and v6.0.
26
+ This version runs with Alchemy v7.0
27
27
 
28
- - For a Alchemy 4.x compatible version please use the `3.1-stable` branch or `3.3.0` gem version.
29
- - For a Alchemy 4.0 compatible version please use the `2.3-stable` branch or `2.3.2` gem version.
30
- - For a Alchemy 3.x compatible version please use the `1.0-stable` branch or `1.1.0` gem version.
28
+ - For a Alchemy 6.x compatible version please use the `5.0-stable` branch or `5.0` gem version.
29
+ - For a Alchemy 5.x compatible version please use the `4.1-stable` branch or `4.1` gem version.
30
+ - For a Alchemy 4.x compatible version please use the `3.1-stable` branch or `3.3` gem version.
31
+ - For a Alchemy 4.0 compatible version please use the `2.3-stable` branch or `2.3` gem version.
32
+ - For a Alchemy 3.x compatible version please use the `1.0-stable` branch or `1.1` gem version.
31
33
 
32
34
  ## Installation
33
35
 
34
36
  Add this line to your applications `Gemfile`:
35
37
 
36
38
  ```ruby
37
- gem 'alchemy-solidus', '~> 2.4.0'
39
+ gem 'alchemy-solidus', '~> 6.0'
38
40
  ```
39
41
 
40
42
  Install the gem with:
data/Rakefile CHANGED
@@ -16,7 +16,7 @@ require "active_support/core_ext/string"
16
16
 
17
17
  desc "Setup test app"
18
18
  task :test_setup do
19
- solidus_version = ENV.fetch("SOLIDUS_VERSION", "3.2")
19
+ solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.0")
20
20
  solidus_32_install_options =
21
21
  "--payment-method none --frontend none --no-with-authentication"
22
22
  solidus_33_install_options =
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alchemy
4
+ module Ingredients
5
+ class SpreeProductView < BaseView
6
+ delegate :product, to: :ingredient
7
+
8
+ def call
9
+ product.name
10
+ end
11
+
12
+ def render?
13
+ !!product
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alchemy
4
+ module Ingredients
5
+ class SpreeTaxonView < BaseView
6
+ delegate :taxon, to: :ingredient
7
+
8
+ def call
9
+ taxon.name
10
+ end
11
+
12
+ def render?
13
+ !!taxon
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Alchemy
4
+ module Ingredients
5
+ class SpreeVariantView < BaseView
6
+ delegate :variant, to: :ingredient
7
+
8
+ def call
9
+ variant.name
10
+ end
11
+
12
+ def render?
13
+ !!variant
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1 +1,4 @@
1
- <%= spree_product_view.product&.name %>
1
+ <%= render spree_product_view.as_view_component(
2
+ **local_assigns.slice(:options),
3
+ **local_assigns.slice(:html_options)
4
+ ) -%>
@@ -1 +1,4 @@
1
- <%= spree_taxon_view.taxon&.name %>
1
+ <%= render spree_taxon_view.as_view_component(
2
+ **local_assigns.slice(:options),
3
+ **local_assigns.slice(:html_options)
4
+ ) -%>
@@ -1 +1,4 @@
1
- <%= spree_variant_view.variant&.name %>
1
+ <%= render spree_variant_view.as_view_component(
2
+ **local_assigns.slice(:options),
3
+ **local_assigns.slice(:html_options)
4
+ ) -%>
@@ -1,5 +1,5 @@
1
1
  Spree::Admin::BaseController.unauthorized_redirect = -> do
2
- if try_spree_current_user
2
+ if spree_current_user
3
3
  flash[:error] = I18n.t('spree.authorization_failure')
4
4
  redirect_to spree.root_path
5
5
  else
@@ -1,5 +1,5 @@
1
1
  module Alchemy
2
2
  module Solidus
3
- VERSION = "6.0.0"
3
+ VERSION = "6.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alchemy-solidus
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas von Deyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alchemy_cms
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 7.0.0.a
19
+ version: 7.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '8'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 7.0.0.a
29
+ version: 7.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '8'
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 3.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '4.0'
42
+ version: '5'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 3.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '4.0'
52
+ version: '5'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: solidus_backend
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: 3.0.0
60
60
  - - "<"
61
61
  - !ruby/object:Gem::Version
62
- version: '4.0'
62
+ version: '5'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,7 +69,7 @@ dependencies:
69
69
  version: 3.0.0
70
70
  - - "<"
71
71
  - !ruby/object:Gem::Version
72
- version: '4.0'
72
+ version: '5'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: solidus_support
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -202,20 +202,14 @@ dependencies:
202
202
  requirements:
203
203
  - - "~>"
204
204
  - !ruby/object:Gem::Version
205
- version: '4.8'
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: 4.8.3
205
+ version: '4.11'
209
206
  type: :development
210
207
  prerelease: false
211
208
  version_requirements: !ruby/object:Gem::Requirement
212
209
  requirements:
213
210
  - - "~>"
214
211
  - !ruby/object:Gem::Version
215
- version: '4.8'
216
- - - ">="
217
- - !ruby/object:Gem::Version
218
- version: 4.8.3
212
+ version: '4.11'
219
213
  - !ruby/object:Gem::Dependency
220
214
  name: puma
221
215
  requirement: !ruby/object:Gem::Requirement
@@ -230,20 +224,6 @@ dependencies:
230
224
  - - "~>"
231
225
  - !ruby/object:Gem::Version
232
226
  version: '6.0'
233
- - !ruby/object:Gem::Dependency
234
- name: webdrivers
235
- requirement: !ruby/object:Gem::Requirement
236
- requirements:
237
- - - "~>"
238
- - !ruby/object:Gem::Version
239
- version: '5.0'
240
- type: :development
241
- prerelease: false
242
- version_requirements: !ruby/object:Gem::Requirement
243
- requirements:
244
- - - "~>"
245
- - !ruby/object:Gem::Version
246
- version: '5.0'
247
227
  description: A AlchemyCMS and Solidus integration
248
228
  email:
249
229
  - thomas@vondeyen.com
@@ -259,6 +239,9 @@ files:
259
239
  - app/assets/javascripts/alchemy/solidus/admin/select2_config.js
260
240
  - app/assets/javascripts/alchemy/solidus/admin/taxon_select.js
261
241
  - app/assets/javascripts/alchemy/solidus/admin/variant_select.js
242
+ - app/components/alchemy/ingredients/spree_product_view.rb
243
+ - app/components/alchemy/ingredients/spree_taxon_view.rb
244
+ - app/components/alchemy/ingredients/spree_variant_view.rb
262
245
  - app/models/alchemy/ingredients/spree_product.rb
263
246
  - app/models/alchemy/ingredients/spree_taxon.rb
264
247
  - app/models/alchemy/ingredients/spree_variant.rb
@@ -311,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
294
  - !ruby/object:Gem::Version
312
295
  version: '0'
313
296
  requirements: []
314
- rubygems_version: 3.3.26
297
+ rubygems_version: 3.4.17
315
298
  signing_key:
316
299
  specification_version: 4
317
300
  summary: The World's Most Flexible E-Commerce Platform meets The World's Most Flexible