spree_core 4.7.2 → 4.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/concerns/spree/named_type.rb +1 -1
  3. data/app/models/spree/address.rb +1 -1
  4. data/app/models/spree/asset.rb +1 -1
  5. data/app/models/spree/calculator/default_tax.rb +1 -1
  6. data/app/models/spree/cms_page.rb +2 -2
  7. data/app/models/spree/cms_section.rb +1 -1
  8. data/app/models/spree/credit_card.rb +1 -1
  9. data/app/models/spree/customer_return.rb +2 -2
  10. data/app/models/spree/image.rb +2 -2
  11. data/app/models/spree/legacy_user.rb +3 -3
  12. data/app/models/spree/line_item.rb +1 -1
  13. data/app/models/spree/menu.rb +1 -1
  14. data/app/models/spree/option_type.rb +3 -3
  15. data/app/models/spree/option_value.rb +2 -2
  16. data/app/models/spree/order.rb +4 -4
  17. data/app/models/spree/payment.rb +3 -3
  18. data/app/models/spree/payment_method.rb +1 -1
  19. data/app/models/spree/payment_source.rb +1 -1
  20. data/app/models/spree/price.rb +1 -1
  21. data/app/models/spree/product.rb +6 -6
  22. data/app/models/spree/product_property.rb +1 -1
  23. data/app/models/spree/promotion.rb +2 -2
  24. data/app/models/spree/property.rb +2 -2
  25. data/app/models/spree/prototype.rb +1 -1
  26. data/app/models/spree/refund.rb +1 -1
  27. data/app/models/spree/reimbursement.rb +1 -1
  28. data/app/models/spree/return_authorization.rb +1 -1
  29. data/app/models/spree/role.rb +1 -1
  30. data/app/models/spree/shipment.rb +3 -3
  31. data/app/models/spree/shipping_category.rb +1 -1
  32. data/app/models/spree/shipping_method.rb +1 -1
  33. data/app/models/spree/stock/estimator.rb +1 -1
  34. data/app/models/spree/stock_item.rb +1 -1
  35. data/app/models/spree/stock_location.rb +1 -1
  36. data/app/models/spree/stock_transfer.rb +3 -3
  37. data/app/models/spree/store.rb +1 -1
  38. data/app/models/spree/store_credit.rb +2 -2
  39. data/app/models/spree/taxon.rb +3 -3
  40. data/app/models/spree/taxon_image.rb +2 -2
  41. data/app/models/spree/taxonomy.rb +2 -2
  42. data/app/models/spree/variant.rb +2 -2
  43. data/app/models/spree/wishlist.rb +1 -1
  44. data/app/models/spree/zone.rb +1 -1
  45. data/lib/spree/core/version.rb +1 -1
  46. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a4a6d385eee45a295fc9d8fc753c8db920daf30a0362914b665d4547c207b52
4
- data.tar.gz: e4db8012d7d6485aa06cf5f097aa8affbf329f8842d355d8e0b0d37a0a1e0d80
3
+ metadata.gz: 96a1ab3dd325e2cd0053b0ad881b73ddb153624fd04dba62dd61d4e01ab2aca4
4
+ data.tar.gz: 1e947a1bba157dd1df4ba6773d869675da4bffa856f4f1c57f63a4c7b5a592aa
5
5
  SHA512:
6
- metadata.gz: 5ae8ad5ec953dd545a91b55e2aa1e06476667fec495b30d1c83fb90a702ff1ac545b79b7f8e7b13c340cd3f5c834db574f30c620854ac911e2eb5a0f9bb4171a
7
- data.tar.gz: e9a19fab07b1ad481e4bc9bfc01547e90cd6d826325691d59372dfe0d06917a0a25f9430b17031f9c63162180f953c799ef77d7024bec033802103247583891b
6
+ metadata.gz: 6307ed6baf1241414853b53c6528f08448fb465fcdd4603e96f29aaf507fa2188a7f481f4e000b5ec9370e7894c49680ad86ad61d39b1c2e36d7735988c36c95
7
+ data.tar.gz: 1d75cd60145ae2fe99f9d9a8e2c13cd7c3b9026847b561c31299ce1bbd0596c7f4e14499e01f658dfe0e8c87e5335ee718d6983213d8ac1d8338a3300836d1f3
@@ -6,7 +6,7 @@ module Spree
6
6
  scope :active, -> { where(active: true) }
7
7
  default_scope { order(Arel.sql("LOWER(#{table_name}.name)")) }
8
8
 
9
- include UniqueName
9
+ include Spree::UniqueName
10
10
  end
11
11
  end
12
12
  end
@@ -2,7 +2,7 @@ module Spree
2
2
  class Address < Spree::Base
3
3
  require 'validates_zipcode'
4
4
 
5
- include Metadata
5
+ include Spree::Metadata
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class Asset < Spree::Base
3
3
  include Support::ActiveStorage
4
- include Metadata
4
+ include Spree::Metadata
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -2,7 +2,7 @@ require_dependency 'spree/calculator'
2
2
 
3
3
  module Spree
4
4
  class Calculator::DefaultTax < Calculator
5
- include VatPriceCalculation
5
+ include Spree::VatPriceCalculation
6
6
  def self.description
7
7
  Spree.t(:default_tax)
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class CmsPage < Base
3
- include SingleStoreResource
4
- include DisplayLink
3
+ include Spree::SingleStoreResource
4
+ include Spree::DisplayLink
5
5
 
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class CmsSection < Base
3
- include DisplayLink
3
+ include Spree::DisplayLink
4
4
 
5
5
  acts_as_list scope: :cms_page
6
6
  belongs_to :cms_page, touch: true
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class CreditCard < Spree::Base
3
3
  include ActiveMerchant::Billing::CreditCardMethods
4
- include Metadata
4
+ include Spree::Metadata
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  class CustomerReturn < Spree::Base
3
3
  include Spree::Core::NumberGenerator.new(prefix: 'CR', length: 9)
4
- include NumberIdentifier
5
- include Metadata
4
+ include Spree::NumberIdentifier
5
+ include Spree::Metadata
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  class Image < Asset
3
- include Configuration::ActiveStorage
3
+ include Spree::Image::Configuration::ActiveStorage
4
4
  include Rails.application.routes.url_helpers
5
- include ::Spree::ImageMethods
5
+ include Spree::ImageMethods
6
6
 
7
7
  # In Rails 5.x class constants are being undefined/redefined during the code reloading process
8
8
  # in a rails development environment, after which the actual ruby objects stored in those class constants
@@ -1,9 +1,9 @@
1
1
  # Default implementation of User. This class is intended to be modified by extensions (ex. spree_auth_devise)
2
2
  module Spree
3
3
  class LegacyUser < Spree::Base
4
- include UserAddress
5
- include UserPaymentSource
6
- include UserMethods
4
+ include Spree::UserAddress
5
+ include Spree::UserPaymentSource
6
+ include Spree::UserMethods
7
7
  include Spree::Metadata
8
8
 
9
9
  self.table_name = 'spree_users'
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class LineItem < Spree::Base
3
- include Metadata
3
+ include Spree::Metadata
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Menu < Spree::Base
3
- include SingleStoreResource
3
+ include Spree::SingleStoreResource
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  class OptionType < Spree::Base
3
- include UniqueName
4
- include Metadata
5
- include TranslatableResource
3
+ include Spree::UniqueName
4
+ include Spree::Metadata
5
+ include Spree::TranslatableResource
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class OptionValue < Spree::Base
3
- include Metadata
4
- include TranslatableResource
3
+ include Spree::Metadata
4
+ include Spree::TranslatableResource
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -20,10 +20,10 @@ module Spree
20
20
  include Spree::Core::NumberGenerator.new(prefix: 'R')
21
21
  include Spree::Core::TokenGenerator
22
22
 
23
- include NumberIdentifier
24
- include NumberAsParam
25
- include SingleStoreResource
26
- include MemoizedData
23
+ include Spree::NumberIdentifier
24
+ include Spree::NumberAsParam
25
+ include Spree::SingleStoreResource
26
+ include Spree::MemoizedData
27
27
  include Spree::Metadata
28
28
  if defined?(Spree::Webhooks)
29
29
  include Spree::Webhooks::HasWebhooks
@@ -3,9 +3,9 @@ require_dependency 'spree/payment/processing'
3
3
  module Spree
4
4
  class Payment < Spree::Base
5
5
  include Spree::Core::NumberGenerator.new(prefix: 'P', letters: true, length: 7)
6
- include NumberIdentifier
7
- include NumberAsParam
8
- include Metadata
6
+ include Spree::NumberIdentifier
7
+ include Spree::NumberAsParam
8
+ include Spree::Metadata
9
9
  if defined?(Spree::Webhooks)
10
10
  include Spree::Webhooks::HasWebhooks
11
11
  end
@@ -3,7 +3,7 @@ module Spree
3
3
  acts_as_paranoid
4
4
  acts_as_list
5
5
 
6
- include MultiStoreResource
6
+ include Spree::MultiStoreResource
7
7
  include Spree::Metadata
8
8
  if defined?(Spree::Security::PaymentMethods)
9
9
  include Spree::Security::PaymentMethods
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class PaymentSource < Spree::Base
3
- include Metadata
3
+ include Spree::Metadata
4
4
 
5
5
  belongs_to :payment_method, class_name: 'Spree::PaymentMethod'
6
6
  belongs_to :user, class_name: 'Spree::User', optional: true
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Price < Spree::Base
3
- include VatPriceCalculation
3
+ include Spree::VatPriceCalculation
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -21,12 +21,12 @@
21
21
  module Spree
22
22
  class Product < Spree::Base
23
23
  extend FriendlyId
24
- include ProductScopes
25
- include MultiStoreResource
26
- include TranslatableResource
27
- include TranslatableResourceSlug
28
- include MemoizedData
29
- include Metadata
24
+ include Spree::ProductScopes
25
+ include Spree::MultiStoreResource
26
+ include Spree::TranslatableResource
27
+ include Spree::TranslatableResourceSlug
28
+ include Spree::MemoizedData
29
+ include Spree::Metadata
30
30
  if defined?(Spree::Webhooks)
31
31
  include Spree::Webhooks::HasWebhooks
32
32
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class ProductProperty < Spree::Base
3
3
  include Spree::FilterParam
4
- include TranslatableResource
4
+ include Spree::TranslatableResource
5
5
 
6
6
  TRANSLATABLE_FIELDS = %i[value filter_param].freeze
7
7
  translates(*TRANSLATABLE_FIELDS)
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class Promotion < Spree::Base
3
- include MultiStoreResource
4
- include Metadata
3
+ include Spree::MultiStoreResource
4
+ include Spree::Metadata
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  class Property < Spree::Base
3
3
  include Spree::FilterParam
4
- include Metadata
5
- include TranslatableResource
4
+ include Spree::Metadata
5
+ include Spree::TranslatableResource
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Prototype < Spree::Base
3
- include Metadata
3
+ include Spree::Metadata
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Refund < Spree::Base
3
- include Metadata
3
+ include Spree::Metadata
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class Reimbursement < Spree::Base
3
3
  include Spree::Core::NumberGenerator.new(prefix: 'RI', length: 9)
4
- include NumberIdentifier
4
+ include Spree::NumberIdentifier
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class ReturnAuthorization < Spree::Base
3
3
  include Spree::Core::NumberGenerator.new(prefix: 'RA', length: 9)
4
- include NumberIdentifier
4
+ include Spree::NumberIdentifier
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Role < Spree::Base
3
- include UniqueName
3
+ include Spree::UniqueName
4
4
 
5
5
  has_many :role_users, class_name: 'Spree::RoleUser', dependent: :destroy
6
6
  has_many :users, through: :role_users, class_name: "::#{Spree.user_class}"
@@ -3,9 +3,9 @@ require 'ostruct'
3
3
  module Spree
4
4
  class Shipment < Spree::Base
5
5
  include Spree::Core::NumberGenerator.new(prefix: 'H', length: 11)
6
- include NumberIdentifier
7
- include NumberAsParam
8
- include Metadata
6
+ include Spree::NumberIdentifier
7
+ include Spree::NumberAsParam
8
+ include Spree::Metadata
9
9
  if defined?(Spree::Webhooks)
10
10
  include Spree::Webhooks::HasWebhooks
11
11
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class ShippingCategory < Spree::Base
3
- include UniqueName
3
+ include Spree::UniqueName
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -2,7 +2,7 @@ module Spree
2
2
  class ShippingMethod < Spree::Base
3
3
  acts_as_paranoid
4
4
  include Spree::CalculatedAdjustments
5
- include Metadata
5
+ include Spree::Metadata
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  module Stock
3
3
  class Estimator
4
- include VatPriceCalculation
4
+ include Spree::VatPriceCalculation
5
5
 
6
6
  attr_reader :order, :currency
7
7
 
@@ -2,7 +2,7 @@ module Spree
2
2
  class StockItem < Spree::Base
3
3
  acts_as_paranoid
4
4
 
5
- include Metadata
5
+ include Spree::Metadata
6
6
  if defined?(Spree::Webhooks)
7
7
  include Spree::Webhooks::HasWebhooks
8
8
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class StockLocation < Spree::Base
3
- include UniqueName
3
+ include Spree::UniqueName
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,9 +1,9 @@
1
1
  module Spree
2
2
  class StockTransfer < Spree::Base
3
3
  include Spree::Core::NumberGenerator.new(prefix: 'T')
4
- include NumberIdentifier
5
- include NumberAsParam
6
- include Metadata
4
+ include Spree::NumberIdentifier
5
+ include Spree::NumberAsParam
6
+ include Spree::Metadata
7
7
  if defined?(Spree::Webhooks)
8
8
  include Spree::Webhooks::HasWebhooks
9
9
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Store < Spree::Base
3
- include TranslatableResource
3
+ include Spree::TranslatableResource
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class StoreCredit < Spree::Base
3
- include SingleStoreResource
4
- include Metadata
3
+ include Spree::SingleStoreResource
4
+ include Spree::Metadata
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -3,9 +3,9 @@ require 'stringex'
3
3
 
4
4
  module Spree
5
5
  class Taxon < Spree::Base
6
- include TranslatableResource
7
- include TranslatableResourceSlug
8
- include Metadata
6
+ include Spree::TranslatableResource
7
+ include Spree::TranslatableResourceSlug
8
+ include Spree::Metadata
9
9
  if defined?(Spree::Webhooks)
10
10
  include Spree::Webhooks::HasWebhooks
11
11
  end
@@ -1,8 +1,8 @@
1
1
  module Spree
2
2
  class TaxonImage < Asset
3
- include Configuration::ActiveStorage
3
+ include Spree::TaxonImage::Configuration::ActiveStorage
4
4
  include Rails.application.routes.url_helpers
5
- include ::Spree::ImageMethods
5
+ include Spree::ImageMethods
6
6
 
7
7
  def styles
8
8
  self.class.styles.map do |_, size|
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  class Taxonomy < Spree::Base
3
- include TranslatableResource
4
- include Metadata
3
+ include Spree::TranslatableResource
4
+ include Spree::Metadata
5
5
  if defined?(Spree::Webhooks)
6
6
  include Spree::Webhooks::HasWebhooks
7
7
  end
@@ -3,8 +3,8 @@ module Spree
3
3
  acts_as_paranoid
4
4
  acts_as_list scope: :product
5
5
 
6
- include MemoizedData
7
- include Metadata
6
+ include Spree::MemoizedData
7
+ include Spree::Metadata
8
8
  if defined?(Spree::Webhooks)
9
9
  include Spree::Webhooks::HasWebhooks
10
10
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Wishlist < Spree::Base
3
- include SingleStoreResource
3
+ include Spree::SingleStoreResource
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,6 +1,6 @@
1
1
  module Spree
2
2
  class Zone < Spree::Base
3
- include UniqueName
3
+ include Spree::UniqueName
4
4
  if defined?(Spree::Webhooks)
5
5
  include Spree::Webhooks::HasWebhooks
6
6
  end
@@ -1,5 +1,5 @@
1
1
  module Spree
2
- VERSION = '4.7.2'.freeze
2
+ VERSION = '4.7.3'.freeze
3
3
 
4
4
  def self.version
5
5
  VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.2
4
+ version: 4.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Schofield
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-21 00:00:00.000000000 Z
12
+ date: 2024-04-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1122,9 +1122,9 @@ licenses:
1122
1122
  - BSD-3-Clause
1123
1123
  metadata:
1124
1124
  bug_tracker_uri: https://github.com/spree/spree/issues
1125
- changelog_uri: https://github.com/spree/spree/releases/tag/v4.7.2
1125
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.7.3
1126
1126
  documentation_uri: https://dev-docs.spreecommerce.org/
1127
- source_code_uri: https://github.com/spree/spree/tree/v4.7.2
1127
+ source_code_uri: https://github.com/spree/spree/tree/v4.7.3
1128
1128
  post_install_message:
1129
1129
  rdoc_options: []
1130
1130
  require_paths: