alchemy-solidus 6.0.0 → 6.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16a15dfe376f96cd10368b80600ecd90db0883f2c49b82d34494d0d7cbd11e2d
4
- data.tar.gz: 58eb94228f3a082ca8f7e0b38132c894edccdb4a64e352efe7968516fc43dd99
3
+ metadata.gz: b5b9e5fe0454546aa34cbead4fed12017664b119a068bda5ba08e7064376f008
4
+ data.tar.gz: 14c4045f805268897fcb4422bee6b0c87aada111c9fefc6d7a6d5eb6b8dab9ce
5
5
  SHA512:
6
- metadata.gz: ef6b3b8d01fff1ee7fbfb25fc9813bbffc192af8481e21e4f4b49ba73b9f14509d50de621947a925a06a6a51df5cd1eeb5c3a765942fd4f78ac3d72e17b722f5
7
- data.tar.gz: b1fbae3de6f3d2aef1b2cca13e95298e845baac85fb60cf3c4db123b63ff6ee9b41c5f9a2f70619a556d11b38e01fb84ce52c6e698d275f7b8a38345f9f47418
6
+ metadata.gz: 3f46f3e3aa9d9f854dcc662e879b48df43f306307f7b7857eb448d02c3cab0292edd7c7f84b3b4ab641ae8f69b950af95ff0803b1e561d57125602cb28daf1b0
7
+ data.tar.gz: 6a31f2ee758ff475e13c966f6fec4dbf35b19f3f0be0c4f7f0a6893344b5a5e01df1bf4208538e9ba656502759f48e94b14c1c311dbc8d1fbe716a1dbae2c4b2
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.0.1"
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.0.1
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-07-01 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.b
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.b
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: '4.1'
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: '4.1'
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: '4.1'
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: '4.1'
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: solidus_support
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -259,6 +259,9 @@ files:
259
259
  - app/assets/javascripts/alchemy/solidus/admin/select2_config.js
260
260
  - app/assets/javascripts/alchemy/solidus/admin/taxon_select.js
261
261
  - app/assets/javascripts/alchemy/solidus/admin/variant_select.js
262
+ - app/components/alchemy/ingredients/spree_product_view.rb
263
+ - app/components/alchemy/ingredients/spree_taxon_view.rb
264
+ - app/components/alchemy/ingredients/spree_variant_view.rb
262
265
  - app/models/alchemy/ingredients/spree_product.rb
263
266
  - app/models/alchemy/ingredients/spree_taxon.rb
264
267
  - app/models/alchemy/ingredients/spree_variant.rb
@@ -311,7 +314,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
311
314
  - !ruby/object:Gem::Version
312
315
  version: '0'
313
316
  requirements: []
314
- rubygems_version: 3.3.26
317
+ rubygems_version: 3.4.12
315
318
  signing_key:
316
319
  specification_version: 4
317
320
  summary: The World's Most Flexible E-Commerce Platform meets The World's Most Flexible