spree_cm_commissioner 2.1.0.pre.pre1 → 2.1.0.pre.pre2

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: 909487c9539010ae03d8e2b6d5fbc0cf816cd1ce1137a66f0f1eea6346b01542
4
- data.tar.gz: e459b91d83aca9ad171e451207815358183ac7334f1642df74919a5696ec2518
3
+ metadata.gz: a327dc0e2f40dd0da82e2f110b079f4ff3a81bec76974745c82a27a37b273c63
4
+ data.tar.gz: 8ce2e93eaec4b8c005818e0c321430d598e3318a647b4caea08945b02291c785
5
5
  SHA512:
6
- metadata.gz: 7120a4a0cfd9a433b3cb46f23db46838b311decb37955eb7a1caa8270f3c201992fb923dc1d55076bf291f724c1c1906b4ecd392c9e929dea046e97e27588b89
7
- data.tar.gz: 7ee7b9fe8d14ca8740791b2bcd22f46616900e957eab5d113a3a971a3fc960f567723fc686d50d181c29674b7167c9b9c1532c9cf14643094662bf1c591812bf
6
+ metadata.gz: 923d60bccd00c23a3a6ad8b7ff8ea05b9204fd9f871f3664a24e7d761adc7fe75275ff850efedbe5c34454af4561d3c8830f29f6dc43450052ec90fb37cc45ca
7
+ data.tar.gz: f5abc2ec078ab65c637f2f368d35d4d0b7c3d7337c7d9cddc13c94177f46b55e06bb39288eaab00087c3f6b4cfb6bdf4d2bf07fe5bdc29916500ad2481a153c3
data/Gemfile.lock CHANGED
@@ -34,7 +34,7 @@ GIT
34
34
  PATH
35
35
  remote: .
36
36
  specs:
37
- spree_cm_commissioner (2.1.0.pre.pre1)
37
+ spree_cm_commissioner (2.1.0.pre.pre2)
38
38
  activerecord-multi-tenant
39
39
  activerecord_json_validator (~> 2.1, >= 2.1.3)
40
40
  aws-sdk-cloudfront
@@ -1,5 +1,6 @@
1
1
  module SpreeCmCommissioner
2
2
  class CustomerNotification < SpreeCmCommissioner::Base
3
+ acts_as_paranoid column: :deleted_at
3
4
  has_many :notifications, as: :notificable, dependent: :destroy, class_name: 'SpreeCmCommissioner::Notification'
4
5
 
5
6
  # deprecated
@@ -233,6 +233,7 @@ module SpreeCmCommissioner
233
233
  # bib_number: 345, bib_prefix: 5KM, bib_zerofill: 5 => return 5KM00345
234
234
  # bib_number: 345, bib_prefix: 5KM, bib_zerofill: 2 => return 5KM345
235
235
  def formatted_bib_number
236
+ return nil if line_item.blank? || line_item.variant.blank?
236
237
  return nil if bib_prefix.blank?
237
238
  return nil if bib_number.blank?
238
239
 
@@ -0,0 +1,8 @@
1
+ class AddDeleteAtToCmCustomerNotifications < ActiveRecord::Migration[7.0]
2
+ def change
3
+ add_column :cm_customer_notifications, :deleted_at, :datetime , if_not_exists: true
4
+ unless index_exists?(:cm_customer_notifications, :deleted_at, name: "index_cm_customer_notifications_on_deleted_at")
5
+ add_index :cm_customer_notifications, :deleted_at, name: "index_cm_customer_notifications_on_deleted_at"
6
+ end
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module SpreeCmCommissioner
2
- VERSION = '2.1.0-pre1'.freeze
2
+ VERSION = '2.1.0-pre2'.freeze
3
3
 
4
4
  module_function
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_cm_commissioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.pre.pre1
4
+ version: 2.1.0.pre.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-26 00:00:00.000000000 Z
11
+ date: 2025-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree
@@ -2725,6 +2725,7 @@ files:
2725
2725
  - db/migrate/20250812015522_remove_unique_indexes_from_cm_user_identity_providers.rb
2726
2726
  - db/migrate/20250812121745_add_data_fill_stage_phase_to_cm_guests.rb
2727
2727
  - db/migrate/20250814073854_add_call_to_action_to_spree_products.rb
2728
+ - db/migrate/20250826013549_add_delete_at_to_cm_customer_notifications.rb
2728
2729
  - docker-compose.yml
2729
2730
  - docs/option_types/attr_types.md
2730
2731
  - docs/private_key.pem