alchemy-solidus 6.3.0 → 6.3.2
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 +4 -4
- data/LICENSE +1 -1
- data/Rakefile +1 -1
- data/app/overrides/alchemy/admin/pages/link/product_link.html.erb.deface +1 -1
- data/app/overrides/alchemy/admin/pages/link/product_link_panel.html.erb.deface +5 -0
- data/app/overrides/alchemy/admin/pages/link/product_link_sl_tab.html.erb.deface +5 -0
- data/app/views/alchemy/admin/pages/_product_link.html.erb +3 -3
- data/config/initializers/spree.rb +61 -58
- data/lib/alchemy/solidus/version.rb +1 -1
- data/lib/generators/alchemy/solidus/install/install_generator.rb +1 -8
- metadata +5 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: dfce794c5eb3858c868d40897476a4f377f444772dd0fc7086c849d09b979561
         | 
| 4 | 
            +
              data.tar.gz: ed9c3370efa9b829cd4485a43b4c496f2e49a6835dd91468765558c8efc3c255
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f7ab0cf771f9214a7585231e179a27cb79f41ece1ad55627f6d54ba9311c01d855de49c3e9983a9dd7edc95609e85a51f520b1d38b303c50f846cdba7e3d4a86
         | 
| 7 | 
            +
              data.tar.gz: 90827b677754ee6908381ea7e9cde78a4dc349928a995ef05bd4508f8635d7d4eb44ff2c6e8a2b757f3d0a50093e410f4288c96a088ef83e0308d167226cbc21
         | 
    
        data/LICENSE
    CHANGED
    
    
    
        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", "4. | 
| 19 | 
            +
              solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.2")
         | 
| 20 20 | 
             
              solidus_32_install_options =
         | 
| 21 21 | 
             
                "--payment-method none --frontend none --no-with-authentication"
         | 
| 22 22 | 
             
              solidus_33_install_options =
         | 
| @@ -1,4 +1,4 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            <form data-link-form-type="product">
         | 
| 2 2 | 
             
              <%= render_message do %>
         | 
| 3 3 | 
             
                <h3><%= Alchemy.t(:choose_product_to_link) %></h3>
         | 
| 4 4 | 
             
              <% end %>
         | 
| @@ -23,8 +23,8 @@ | |
| 23 23 | 
             
                  class: 'alchemy_selectbox link_target' %>
         | 
| 24 24 | 
             
              </div>
         | 
| 25 25 | 
             
              <div class="submit">
         | 
| 26 | 
            -
                <%= button_tag Alchemy.t(:apply), class:  | 
| 26 | 
            +
                <%= button_tag Alchemy.t(:apply), class: "create-link button", data: { link_type: "product" } %>
         | 
| 27 27 | 
             
              </div>
         | 
| 28 | 
            -
             | 
| 28 | 
            +
            </form>
         | 
| 29 29 |  | 
| 30 30 | 
             
            <%= render "product_link_script" %>
         | 
| @@ -2,66 +2,69 @@ if defined?(Alchemy::Devise::Engine) | |
| 2 2 | 
             
              Spree.user_class = "Alchemy::User"
         | 
| 3 3 | 
             
            end
         | 
| 4 4 |  | 
| 5 | 
            -
             | 
| 6 | 
            -
               | 
| 7 | 
            -
                 | 
| 8 | 
            -
                   | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
                     | 
| 14 | 
            -
                       | 
| 15 | 
            -
             | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            -
                       | 
| 21 | 
            -
             | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 | 
            -
                           | 
| 28 | 
            -
             | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 33 | 
            -
             | 
| 34 | 
            -
                       | 
| 35 | 
            -
             | 
| 36 | 
            -
             | 
| 37 | 
            -
             | 
| 38 | 
            -
             | 
| 39 | 
            -
                       | 
| 40 | 
            -
             | 
| 41 | 
            -
             | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 44 | 
            -
                       | 
| 45 | 
            -
             | 
| 46 | 
            -
             | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 49 | 
            -
             | 
| 50 | 
            -
             | 
| 51 | 
            -
                 | 
| 52 | 
            -
                   | 
| 53 | 
            -
             | 
| 54 | 
            -
             | 
| 55 | 
            -
             | 
| 56 | 
            -
             | 
| 57 | 
            -
             | 
| 58 | 
            -
             | 
| 59 | 
            -
             | 
| 5 | 
            +
            Rails.application.config.after_initialize do
         | 
| 6 | 
            +
              Spree::Backend::Config.configure do |config|
         | 
| 7 | 
            +
                alchemy_menu_item = if Spree.solidus_gem_version >= Gem::Version.new("4.2.0")
         | 
| 8 | 
            +
                  config.class::MenuItem.new(
         | 
| 9 | 
            +
                    label: :cms,
         | 
| 10 | 
            +
                    icon: config.admin_updated_navbar ? "ri-pages-line" : "copy",
         | 
| 11 | 
            +
                    condition: -> { can?(:index, :alchemy_admin_dashboard) },
         | 
| 12 | 
            +
                    url: -> { Alchemy::Engine.routes.url_helpers.admin_dashboard_path },
         | 
| 13 | 
            +
                    children: [
         | 
| 14 | 
            +
                      config.class::MenuItem.new(
         | 
| 15 | 
            +
                        label: :pages,
         | 
| 16 | 
            +
                        condition: -> { can?(:index, :alchemy_admin_pages) },
         | 
| 17 | 
            +
                        url: -> { Alchemy::Engine.routes.url_helpers.admin_pages_path },
         | 
| 18 | 
            +
                        match_path: "/pages"
         | 
| 19 | 
            +
                      ),
         | 
| 20 | 
            +
                      config.class::MenuItem.new(
         | 
| 21 | 
            +
                        label: :languages,
         | 
| 22 | 
            +
                        condition: -> { can?(:index, :alchemy_admin_sites) },
         | 
| 23 | 
            +
                        url: -> { Alchemy::Engine.routes.url_helpers.admin_sites_path },
         | 
| 24 | 
            +
                        match_path: "/languages"
         | 
| 25 | 
            +
                      ),
         | 
| 26 | 
            +
                      (if defined?(Alchemy::Devise::Engine)
         | 
| 27 | 
            +
                          config.class::MenuItem.new(
         | 
| 28 | 
            +
                            label: :users,
         | 
| 29 | 
            +
                            condition: -> { can?(:index, :alchemy_admin_users) },
         | 
| 30 | 
            +
                            url: -> { Alchemy::Engine.routes.url_helpers.admin_users_path },
         | 
| 31 | 
            +
                            match_path: "/users"
         | 
| 32 | 
            +
                          )
         | 
| 33 | 
            +
                        end),
         | 
| 34 | 
            +
                      config.class::MenuItem.new(
         | 
| 35 | 
            +
                        label: :tags,
         | 
| 36 | 
            +
                        condition: -> { can?(:index, :alchemy_admin_tags) },
         | 
| 37 | 
            +
                        url: -> { Alchemy::Engine.routes.url_helpers.admin_tags_path }
         | 
| 38 | 
            +
                      ),
         | 
| 39 | 
            +
                      config.class::MenuItem.new(
         | 
| 40 | 
            +
                        label: :pictures,
         | 
| 41 | 
            +
                        condition: -> { can?(:index, :alchemy_admin_pictures) },
         | 
| 42 | 
            +
                        url: -> { Alchemy::Engine.routes.url_helpers.admin_pictures_path }
         | 
| 43 | 
            +
                      ),
         | 
| 44 | 
            +
                      config.class::MenuItem.new(
         | 
| 45 | 
            +
                        label: :attachments,
         | 
| 46 | 
            +
                        condition: -> { can?(:index, :alchemy_admin_attachments) },
         | 
| 47 | 
            +
                        url: -> { Alchemy::Engine.routes.url_helpers.admin_attachments_path }
         | 
| 48 | 
            +
                      )
         | 
| 49 | 
            +
                    ].compact
         | 
| 50 | 
            +
                  )
         | 
| 51 | 
            +
                else
         | 
| 52 | 
            +
                  config.class::MenuItem.new(
         | 
| 53 | 
            +
                    [:pages, :sites, :languages, :tags, :users, :pictures, :attachments],
         | 
| 54 | 
            +
                    "copy",
         | 
| 55 | 
            +
                    label: :cms,
         | 
| 56 | 
            +
                    condition: -> { can?(:index, :alchemy_admin_dashboard) },
         | 
| 57 | 
            +
                    partial: "spree/admin/shared/alchemy_sub_menu",
         | 
| 58 | 
            +
                    url: "/admin/pages",
         | 
| 59 | 
            +
                    match_path: "/pages"
         | 
| 60 | 
            +
                  )
         | 
| 61 | 
            +
                end
         | 
| 62 | 
            +
                settings = config.menu_items.detect { |item| item.label == :settings }
         | 
| 63 | 
            +
                config.menu_items.index(settings).tap do |index|
         | 
| 64 | 
            +
                  config.menu_items.insert(index, alchemy_menu_item)
         | 
| 65 | 
            +
                end
         | 
| 60 66 | 
             
              end
         | 
| 61 | 
            -
              config.menu_items << alchemy_menu_item
         | 
| 62 | 
            -
            end
         | 
| 63 67 |  | 
| 64 | 
            -
            Rails.application.config.after_initialize do
         | 
| 65 68 | 
             
              if Spree::Backend::Config.menu_items.many? { |menu_item| menu_item.label == :cms }
         | 
| 66 69 | 
             
                Alchemy::Deprecation.warn("You configured the Alchemy menu items in your app's initializers. We can do that for you now! Please remove the menu item with the label `:cms`.")
         | 
| 67 70 | 
             
              end
         | 
| @@ -1,12 +1,5 @@ | |
| 1 1 | 
             
            require "rails/generators"
         | 
| 2 | 
            -
            require "alchemy/ | 
| 3 | 
            -
             | 
| 4 | 
            -
            if Alchemy.gem_version >= Gem::Version.new("5.0.0.a")
         | 
| 5 | 
            -
              require "generators/alchemy/install/install_generator"
         | 
| 6 | 
            -
            else
         | 
| 7 | 
            -
              require "rails/generators/alchemy/install/install_generator"
         | 
| 8 | 
            -
            end
         | 
| 9 | 
            -
             | 
| 2 | 
            +
            require "generators/alchemy/install/install_generator"
         | 
| 10 3 | 
             
            require "generators/spree/custom_user/custom_user_generator"
         | 
| 11 4 | 
             
            require "solidus_support"
         | 
| 12 5 |  | 
    
        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.3. | 
| 4 | 
            +
              version: 6.3.2
         | 
| 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- | 
| 11 | 
            +
            date: 2023-12-29 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: alchemy_cms
         | 
| @@ -246,6 +246,8 @@ files: | |
| 246 246 | 
             
            - app/models/alchemy/ingredients/spree_taxon.rb
         | 
| 247 247 | 
             
            - app/models/alchemy/ingredients/spree_variant.rb
         | 
| 248 248 | 
             
            - app/overrides/alchemy/admin/pages/link/product_link.html.erb.deface
         | 
| 249 | 
            +
            - app/overrides/alchemy/admin/pages/link/product_link_panel.html.erb.deface
         | 
| 250 | 
            +
            - app/overrides/alchemy/admin/pages/link/product_link_sl_tab.html.erb.deface
         | 
| 249 251 | 
             
            - app/overrides/alchemy/admin/pages/link/product_link_tab.html.erb.deface
         | 
| 250 252 | 
             
            - app/views/alchemy/admin/pages/_product_link.html.erb
         | 
| 251 253 | 
             
            - app/views/alchemy/admin/pages/_product_link_script.html.erb
         | 
| @@ -295,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 295 297 | 
             
                - !ruby/object:Gem::Version
         | 
| 296 298 | 
             
                  version: '0'
         | 
| 297 299 | 
             
            requirements: []
         | 
| 298 | 
            -
            rubygems_version: 3. | 
| 300 | 
            +
            rubygems_version: 3.5.3
         | 
| 299 301 | 
             
            signing_key:
         | 
| 300 302 | 
             
            specification_version: 4
         | 
| 301 303 | 
             
            summary: The World's Most Flexible E-Commerce Platform meets The World's Most Flexible
         |