spree_limit_order_quantity 1.0.0

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.
Files changed (28) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE +673 -0
  5. data/README.md +54 -0
  6. data/app/controllers/spree_limit_order_quantity/checkout_controller_decorator.rb +33 -0
  7. data/app/controllers/spree_limit_order_quantity/line_items_controller_decorator.rb +54 -0
  8. data/app/decorators/spree/core/controller_helpers/strong_parameters_loq_decorator.rb +21 -0
  9. data/app/models/spree_limit_order_quantity/product_decorator.rb +13 -0
  10. data/app/models/spree_limit_order_quantity/variant_decorator.rb +24 -0
  11. data/app/overrides/spree/admin/variants/edit/add_order_quantity_limits_form.html.erb.deface +2 -0
  12. data/app/views/spree/admin/products/form/_limit_product_quantity_settings.html.erb +3 -0
  13. data/app/views/spree_limit_order_quantity/admin/shared/_limit_quantity_settings.html.erb +19 -0
  14. data/bin/rails +8 -0
  15. data/config/locales/activerecord.en.yml +13 -0
  16. data/config/locales/activerecord.ja.yml +13 -0
  17. data/config/locales/en.yml +10 -0
  18. data/config/locales/ja.yml +10 -0
  19. data/db/migrate/20250505025922_add_order_quantity_limits_to_spree_variants.rb +6 -0
  20. data/lib/generators/spree_limit_order_quantity/install/install_generator.rb +20 -0
  21. data/lib/spree_limit_order_quantity/engine.rb +25 -0
  22. data/lib/spree_limit_order_quantity/master_variant_quantity_checker.rb +56 -0
  23. data/lib/spree_limit_order_quantity/order_quantity_checker.rb +54 -0
  24. data/lib/spree_limit_order_quantity/version.rb +7 -0
  25. data/lib/spree_limit_order_quantity.rb +7 -0
  26. data/spec/spec_helper.rb +93 -0
  27. data/spree_limit_order_quantity.gemspec +34 -0
  28. metadata +168 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2648530b563355975d56d7f538aea279cbd552503fbbb7b797d5f337cf588e81
4
+ data.tar.gz: 484343bb91b1042ae60d1428d182eda5e548c0674f3529987afe73646e86ebfa
5
+ SHA512:
6
+ metadata.gz: 8e7b8c429579f35dfcce7ab641ca426802c12701b6f61e115e8aa344708c88d9355fbe3345646e96e0bb409899998e18683af4d016011ccdacbdca7d468d8128
7
+ data.tar.gz: 56f21133e18da20524d92ac9c8de5450cf709b5bdbc20f74e2289a5a881352ddb4013eca0d678c1138f5f9d841ff6991a852734792efc1a5a7fe0c318ef8729b
data/.gitignore ADDED
@@ -0,0 +1,23 @@
1
+ \#*
2
+ *~
3
+ .#*
4
+ .DS_Store
5
+ .idea
6
+ .localeapp/locales
7
+ .project
8
+ .vscode
9
+ coverage
10
+ default
11
+ Gemfile.lock
12
+ tmp
13
+ nbproject
14
+ pkg
15
+ *.sw?
16
+ spec/dummy
17
+ .rvmrc
18
+ .sass-cache
19
+ public/spree
20
+ .ruby-version
21
+ .ruby-gemset
22
+ *.gem
23
+ */*.gem
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec