effective_products 0.3.12 → 0.3.13

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: 16eb1fd1c21c855367687872c6775fcdb31c8461d12a824fdd02a1e658fb4026
4
- data.tar.gz: 94f0c1bb6a0a2f236758c058c25baa958dbb2fd26cd08d7f2a1e0215a9dcb777
3
+ metadata.gz: 497a73ac9a4c1abafa75b4a46094d07d41c2f74bd2d85e54e757263c4e1d617b
4
+ data.tar.gz: 96cde4157349316119788cd3d1e8571fb3e6b23769e32e132381906cb0fc3165
5
5
  SHA512:
6
- metadata.gz: 2982f9cc30261967cc72006da9c7d9ca59c77d36131194ae8b070e28fb32a4ed3bb78aa84efee259bfd8b3df9558aefac3d0caf8ee92b3039785a7e3a9a3b85d
7
- data.tar.gz: 30c5bcd25059ebe5e0984ed4486873d8fca5a25192f2d7cec19fc1a8db48ffd111629c95161d32d16706de0c2702de74ea5c8939b59d04f913ba3d52dc000727
6
+ metadata.gz: b1276afa84b856fb02c0830d4e8fd79faa2305c4956aa619f51dbf9039e5f5600e840ba9f0a980fd36b17a9828826afb847497905f9518decfac59e9eeea2b85
7
+ data.tar.gz: 5fe2ba331d73e3eba845767e38830d4738914b88dacea542d2c5867b72ad45d1ab6c3691446e990efaaba2cc3058e59a62a6b2cce82783a78549bf047b0fedc4
@@ -50,8 +50,8 @@ module Effective
50
50
  scope :deep, -> { includes(:addresses, :purchased_order, owner: [:membership], applicant: [:category, :user], stamp_wizard: [:user]) }
51
51
  scope :not_issued, -> { where.not(status: :issued) }
52
52
 
53
- scope :with_approved_applicants, -> { where(applicant_id: EffectiveMemberships.Applicant.approved) }
54
- scope :with_unapproved_applicants, -> { where.not(applicant_id: nil).where.not(applicant_id: EffectiveMemberships.Applicant.approved) }
53
+ scope :with_registered_applicants, -> { where(applicant_id: EffectiveMemberships.Applicant.registered) }
54
+ scope :with_unregistered_applicants, -> { where.not(applicant_id: nil).where.not(applicant_id: EffectiveMemberships.Applicant.registered) }
55
55
 
56
56
  scope :with_purchased_stamp_wizards, -> { purchased.where.not(stamp_wizard_id: nil) }
57
57
  scope :with_not_purchased_stamp_wizards, -> { not_purchased.where.not(stamp_wizard_id: nil) }
@@ -60,11 +60,11 @@ module Effective
60
60
 
61
61
  # Datatable Scopes
62
62
  scope :ready_to_issue, -> {
63
- with_approved_applicants.or(with_purchased_stamp_wizards).or(created_by_admin).submitted
63
+ with_registered_applicants.or(with_purchased_stamp_wizards).or(created_by_admin).submitted
64
64
  }
65
65
 
66
- scope :pending, -> { pending_applicant_approval.or(pending_stamp_request_purchase) }
67
- scope :pending_applicant_approval, -> { not_issued.with_unapproved_applicants }
66
+ scope :pending, -> { pending_applicant_registration.or(pending_stamp_request_purchase) }
67
+ scope :pending_applicant_registration, -> { not_issued.with_unregistered_applicants }
68
68
  scope :pending_stamp_request_purchase, -> { not_issued.with_not_purchased_stamp_wizards }
69
69
 
70
70
  validates :name, presence: true
@@ -1,3 +1,3 @@
1
1
  module EffectiveProducts
2
- VERSION = '0.3.12'.freeze
2
+ VERSION = '0.3.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12
4
+ version: 0.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-16 00:00:00.000000000 Z
11
+ date: 2025-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails