effective_events 3.3.7 → 3.3.8

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: e13e874c33191f12c693cce55d51061152ad60efe1eedcc8e313c9d0380f55d3
4
- data.tar.gz: 850581f87e005d3a017ce6696fdaba843567f63644bd8ab8876154294bd26600
3
+ metadata.gz: 6cab446aaf4d29303b6ef3f1758a529d11e64db60abfe290545b6fe498ce8370
4
+ data.tar.gz: f625a754a14f4db39610eb5450d20efaa1b4be06667ae00e31053106e33cdc9f
5
5
  SHA512:
6
- metadata.gz: 78115969a61f17242c823beda010f9cde6590d6db97387104dea1a35049473e3d0fe083824e56d43a1cf13e23a2a68935acdb4cf5eba0eede6b1f38f69bbe8a8
7
- data.tar.gz: fc06efb68c5d4d824cd2cf90ca8b2ea608487b0d98b43a0c9a6181ff04cd3b6c53286bc398b01ec26b96aac03e613383458aa821bd441a9dc1ead8abe3614d13
6
+ metadata.gz: 9797e6c91c56f3b54feb901b8a740bc2e31d5b2c35eae28bffc83f3ac2bc2f78183cc92599fbc610e80174a4d9f9b3fbfcdf9831dec26e5b6465e38aeffd5ee4
7
+ data.tar.gz: fa5aefc9cdb60049dfd2a88d231c7b2caa10e01283515cfc0d415f6f6aa503fed46c8c3566b272c4a8e3fd52782e0c8d78645a65e3259771723aa59d3ea46932
@@ -115,10 +115,13 @@ module EffectiveEventsEventRegistration
115
115
  }
116
116
 
117
117
  scope :sorted, -> { order(:id) }
118
-
118
+
119
119
  scope :in_progress, -> { where(status: [:draft, :submitted]) }
120
120
  scope :done, -> { where(status: :completed) }
121
121
 
122
+ # Records safe to purge via the purge_resources task: draft, unpaid, for an event that has already ended.
123
+ scope :purgable, -> { draft.not_purchased.where(event_id: Effective::Event.past) }
124
+
122
125
  scope :delayed, -> { where(event_id: Effective::Event.delayed) }
123
126
  scope :not_delayed, -> { where.not(event_id: Effective::Event.delayed) }
124
127
 
@@ -212,7 +215,7 @@ module EffectiveEventsEventRegistration
212
215
 
213
216
  # If submitted with a cheque/phone deferred (but not delayed) processor then lock down the steps.
214
217
  if submitted? && !delayed_payment_date_upcoming?
215
- return (step == :submitted)
218
+ return (step == :submitted)
216
219
  end
217
220
 
218
221
  # Add ability to edit registrations up until payment date
@@ -269,7 +272,7 @@ module EffectiveEventsEventRegistration
269
272
  # When the submit_order is deferred or purchased, we call submit!
270
273
  # When the order is a deferred payment processor, we continue to the :submitted step
271
274
  # When the order is a regular processor, the before_save will call complete! and we continue to the :complete step
272
- # Purchasing the order later on will automatically call
275
+ # Purchasing the order later on will automatically call
273
276
  def submit_wizard_on_deferred_order?
274
277
  true
275
278
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveEvents
2
- VERSION = '3.3.7'.freeze
2
+ VERSION = '3.3.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_events
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.7
4
+ version: 3.3.8
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: 2026-05-06 00:00:00.000000000 Z
11
+ date: 2026-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails