spree_cm_commissioner 1.18.1.pre.pre → 1.18.1.pre.pre1

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: b379b05eb67ebdd3f6eed7f7cb602c65a042431084c44773d8060177b54ee2c4
4
- data.tar.gz: 66e5e029f32bd7246d512b57703f71a9d3996a278655d76bd13b91c4d69403d9
3
+ metadata.gz: a6ca2c2a15690b9e44ae0b587937dd1276de763f86c333f23411069e7de81d15
4
+ data.tar.gz: 6ff68f2da2bd156cd2b00f3112ed3b911751a02c8140e5b531d01d1cd253f7a8
5
5
  SHA512:
6
- metadata.gz: 7706180ab5c1cdb1cf471221e52062026c198e178e061b1b678baaada93ed1ad0520f88c253f59eaa9dc38512022faad01a91e7e771f76d0da25ff7bd4307c25
7
- data.tar.gz: 28d18041966446254a1ee2a2f5cae01f25165c400409cdf31a72f02cefb3538aa8f94273837d08e9b111febfcf2c068cb791efcce85be8d0e1573069443d6714
6
+ metadata.gz: fbab9958f2ab7a92001a3118f068865a93bd222ebabf538a08cfdedfcdba27a57712f45d3f9edf179b4dc58596b8e799f28a421516130793240fd35f0f2f3df1
7
+ data.tar.gz: 35043475636128680bf5817039ac9b0153909d796f3f7c4b97a5f5e66a688512690a85766673ffa1a3fce9cfc74eb2a59f2061bec578d534abdc663dcaba089d
data/Gemfile.lock CHANGED
@@ -34,7 +34,7 @@ GIT
34
34
  PATH
35
35
  remote: .
36
36
  specs:
37
- spree_cm_commissioner (1.18.1.pre.pre)
37
+ spree_cm_commissioner (1.18.1.pre.pre1)
38
38
  activerecord-multi-tenant
39
39
  activerecord_json_validator (~> 2.1, >= 2.1.3)
40
40
  aws-sdk-cloudfront
@@ -446,6 +446,7 @@ GEM
446
446
  google-cloud-recaptcha_enterprise-v1beta1 (0.10.0)
447
447
  gapic-common (>= 0.20.0, < 2.a)
448
448
  google-cloud-errors (~> 1.0)
449
+ google-protobuf (3.25.8)
449
450
  google-protobuf (3.25.8-x86_64-darwin)
450
451
  google-protobuf (3.25.8-x86_64-linux)
451
452
  googleapis-common-protos (1.4.0)
@@ -460,6 +461,9 @@ GEM
460
461
  multi_json (~> 1.11)
461
462
  os (>= 0.9, < 2.0)
462
463
  signet (>= 0.16, < 2.a)
464
+ grpc (1.72.0)
465
+ google-protobuf (>= 3.25, < 5.0)
466
+ googleapis-common-protos-types (~> 1.0)
463
467
  grpc (1.72.0-x86_64-darwin)
464
468
  google-protobuf (>= 3.25, < 5.0)
465
469
  googleapis-common-protos-types (~> 1.0)
@@ -547,6 +551,7 @@ GEM
547
551
  method_source (1.0.0)
548
552
  mini_magick (4.12.0)
549
553
  mini_mime (1.1.5)
554
+ mini_portile2 (2.8.4)
550
555
  minitest (5.20.0)
551
556
  monetize (1.12.0)
552
557
  money (~> 6.12)
@@ -564,9 +569,8 @@ GEM
564
569
  net-smtp (0.4.0)
565
570
  net-protocol
566
571
  nio4r (2.5.9)
567
- nokogiri (1.18.8-x86_64-darwin)
568
- racc (~> 1.4)
569
- nokogiri (1.18.8-x86_64-linux-gnu)
572
+ nokogiri (1.15.4)
573
+ mini_portile2 (~> 2.8.2)
570
574
  racc (~> 1.4)
571
575
  noticed (1.6.3)
572
576
  http (>= 4.0.0)
@@ -922,11 +926,11 @@ GEM
922
926
  zeitwerk (2.6.12)
923
927
 
924
928
  PLATFORMS
929
+ ruby
925
930
  x86_64-darwin-19
926
931
  x86_64-darwin-20
927
932
  x86_64-darwin-21
928
933
  x86_64-darwin-22
929
- x86_64-darwin-23
930
934
  x86_64-linux
931
935
 
932
936
  DEPENDENCIES
@@ -1,5 +1,7 @@
1
1
  module SpreeCmCommissioner
2
2
  class DynamicField < SpreeCmCommissioner::Base
3
+ acts_as_list column: :position, scope: :vendor_id
4
+
3
5
  belongs_to :vendor, class_name: 'Spree::Vendor', optional: false
4
6
 
5
7
  has_many :dynamic_field_options, class_name: 'SpreeCmCommissioner::DynamicFieldOption', dependent: :destroy
@@ -1,5 +1,7 @@
1
1
  module SpreeCmCommissioner
2
2
  class DynamicFieldOption < SpreeCmCommissioner::Base
3
+ acts_as_list column: :position, scope: :dynamic_field_id
4
+
3
5
  belongs_to :dynamic_field, class_name: 'SpreeCmCommissioner::DynamicField', optional: false
4
6
  has_many :guest_dynamic_fields, class_name: 'SpreeCmCommissioner::GuestDynamicField', dependent: :restrict_with_error
5
7
 
@@ -0,0 +1,11 @@
1
+ class AddPositionToCmDynamicFields < ActiveRecord::Migration[7.0]
2
+ def change
3
+ unless column_exists?(:cm_dynamic_fields, :position)
4
+ add_column :cm_dynamic_fields, :position, :integer, default: 0, null: false
5
+ end
6
+
7
+ unless index_exists?(:cm_dynamic_fields, :position, name: 'index_dynamic_fields_on_position')
8
+ add_index :cm_dynamic_fields, :position, name: 'index_dynamic_fields_on_position'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class AddPositionToCmDynamicFieldOptions < ActiveRecord::Migration[7.0]
2
+ def change
3
+ unless column_exists?(:cm_dynamic_field_options, :position)
4
+ add_column :cm_dynamic_field_options, :position, :integer, default: 0, null: false
5
+ end
6
+
7
+ unless index_exists?(:cm_dynamic_field_options, :position, name: 'index_dynamic_field_options_on_position')
8
+ add_index :cm_dynamic_field_options, :position, name: 'index_dynamic_field_options_on_position'
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module SpreeCmCommissioner
2
- VERSION = '1.18.1-pre'.freeze
2
+ VERSION = '1.18.1-pre1'.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: 1.18.1.pre.pre
4
+ version: 1.18.1.pre.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-14 00:00:00.000000000 Z
11
+ date: 2025-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spree
@@ -2528,6 +2528,8 @@ files:
2528
2528
  - db/migrate/20250702091305_add_dynamic_field_option_to_guest_dynamic_field.rb
2529
2529
  - db/migrate/20250702091935_add_status_to_dynamic_field_option.rb
2530
2530
  - db/migrate/20250707032008_add_vendor_id_to_spree_category.rb
2531
+ - db/migrate/20250711092937_add_position_to_cm_dynamic_fields.rb
2532
+ - db/migrate/20250711093045_add_position_to_cm_dynamic_field_options.rb
2531
2533
  - docker-compose.yml
2532
2534
  - docs/option_types/attr_types.md
2533
2535
  - docs/private_key.pem