effective_memberships 0.7.4 → 0.7.6

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: 0100c4901a84ee663094b0c2875ea528d7345f68f99659e09f5d6daf973ce54c
4
- data.tar.gz: 17df43487cab37459c5ea999396724f556b74f05e7ed853eaf55bfb3f0e3b279
3
+ metadata.gz: c45ecbf9ed5ed30bfc845f2f2039aeec32df3457f04ad3141d502dddf446350f
4
+ data.tar.gz: 589c1591d833a97ce673be842a05a3639a79ec040a266d0ee75dc6059c215567
5
5
  SHA512:
6
- metadata.gz: 3e06ad2ca2dc09ec15d83a7d413d6cd07663c198f16b6ea8716c0e669dd1671d6141396cf2ce0d903cf47b0c22a2bccf710764981595ee55d43a624bbc91be54
7
- data.tar.gz: c0c489c0dfc6deda6be5fdb9ebb70f8647c7afb41a10d8905d59e78b7dcf1ad03d3bc46733169b1089d28d0a767f4c46d8bbc6a26f2459602d88466c93a53426
6
+ metadata.gz: e0d1fe20e63aebb553ad97a92cf06c3183d3e025012a180ea1f2687d2f53f8557c470c36791a758d4f3228ad5d064279c8eafd56acce1ffe54acb13e0daacf76
7
+ data.tar.gz: '069d0ba08eee673cdb2186a3531097a26fc8b5123d8eae2f677b458f7770c3fc3eb9e7b5f6bbac40b46e9d7404294b6355dab95f4f785c6d927316e95c3e9b7d'
@@ -385,5 +385,4 @@ module EffectiveMembershipsOwner
385
385
  end
386
386
  end
387
387
 
388
-
389
388
  end
@@ -2,7 +2,7 @@
2
2
  - step_content = resource.applicant&.category&.send("rich_text_applicant_review_#{step}_content")
3
3
 
4
4
  - if all_steps_content.present?
5
- .mb-2= all_steps_content
5
+ .mb-2= all_steps_content.to_s
6
6
 
7
7
  - if step_content.present?
8
- .mb-2= step_content
8
+ .mb-2= step_content.to_s
@@ -3,8 +3,8 @@
3
3
 
4
4
  - if all_steps_content.present?
5
5
  .card
6
- .card-body= all_steps_content
6
+ .card-body= all_steps_content.to_s
7
7
 
8
8
  - if step_content.present?
9
9
  .card
10
- .card-body= step_content
10
+ .card-body= step_content.to_s
@@ -16,7 +16,7 @@
16
16
  - if organization_categories.present?
17
17
  %small.text-muted #{mc.category} #{mc.category_type} Membership
18
18
 
19
- = mc.rich_text_body
19
+ = mc.rich_text_body.to_s
20
20
 
21
21
  = render_if_exists("effective/applicants/select/#{mc.to_s.parameterize.underscore}", f: f, category: mc)
22
22
 
@@ -2,7 +2,7 @@
2
2
  - step_content = resource.category&.send("rich_text_fee_payment_#{step}_content")
3
3
 
4
4
  - if all_steps_content.present?
5
- .mb-2= all_steps_content
5
+ .mb-2= all_steps_content.to_s
6
6
 
7
7
  - if step_content.present?
8
- .mb-2= step_content
8
+ .mb-2= step_content.to_s
@@ -4,16 +4,16 @@
4
4
  - outstanding_owners = current_user.memberships_owners.select { |owner| owner.outstanding_fee_payment_fees.present? }
5
5
 
6
6
  - if memberships.present?
7
- - if memberships.any? { |membership| membership.category.create_renewal_fees? }
7
+ - if memberships.any? { |membership| membership.categories.any?(&:create_renewal_fees?) }
8
8
  - date = EffectiveMemberships.Registrar.renewal_fee_date(date: Time.zone.now)
9
9
  %p Annual dues become available for purchase on #{date.strftime('%B %e')} of each year.
10
10
 
11
- - if memberships.any? { |membership| membership.category.create_late_fees? }
12
- - date = EffectiveMemberships.Registrar.late_fee_date(date: Time.zone.now)
11
+ - if memberships.any? { |membership| membership.categories.any?(&:create_late_fees?) }
12
+ - date = EffectiveMemberships.Registrar.late_fee_date(period: Time.zone.now)
13
13
  %p Late fees will be applied on #{date.strftime('%B %e')}.
14
14
 
15
- - if memberships.any? { |membership| membership.category.create_bad_standing? }
16
- - date = EffectiveMemberships.Registrar.bad_standing_date(date: Time.zone.now)
15
+ - if memberships.any? { |membership| membership.categories.any?(&:create_bad_standing?) }
16
+ - date = EffectiveMemberships.Registrar.bad_standing_date(period: Time.zone.now)
17
17
  %p Memberships with unpaid fees or dues will be marked in bad standing on #{date.strftime('%B %e')}.
18
18
 
19
19
  - if outstanding_owners.present?
@@ -1,3 +1,3 @@
1
1
  module EffectiveMemberships
2
- VERSION = '0.7.4'
2
+ VERSION = '0.7.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_memberships
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.6
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: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails